SYNC and PDO producer/consumer
CANopen_301 » Driver » Stack configuration

## 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_SYNC_ENABLE - Enable SYNC object and SYNC consumer.
- CO_CONFIG_SYNC_PRODUCER - Enable SYNC producer.
- CO_CONFIG_FLAG_CALLBACK_PRE - Enable custom callback after preprocessing received SYNC CAN message. Callback is configured by CO_SYNC_initCallbackPre().
- CO_CONFIG_FLAG_TIMERNEXT - Enable calculation of timerNext_us variable inside CO_SYNC_process().

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