CAN stack common definitions. More...
CAN stack common definitions.
This module defines the common part of the CAN stack, including structures and messages.
Files | |
file | common.h |
Definitions of high-level CAN interface. | |
Data Structures | |
struct | can_opt_t |
Structure to pass a CAN option. More... | |
struct | can_rx_data |
Received data structure. More... | |
struct | can_reg_entry |
registry entry More... | |
Typedefs | |
typedef struct can_rx_data | can_rx_data_t |
Received data structure. | |
typedef struct can_reg_entry | can_reg_entry_t |
registry entry | |
Enumerations | |
enum | canopt_t { CANOPT_BITTIMING , CANOPT_RX_FILTERS , CANOPT_TEC , CANOPT_REC , CANOPT_LEC , CANOPT_CLOCK , CANOPT_BITTIMING_CONST , CANOPT_STATE } |
CAN options. More... | |
enum | canopt_state_t { CANOPT_STATE_OFF , CANOPT_STATE_SLEEP , CANOPT_STATE_LISTEN_ONLY , CANOPT_STATE_ON , CANOPT_STATE_LOOPBACK } |
CAN state options. More... | |
enum | can_msg { CAN_MSG_ACK = 0x100 , CAN_MSG_SEND_FRAME , CAN_MSG_ABORT_FRAME , CAN_MSG_SET , CAN_MSG_GET , CAN_MSG_SET_FILTER , CAN_MSG_REMOVE_FILTER , CAN_MSG_POWER_UP , CAN_MSG_POWER_DOWN , CAN_MSG_SET_TRX , CAN_MSG_EVENT = 0x200 , CAN_MSG_WAKE_UP , CAN_MSG_TX_CONFIRMATION , CAN_MSG_RX_INDICATION , CAN_MSG_TX_ERROR , CAN_MSG_RX_ERROR , CAN_MSG_BUS_OFF , CAN_MSG_ERROR_PASSIVE , CAN_MSG_ERROR_WARNING , CAN_MSG_PM , CAN_MSG_ISOTP_RX_TIMEOUT = 0x400 , CAN_MSG_ISOTP_TX_TIMEOUT } |
Messages which can be sent through the CAN stack. More... | |
enum | can_reg_type_t { CAN_TYPE_DEFAULT = 0 , CAN_TYPE_MBOX } |
registry entry types More... | |
typedef struct can_reg_entry can_reg_entry_t |
registry entry
This structure is used through the stack to describe how to contact the upper layer and which CAN interface to use
typedef struct can_rx_data can_rx_data_t |
Received data structure.
This structure is used when a layer sends received data to the upper layer
enum can_msg |
Messages which can be sent through the CAN stack.
enum can_reg_type_t |
enum canopt_state_t |
enum canopt_t |
CAN options.
Enumerator | |
---|---|
CANOPT_BITTIMING | bit timing parameter |
CANOPT_RX_FILTERS | rx filters |
CANOPT_TEC | Transmit Error Counter. |
CANOPT_REC | Receive Error Counter. |
CANOPT_LEC | Last Error Code. |
CANOPT_CLOCK | controller main clock |
CANOPT_BITTIMING_CONST | controller bittiming parameters |
CANOPT_STATE | set controller state canopt_state_t |