CANopen Slave Documentation
Version 7.00.00
Loading...
Searching...
No Matches
Mask for COB-ID value

Macros

#define ID_MASK_IS_EXTENDED   ((uint32_t) 0x20000000)
 
#define ID_MASK_NO_RTR   ((uint32_t) 0x40000000)
 
#define ID_MASK_IS_DISABLED   ((uint32_t) 0x80000000)
 
#define ID_MASK_STANDARD_FRAME   ((uint32_t) 0x000007FF)
 
#define ID_MASK_EXTENDED_FRAME   ((uint32_t) 0x1FFFFFFF)
 

Detailed Description

The communication object identifier (COB-ID) for various CANopen services (PDO, TIME, SYNC, etc.) can be changed via the object dictionary. The ID_MASK definitions specify the bit positions for controlling the COB-ID value.

Macro Definition Documentation

◆ ID_MASK_EXTENDED_FRAME

#define ID_MASK_EXTENDED_FRAME   ((uint32_t) 0x1FFFFFFF)

Identifier value for extended frame. Using this value implied that ID_MASK_IS_EXTENDED is set.

◆ ID_MASK_IS_DISABLED

#define ID_MASK_IS_DISABLED   ((uint32_t) 0x80000000)

The identifier for the CANopen service is disabled in case the bit is set within the COB-ID object, i.e. it is not possible to receive or transmit data.

◆ ID_MASK_IS_EXTENDED

#define ID_MASK_IS_EXTENDED   ((uint32_t) 0x20000000)

The identifier for the CANopen service uses the Extended Frame Format (CEFF or FEFF, 29-Bit CAN-ID) in case the bit is set within the COB-ID object. Otherwise the the Base Frame Format (CBFF or FBFF, 11-Bit CAN-ID) is used.

◆ ID_MASK_NO_RTR

#define ID_MASK_NO_RTR   ((uint32_t) 0x40000000)

This flag is only valid for TPDO COB-ID configuration. No RTR allowed on this PDO in case the bit is set within the COB-ID object.

◆ ID_MASK_STANDARD_FRAME

#define ID_MASK_STANDARD_FRAME   ((uint32_t) 0x000007FF)

Identifier value for standard frame. Using this value implied that ID_MASK_IS_EXTENDED is not set.