CANopen Slave Documentation
Version 6.16.04
|
Macros | |
#define | CP_MSG_CTRL_EXT_BIT ((uint8_t) 0x01) |
#define | CP_MSG_CTRL_FDF_BIT ((uint8_t) 0x02) |
#define | CP_MSG_CTRL_RTR_BIT ((uint8_t) 0x04) |
#define | CP_MSG_CTRL_OVR_BIT ((uint8_t) 0x08) |
#define | CP_MSG_CTRL_RPC_BIT ((uint8_t) 0x10) |
#define | CP_MSG_CTRL_BRS_BIT ((uint8_t) 0x40) |
#define | CP_MSG_CTRL_ESI_BIT ((uint8_t) 0x80) |
#define | CP_MSG_FORMAT_CBFF ((uint8_t) 0x00) |
#define | CP_MSG_FORMAT_CEFF (CP_MSG_CTRL_EXT_BIT) |
#define | CP_MSG_FORMAT_FBFF (CP_MSG_CTRL_FDF_BIT) |
#define | CP_MSG_FORMAT_FEFF (CP_MSG_CTRL_FDF_BIT | CP_MSG_CTRL_EXT_BIT) |
The following definitions are used in combination with the structure CpCanMsg_s::ubMsgCtrl.
#define CP_MSG_CTRL_BRS_BIT ((uint8_t) 0x40) |
Bit mask for the BRS bit (ISO CAN FD, bit-rate switch) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_CTRL_ESI_BIT ((uint8_t) 0x80) |
Bit mask for the ESI bit (ISO CAN FD, error state indicator) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_CTRL_EXT_BIT ((uint8_t) 0x01) |
Bit mask for the EXT bit (extended frame) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_CTRL_FDF_BIT ((uint8_t) 0x02) |
Bit mask for the FDF bit (ISO CAN FD, Fast Data format) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_CTRL_OVR_BIT ((uint8_t) 0x08) |
Bit mask for the OVR bit (overrun) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_CTRL_RPC_BIT ((uint8_t) 0x10) |
Bit mask for the RPC (Remote Procedure Call) bit in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_CTRL_RTR_BIT ((uint8_t) 0x04) |
Bit mask for the RTR bit (remote frame) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_FORMAT_CBFF ((uint8_t) 0x00) |
Bit definition for a Classical CAN frame with Standard Identifier (CBFF: Classical base frame format) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_FORMAT_CEFF (CP_MSG_CTRL_EXT_BIT) |
Bit definition for a Classical CAN frame with Extended Identifier (CEFF: Classical extended frame format) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_FORMAT_FBFF (CP_MSG_CTRL_FDF_BIT) |
Bit definition for an ISO CAN FD frame with Standard Identifier (FBFF: FD base frame format) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).
#define CP_MSG_FORMAT_FEFF (CP_MSG_CTRL_FDF_BIT | CP_MSG_CTRL_EXT_BIT) |
Bit definition for an ISO CAN FD frame with Extended Identifier (FEFF: FD extended frame format) in the ubMsgCtrl
field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl).