Go to the documentation of this file.
33 #ifndef CO_CONFIG_LEDS
34 #define CO_CONFIG_LEDS (CO_CONFIG_LEDS_ENABLE)
37 #if ((CO_CONFIG_LEDS) & CO_CONFIG_LEDS_ENABLE) || defined CO_DOXYGEN
85 #define CO_LED_RED(LEDs, BITFIELD) (((LEDs)->LEDred & BITFIELD) ? 1 : 0)
87 #define CO_LED_GREEN(LEDs, BITFIELD) (((LEDs)->LEDgreen & BITFIELD) ? 1 : 0)
unsigned long int uint32_t
UNSIGNED32 in CANopen (0007h), 32-bit unsigned integer.
Definition: CO_driver.h:155
Interface between CAN hardware and CANopenNode.
uint8_t LEDred
red led CO_LED_BITFIELD_t
Definition: CO_LEDs.h:100
CO_ReturnError_t CO_LEDs_init(CO_LEDs_t *LEDs)
Initialize LEDs object.
CO_LED_BITFIELD_t
Bitfield for combining with red or green led.
Definition: CO_LEDs.h:74
@ CO_LED_flash_3
LED triple flash.
Definition: CO_LEDs.h:79
LEDs object, initialized by CO_LEDs_init()
Definition: CO_LEDs.h:93
CO_ReturnError_t
Return values of some CANopen functions.
Definition: CO_driver.h:488
@ CO_LED_blink
LED blinking 2,5Hz.
Definition: CO_LEDs.h:76
unsigned char bool_t
Boolean data type for general use.
Definition: CO_driver.h:141
uint8_t LEDtmrflash_1
single flash led timer
Definition: CO_LEDs.h:96
uint8_t LEDgreen
green led CO_LED_BITFIELD_t
Definition: CO_LEDs.h:101
uint8_t LEDtmrflash_3
triple flash led timer
Definition: CO_LEDs.h:98
@ CO_LED_CANopen
LED CANopen according to CiA 303-3.
Definition: CO_LEDs.h:81
void CO_LEDs_process(CO_LEDs_t *LEDs, uint32_t timeDifference_us, CO_NMT_internalState_t NMTstate, bool_t LSSconfig, bool_t ErrCANbusOff, bool_t ErrCANbusWarn, bool_t ErrRpdo, bool_t ErrSync, bool_t ErrHbCons, bool_t ErrOther, bool_t firmwareDownload, uint32_t *timerNext_us)
Process indicator states.
@ CO_LED_flash_4
LED quadruple flash.
Definition: CO_LEDs.h:80
uint8_t LEDtmrflash_2
double flash led timer
Definition: CO_LEDs.h:97
uint8_t LEDtmrflash_4
quadruple flash led timer
Definition: CO_LEDs.h:99
CO_NMT_internalState_t
Internal network state of the CANopen node.
Definition: CO_NMT_Heartbeat.h:77
CANopen Network management and Heartbeat producer protocol.
uint32_t LEDtmr50ms
50ms led timer
Definition: CO_LEDs.h:94
@ CO_LED_flicker
LED flickering 10Hz.
Definition: CO_LEDs.h:75
uint8_t LEDtmr200ms
200ms led timer
Definition: CO_LEDs.h:95
@ CO_LED_flash_2
LED double flash.
Definition: CO_LEDs.h:78
@ CO_LED_flash_1
LED single flash.
Definition: CO_LEDs.h:77
unsigned char uint8_t
UNSIGNED8 in CANopen (0005h), 8-bit unsigned integer.
Definition: CO_driver.h:151