Go to the documentation of this file.
27 #ifndef CO_CONFIG_FLAGS_H
28 #define CO_CONFIG_FLAGS_H
78 #define CO_CONFIG_FLAG_CALLBACK_PRE 0x1000
88 #define CO_CONFIG_FLAG_TIMERNEXT 0x2000
100 #define CO_CONFIG_FLAG_OD_DYNAMIC 0x4000
123 #define CO_CONFIG_NMT (0)
125 #define CO_CONFIG_NMT_CALLBACK_CHANGE 0x01
126 #define CO_CONFIG_NMT_MASTER 0x02
153 #define CO_CONFIG_HB_CONS (CO_CONFIG_HB_CONS_ENABLE)
155 #define CO_CONFIG_HB_CONS_ENABLE 0x01
156 #define CO_CONFIG_HB_CONS_CALLBACK_CHANGE 0x02
157 #define CO_CONFIG_HB_CONS_CALLBACK_MULTI 0x04
158 #define CO_CONFIG_HB_CONS_QUERY_FUNCT 0x08
167 #define CO_CONFIG_HB_CONS_SIZE 8
197 #define CO_CONFIG_EM (CO_CONFIG_EM_PRODUCER | CO_CONFIG_EM_HISTORY)
199 #define CO_CONFIG_EM_PRODUCER 0x01
200 #define CO_CONFIG_EM_PROD_CONFIGURABLE 0x02
201 #define CO_CONFIG_EM_PROD_INHIBIT 0x04
202 #define CO_CONFIG_EM_HISTORY 0x08
203 #define CO_CONFIG_EM_STATUS_BITS 0x10
204 #define CO_CONFIG_EM_CONSUMER 0x20
214 #define CO_CONFIG_EM_ERR_STATUS_BITS_COUNT (10*8)
228 #define CO_CONFIG_EM_BUFFER_SIZE 16
246 #define CO_CONFIG_ERR_CONDITION_GENERIC (em->errorStatusBits[5] != 0)
255 #define CO_CONFIG_ERR_CONDITION_CURRENT
264 #define CO_CONFIG_ERR_CONDITION_VOLTAGE
273 #define CO_CONFIG_ERR_CONDITION_TEMPERATURE
284 #define CO_CONFIG_ERR_CONDITION_COMMUNICATION (em->errorStatusBits[2] || em->errorStatusBits[3])
293 #define CO_CONFIG_ERR_CONDITION_DEV_PROFILE
304 #define CO_CONFIG_ERR_CONDITION_MANUFACTURER (em->errorStatusBits[8] || em->errorStatusBits[9])
329 #define CO_CONFIG_SDO_SRV (CO_CONFIG_SDO_SRV_SEGMENTED)
331 #define CO_CONFIG_SDO_SRV_SEGMENTED 0x02
332 #define CO_CONFIG_SDO_SRV_BLOCK 0x04
342 #define CO_CONFIG_SDO_SRV_BUFFER_SIZE 32
367 #define CO_CONFIG_SDO_CLI (0)
369 #define CO_CONFIG_SDO_CLI_ENABLE 0x01
370 #define CO_CONFIG_SDO_CLI_SEGMENTED 0x02
371 #define CO_CONFIG_SDO_CLI_BLOCK 0x04
372 #define CO_CONFIG_SDO_CLI_LOCAL 0x08
386 #define CO_CONFIG_SDO_CLI_BUFFER_SIZE 32
406 #define CO_CONFIG_TIME (0)
408 #define CO_CONFIG_TIME_ENABLE 0x01
409 #define CO_CONFIG_TIME_PRODUCER 0x02
430 #define CO_CONFIG_SYNC (CO_CONFIG_SYNC_ENABLE | CO_CONFIG_SYNC_PRODUCER)
432 #define CO_CONFIG_SYNC_ENABLE 0x01
433 #define CO_CONFIG_SYNC_PRODUCER 0x02
453 #define CO_CONFIG_PDO (CO_CONFIG_RPDO_ENABLE | CO_CONFIG_TPDO_ENABLE | CO_CONFIG_PDO_SYNC_ENABLE)
455 #define CO_CONFIG_RPDO_ENABLE 0x01
456 #define CO_CONFIG_TPDO_ENABLE 0x02
457 #define CO_CONFIG_PDO_SYNC_ENABLE 0x04
458 #define CO_CONFIG_RPDO_CALLS_EXTENSION 0x08
459 #define CO_CONFIG_TPDO_CALLS_EXTENSION 0x10
477 #define CO_CONFIG_LEDS (CO_CONFIG_LEDS_ENABLE)
479 #define CO_CONFIG_LEDS_ENABLE 0x01
497 #define CO_CONFIG_GFC (0)
499 #define CO_CONFIG_GFC_ENABLE 0x01
500 #define CO_CONFIG_GFC_CONSUMER 0x02
501 #define CO_CONFIG_GFC_PRODUCER 0x04
520 #define CO_CONFIG_SRDO (0)
522 #define CO_CONFIG_SRDO_ENABLE 0x01
523 #define CO_CONFIG_SRDO_CHECK_TX 0x02
524 #define CO_CONFIG_RSRDO_CALLS_EXTENSION 0x04
525 #define CO_CONFIG_TSRDO_CALLS_EXTENSION 0x08
534 #define CO_CONFIG_SRDO_MINIMUM_DELAY 0
557 #define CO_CONFIG_LSS (CO_CONFIG_LSS_SLAVE)
559 #define CO_CONFIG_LSS_SLAVE 0x01
560 #define CO_CONFIG_LSS_SLAVE_FASTSCAN_DIRECT_RESPOND 0x02
561 #define CO_CONFIG_LSS_MASTER 0x10
595 #define CO_CONFIG_GTW (0)
597 #define CO_CONFIG_GTW_MULTI_NET 0x01
598 #define CO_CONFIG_GTW_ASCII 0x02
599 #define CO_CONFIG_GTW_ASCII_SDO 0x04
600 #define CO_CONFIG_GTW_ASCII_NMT 0x08
601 #define CO_CONFIG_GTW_ASCII_LSS 0x10
602 #define CO_CONFIG_GTW_ASCII_LOG 0x20
603 #define CO_CONFIG_GTW_ASCII_ERROR_DESC 0x40
604 #define CO_CONFIG_GTW_ASCII_PRINT_HELP 0x80
605 #define CO_CONFIG_GTW_ASCII_PRINT_LEDS 0x100
615 #define CO_CONFIG_GTW_BLOCK_DL_LOOP 1
625 #define CO_CONFIG_GTWA_COMM_BUF_SIZE 200
632 #define CO_CONFIG_GTWA_LOG_BUF_SIZE 2000
650 #define CO_CONFIG_CRC16 (0)
652 #define CO_CONFIG_CRC16_ENABLE 0x01
653 #define CO_CONFIG_CRC16_EXTERNAL 0x02
684 #define CO_CONFIG_FIFO (0)
686 #define CO_CONFIG_FIFO_ENABLE 0x01
687 #define CO_CONFIG_FIFO_ALT_READ 0x02
688 #define CO_CONFIG_FIFO_CRC16_CCITT 0x04
689 #define CO_CONFIG_FIFO_ASCII_COMMANDS 0x08
690 #define CO_CONFIG_FIFO_ASCII_DATATYPES 0x10
708 #define CO_CONFIG_TRACE (0)
710 #define CO_CONFIG_TRACE_ENABLE 0x01
711 #define CO_CONFIG_TRACE_OWN_INTTYPES 0x02
732 #define CO_CONFIG_DEBUG (0)
734 #define CO_CONFIG_DEBUG_COMMON 0x01
735 #define CO_CONFIG_DEBUG_SDO_CLIENT 0x02
736 #define CO_CONFIG_DEBUG_SDO_SERVER 0x04