CANopenNode
SYNC and PDO producer/consumer

Macros

#define CO_CONFIG_SYNC   (CO_CONFIG_SYNC_ENABLE | CO_CONFIG_SYNC_PRODUCER)
 Configuration of SYNC. More...
 
#define CO_CONFIG_PDO   (CO_CONFIG_RPDO_ENABLE | CO_CONFIG_TPDO_ENABLE | CO_CONFIG_PDO_SYNC_ENABLE)
 Configuration of PDO. More...
 

Detailed Description

Macro Definition Documentation

◆ CO_CONFIG_SYNC

#define CO_CONFIG_SYNC   (CO_CONFIG_SYNC_ENABLE | CO_CONFIG_SYNC_PRODUCER)

Configuration of SYNC.

Possible flags, can be ORed:

◆ CO_CONFIG_PDO

#define CO_CONFIG_PDO   (CO_CONFIG_RPDO_ENABLE | CO_CONFIG_TPDO_ENABLE | CO_CONFIG_PDO_SYNC_ENABLE)

Configuration of PDO.

Possible flags, can be ORed:

  • CO_CONFIG_RPDO_ENABLE - Enable receive PDO objects.
  • CO_CONFIG_TPDO_ENABLE - Enable transmit PDO objects.
  • CO_CONFIG_PDO_SYNC_ENABLE - Enable SYNC in PDO objects.
  • CO_CONFIG_RPDO_CALLS_EXTENSION - Enable calling configured extension callbacks when received RPDO CAN message modifies OD entries.
  • CO_CONFIG_TPDO_CALLS_EXTENSION - Enable calling configured extension callbacks before TPDO CAN message is sent.
  • CO_CONFIG_FLAG_CALLBACK_PRE - Enable custom callback after preprocessing received RPDO CAN message. Callback is configured by CO_RPDO_initCallbackPre().
  • CO_CONFIG_FLAG_TIMERNEXT - Enable calculation of timerNext_us variable inside CO_TPDO_process().