CANopen Slave Documentation
Version 7.00.00
|
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) |
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.
#define ID_MASK_EXTENDED_FRAME ((uint32_t) 0x1FFFFFFF) |
Identifier value for extended frame. Using this value implied that ID_MASK_IS_EXTENDED is set.
#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.
#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.
#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.
#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.