CANopenNode

Helper object. More...

Macros

#define CO_CONFIG_FIFO   (0)
 Configuration of FIFO circular buffer. More...
 

Detailed Description

Helper object.

Macro Definition Documentation

◆ CO_CONFIG_FIFO

#define CO_CONFIG_FIFO   (0)

Configuration of FIFO circular buffer.

FIFO buffer is basically a simple first-in first-out circular data buffer. It is used by the SDO client and by the CANopen gateway. It has additional advanced functions for data passed to FIFO.

Possible flags, can be ORed:

  • CO_CONFIG_FIFO_ENABLE - Enable FIFO buffer
  • CO_CONFIG_FIFO_ALT_READ - This must be enabled, when SDO client has CO_CONFIG_SDO_CLI_BLOCK enabled. See CO_fifo_altRead().
  • CO_CONFIG_FIFO_CRC16_CCITT - This must be enabled, when SDO client has CO_CONFIG_SDO_CLI_BLOCK enabled. It enables CRC calculation on data.
  • CO_CONFIG_FIFO_ASCII_COMMANDS - This must be enabled, when CANopen gateway has CO_CONFIG_GTW_ASCII enabled. It adds command handling functions.
  • CO_CONFIG_FIFO_ASCII_DATATYPES - This must be enabled, when CANopen gateway has CO_CONFIG_GTW_ASCII and CO_CONFIG_GTW_ASCII_SDO enabled. It adds datatype transform functions between binary and ascii, which are necessary for SDO client.