vcanDrvp

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

STATUS vcanDrvp(long genaddrbase, long genintbase, long maxcards)

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

STATUS vcan4Drvp(long genaddrbase, long genintbase, long maxcards)

This is the customizable driver-initialization function of the vcan driver. Under VxWorks, drivers are never initialized automatically during system-boot but must be initialized by calling such a function. 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.