CANopenNode
CANopen protocol stack
Loading...
Searching...
No Matches
Time producer/consumer

Specified in standard CiA 301 More...

+ Collaboration diagram for Time producer/consumer:

Macros

#define CO_CONFIG_TIME   (CO_CONFIG_TIME_ENABLE | CO_CONFIG_GLOBAL_FLAG_CALLBACK_PRE | CO_CONFIG_GLOBAL_FLAG_OD_DYNAMIC)
 Configuration of TIME.
 

Detailed Description

Specified in standard CiA 301

Macro Definition Documentation

◆ CO_CONFIG_TIME

#define CO_CONFIG_TIME   (CO_CONFIG_TIME_ENABLE | CO_CONFIG_GLOBAL_FLAG_CALLBACK_PRE | CO_CONFIG_GLOBAL_FLAG_OD_DYNAMIC)

Configuration of TIME.

Possible flags, can be ORed:

  • CO_CONFIG_TIME_ENABLE - Enable TIME object and TIME consumer.
  • CO_CONFIG_TIME_PRODUCER - Enable TIME producer.
  • CO_CONFIG_FLAG_CALLBACK_PRE - Enable custom callback after preprocessing received TIME CAN message. Callback is configured by CO_TIME_initCallbackPre().
  • CO_CONFIG_FLAG_OD_DYNAMIC - Enable dynamic configuration - writing to object 0x1012 enables / disables time producer or consumer.