vcanDrvpar

Here is the definition for the “vcan.o” binary (VME-CAN2 driver):

STATUS vcanDrvpar(long genaddrbase, long genintbase, long maxcards, long intlevel)

And here is the definition for the “vcan4.o” binary (VME-CAN4 driver):

STATUS vcan4Drvpar(long genaddrbase, long genintbase, long maxcards, long intlevel)

This is the customizable driver-initialization function of the vcan driver. It is simular to vcanDrvp and vcan4Drvp but as an additional parameter the user can specify the VME interrupt level. The function searches for up to 4 CAN bus cards. Each card uses several interrupts. This function returns -1 in case of an error.

These are the parameters of the function:

genaddrbase

This is the VME address where the first card (card number 0) is searched. In case of the VME-CAN4 card the card is configured to be at that address. In case of the VME-CAN2 card the user has to set the jumpers on the card that they match the provided address.

genintbase

This is the number of the first interrupt that card number 0 will use. The card is configured by the driver to use interrupts that the given and the followung numbers.

maxcards

This is the maximum number of cards the driver will look for. This parameter must be a number between 1 and 4. This parameter can help to avoid address conflicts by forcing the driver not to look for cards higher than a given card number.

intlevel

This is the VME interrupt level the driver uses. The card is initialized by the driver to use that level.