GaIA BIOS Library
Loading...
Searching...
No Matches
gwa_indicators.h File Reference

CiA 303-3 LED Indicators driver. More...

#include <stdint.h>

Macros

#define CIA_ERR_NO_ERROR   STD_R_OFF
 No Error.
#define CIA_ERR_LSS_PHASE   STD_R_FLICKER
 AutoBitrate/LSS.
#define CIA_ERR_INV_CONFIG   STD_R_BLINK
 Invalid Configuration.
#define CIA_ERR_WARN_LIM   STD_R_FLASH1
 Warning limit reached.
#define CIA_ERR_CTRL_EVENT   STD_R_FLASH2
 Error control event.
#define CIA_ERR_SYNC_ERR   STD_R_FLASH3
 Sync error.
#define CIA_ERR_EVT_TIMER   STD_R_FLASH4
 Event-timer error.
#define CIA_ERR_BUS_OFF   STD_R_ON
 Bus off.
#define CIA_RUN_RESET   STD_G_OFF
 Reset.
#define CIA_RUN_LSS_PHASE   STD_G_FLICKER
 AutoBitrate/LSS.
#define CIA_RUN_PRE_OP   STD_G_BLINK
 Pre-Operational.
#define CIA_RUN_STOP   STD_G_FLASH1
 Stopped.
#define CIA_RUN_RESERVED1   STD_G_FLASH2
 Reserved.
#define CIA_RUN_SW_DLOAD   STD_G_FLASH3
 Program/Firmware download.
#define CIA_RUN_OPERATNL   STD_G_ON
 Operational.
#define CIA_RUN_DUMMY   STD_G_DUMMY
 Reserved.

Enumerations

enum  led_indicator_type_t {
  STD_R_OFF = 0 , STD_R_FLICKER , STD_R_BLINK , STD_R_FLASH1 ,
  STD_R_FLASH2 , STD_R_FLASH3 , STD_R_FLASH4 , STD_R_ON ,
  STD_G_OFF , STD_G_FLICKER , STD_G_BLINK , STD_G_FLASH1 ,
  STD_G_FLASH2 , STD_G_FLASH3 , STD_G_ON , STD_G_DUMMY
}
 LED Indicator sequences as defined in document CiA 303-3. More...

Functions

void gwa_led_set (uint8_t led, uint32_t action, uint32_t message)
 This function is left for compatibility purpose, calling it has no effect.
void gwa_led_set_command (uint8_t led, led_indicator_type_t CmdIndex)
 This function sets the specified LED to the specified pattern.
void gwa_led_fsm_init_n (uint8_t nleds)
 Initialize LED Finite State Machine handler.
void gwa_led_fsm_init (void)
 Initialize LED Finite State Machine handler This function initializes 4 LEDs.
uint8_t gwa_led_fsm (void)
 Finite State Machine handler This function must be cyclically called every 50 ms to evolve the LED status.

Detailed Description

CiA 303-3 LED Indicators driver.

GWA LED Indicator functions.

Author
Tecnologix, 2020