OpenBIC
OpenSource Bridge-IC
plat_led.h File Reference
#include <stdint.h>
Include dependency graph for plat_led.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AMBER_LED_BLINK_INTERVAL_MS   500
 
#define UNKNOWN_LED_GPIO   0xFF
 

Enumerations

enum  AMBER_LED_CONTROL_OPTION {
  CTRL_LED_TURN_OFF = 0x00 , CTRL_LED_TURN_ON , CTRL_LED_START_BLINK , CTRL_LED_STOP_BLINK ,
  CTRL_LED_UNKNOWN = 0xFF
}
 
enum  AMBER_LED_STATUS { LED_STATUS_OFF = 0x00 , LED_STATUS_ON , LED_STATUS_BLINK , LED_STATUS_UNKNOWN = 0xFF }
 

Functions

uint8_t get_e1s_led_gpio (uint8_t device_id)
 
struct k_timer * get_e1s_led_timer (uint8_t device_id)
 
void stop_blink_timer (uint8_t device_id)
 
void set_e1s_amber_led (uint8_t device_id, uint8_t ctrl_option)
 
uint8_t get_e1s_amber_led_status (uint8_t device_id)
 
int control_e1s_amber_led (uint8_t device_id, uint8_t ctrl_option)
 

Macro Definition Documentation

◆ AMBER_LED_BLINK_INTERVAL_MS

#define AMBER_LED_BLINK_INTERVAL_MS   500

◆ UNKNOWN_LED_GPIO

#define UNKNOWN_LED_GPIO   0xFF

Enumeration Type Documentation

◆ AMBER_LED_CONTROL_OPTION

Enumerator
CTRL_LED_TURN_OFF 
CTRL_LED_TURN_ON 
CTRL_LED_START_BLINK 
CTRL_LED_STOP_BLINK 
CTRL_LED_UNKNOWN 

◆ AMBER_LED_STATUS

Enumerator
LED_STATUS_OFF 
LED_STATUS_ON 
LED_STATUS_BLINK 
LED_STATUS_UNKNOWN 

Function Documentation

◆ control_e1s_amber_led()

int control_e1s_amber_led ( uint8_t  device_id,
uint8_t  ctrl_option 
)

◆ get_e1s_amber_led_status()

uint8_t get_e1s_amber_led_status ( uint8_t  device_id)

◆ get_e1s_led_gpio()

uint8_t get_e1s_led_gpio ( uint8_t  device_id)
Here is the call graph for this function:

◆ get_e1s_led_timer()

struct k_timer * get_e1s_led_timer ( uint8_t  device_id)

◆ set_e1s_amber_led()

void set_e1s_amber_led ( uint8_t  device_id,
uint8_t  ctrl_option 
)
Here is the call graph for this function:

◆ stop_blink_timer()

void stop_blink_timer ( uint8_t  device_id)
Here is the call graph for this function: