Versions Compared

Key

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

XXX_IoCtl

Description

This function controls the given CAN device. The parameter func defines, which control operation the user wants to perform.

Prototype

CPU_INT16S INT16S	XXX_IoCtlIoCtl(CPU_INT16SINT16S  devId, 

CPU_INT16U func,

...


                      CPU_INT16U  func,
                      void       *argp);

Parameter

Meaning

devId

device identifier, returned by XXX_OpenOpen()

func

function code

argp

optional function argument

Additional Information

Function Code IO_<DRV<DRV_NAME>NAME>_*

Meaning

used by μ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

...