rtx_can.h
The rtx_can.h include file contains prototypes for all the RL-CAN driver routines.
- CAN_init
- CAN_start
- CAN_send
- CAN_request
- CAN_set
- CAN_receive
- CAN_rx_object
- CAN_tx_object
The rtx_can.h include file contains definitions of types and structures for:
- CAN message type
- CAN message format
- Mailboxes for CAN transmit and receive messages
- CAN memory pool
- CAN message structure
The rtx_can.h include file contains for the CAN driver errors that might be encountered.
Following is a list of the CAN driver errors.
- CAN_OK
No errors were encountered. - CAN_NOT_IMPLEMENTED_ERROR
The function invoked is not implemented and does not do anything. - CAN_MEM_POOL_INIT_ERROR
The memory pool used for software message buffers did not initialize successfully. - CAN_BAUDRATE_ERROR
The baudrate was not properly setup. - CAN_TX_BUSY_ERROR
The transmit hardware is busy. - CAN_OBJECTS_FULL_ERROR
All transmit and receive message objects are in use. - CAN_ALLOC_MEM_ERROR
Memory could not be allocated from the memory pool. - CAN_DEALLOC_MEM_ERROR
Memory previously used by the CAN message was not properly deallocated. - CAN_TIMEOUT_ERROR
The function did not complete in the specified time. - CAN_UNEXIST_CTRL_ERROR
A function tried to use a CAN controller that does not exist. - CAN_UNEXIST_CH_ERROR
A function tried to use a CAN channel that does not exist.
The rtx_can.h include file includes the can_cfg.h include file.