XXX_Open
Description
This function marks the given CAN device as used, e.g. it locks the device. The return value is the identifier of the device and must be used for further actions with this device.
Prototype
CPU_INT16S INT16S XXX_OpenOpen(CPU_INT16SINT16S drv, CPU_INT32U devName, CPU_INT16U mode);
CPU_INT
32U devName,
CPU_INT
16U mode);
Parameter | Meaning |
---|---|
| bus node name which must be used by the interrupt routine to access the can bus layer. |
| device name which indicates the device within the controller |
| not used |
Return Value
Device identifier for success or -1 if an error occurs.
...