CanBusInit

Description

Initializes the CAN bus management. This includes the creation of all needed OS-service components and the clearing of list of bus elements.

Prototype

CPU_INT16S CanBusInit(CPU_INT32U arg);

Parameter

Meaning

arg

Not used

Note

This function has the standard device driver interface, described in the porting chapter of the user manual. This allows the CAN bus handling via the standard device driver interface

Return Value

One of the following error codes is returned: CAN_ERR_NONE, CAN_ERR_OSALLOC, CAN_ERR_OSQUEUE or CAN_ERR_OSSEM.