Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter

Meaning

devId

device identifier, returned by XXX_Open()

func

function code

argp

optional function argument

Additional Information

...

Function Code

IO_<DRV_NAME>_*

Meaning

used by µCμC/CAN

SET_BAUDRATE

set the bus baudrate

yes

RX_STANDARD

configure the CAN receiver to receive only CAN standard identifiers.

no

RX_EXTENDED

configure the CAN receiver to receive only CAN extended identifiers.

yes*

START

starts the CAN controller interface. Most common is to set the CAN controller in active mode

yes

STOP

stop the CAN controller interface. Most common is to set the CAN controller in passive mode

yes

GET_NODE_STATUS

get the node status from the CAN controller

no**

TX_READY

get status if CAN controller is ready to send new CAN frame

yes

...

** needed only if CanBusNSHandler() is used.

Note: It’s Its possible that some CAN devices do not support the function codes RX_STANDARD and RX_EXTENDED (e.g. SJA1000) or that this filter setting must be done via other function codes, e.g. for LPC2xxx CAN device drivers this must be set via SET_xxx_FILTER function codes. Please see the appropriate CanDriverManual if the function code is supported.

...