CANopen Slave Documentation
Version 6.16.04
Loading...
Searching...
No Matches
Bit mask for message control

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)
 

Detailed Description

The following definitions are used in combination with the structure CpCanMsg_s::ubMsgCtrl.

Macro Definition Documentation

◆ CP_MSG_CTRL_BRS_BIT

#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).

◆ CP_MSG_CTRL_ESI_BIT

#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).

◆ CP_MSG_CTRL_EXT_BIT

#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).

◆ CP_MSG_CTRL_FDF_BIT

#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).

◆ CP_MSG_CTRL_OVR_BIT

#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).

◆ CP_MSG_CTRL_RPC_BIT

#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).

◆ CP_MSG_CTRL_RTR_BIT

#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).

◆ CP_MSG_FORMAT_CBFF

#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).

◆ CP_MSG_FORMAT_CEFF

#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).

◆ CP_MSG_FORMAT_FBFF

#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).

◆ CP_MSG_FORMAT_FEFF

#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).