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 LED_TURN_OFF   0x00
 
#define LED_TURN_ON   0x01
 
#define LED_START_BLINK   0x02
 
#define LED_STOP_BLINK   0x03
 

Enumerations

enum  LED_IDX_E {
  LED_IDX_E_POWER = 0 , LED_IDX_E_FAULT , LED_IDX_E_LEAK , LED_IDX_E_COOLANT ,
  LED_IDX_E_MAX
}
 

Functions

void led_set (uint8_t idx, uint8_t behaviour)
 
void led_ctrl (uint8_t idx, uint8_t ctrl)
 
uint8_t get_led_pin (uint8_t idx)
 
uint8_t get_led_status (uint8_t idx)
 
bool fault_led_control (void)
 

Macro Definition Documentation

◆ LED_START_BLINK

#define LED_START_BLINK   0x02

◆ LED_STOP_BLINK

#define LED_STOP_BLINK   0x03

◆ LED_TURN_OFF

#define LED_TURN_OFF   0x00

◆ LED_TURN_ON

#define LED_TURN_ON   0x01

Enumeration Type Documentation

◆ LED_IDX_E

enum LED_IDX_E
Enumerator
LED_IDX_E_POWER 
LED_IDX_E_FAULT 
LED_IDX_E_LEAK 
LED_IDX_E_COOLANT 
LED_IDX_E_MAX 

Function Documentation

◆ fault_led_control()

bool fault_led_control ( void  )
Here is the call graph for this function:

◆ get_led_pin()

uint8_t get_led_pin ( uint8_t  idx)

◆ get_led_status()

uint8_t get_led_status ( uint8_t  idx)

◆ led_ctrl()

void led_ctrl ( uint8_t  idx,
uint8_t  ctrl 
)

◆ led_set()

void led_set ( uint8_t  idx,
uint8_t  behaviour 
)
Here is the call graph for this function: