openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
led.c File Reference
#include "string.h"
#include "FreeRTOS.h"
#include "queue.h"
#include "ipmi.h"
#include "port.h"
#include "led.h"
#include "task_priorities.h"
#include "fru.h"
#include "board_led.h"
Include dependency graph for led.c:

Functions

void LED_init (void)
 
void LED_Task (void *Parameters)
 
void LEDManage (LEDConfig_t *led_cfg)
 
void LEDUpdate (uint8_t fru, uint8_t led_num, uint8_t mode, uint8_t init_status, uint16_t t_init, uint16_t t_toggle)
 
void led_act (uint8_t id, uint8_t action)
 
 IPMI_HANDLER (ipmi_picmg_set_fru_led_state, NETFN_GRPEXT, IPMI_PICMG_CMD_SET_FRU_LED_STATE, ipmi_msg *req, ipmi_msg *rsp)
 Handler for "Set FRU LED State"" request. Check IPMI 2.0 table 3-31 for more information.
 
 IPMI_HANDLER (ipmi_picmg_get_fru_led_properties, NETFN_GRPEXT, IPMI_PICMG_CMD_GET_FRU_LED_PROPERTIES, ipmi_msg *req, ipmi_msg *rsp)
 
 IPMI_HANDLER (ipmi_picmg_get_fru_led_state, NETFN_GRPEXT, IPMI_PICMG_CMD_GET_FRU_LED_STATE, ipmi_msg *req, ipmi_msg *rsp)
 
 IPMI_HANDLER (ipmi_picmg_get_led_color_capabilities, NETFN_GRPEXT, IPMI_PICMG_CMD_GET_LED_COLOR_CAPABILITIES, ipmi_msg *req, ipmi_msg *rsp)
 

Variables

LEDConfig_t led_config [FRU_COUNT][LED_CNT]
 
QueueHandle_t led_update_queue
 

Function Documentation

◆ IPMI_HANDLER() [1/4]

IPMI_HANDLER ( ipmi_picmg_get_fru_led_properties ,
NETFN_GRPEXT ,
IPMI_PICMG_CMD_GET_FRU_LED_PROPERTIES ,
ipmi_msg * req,
ipmi_msg * rsp )

◆ IPMI_HANDLER() [2/4]

IPMI_HANDLER ( ipmi_picmg_get_fru_led_state ,
NETFN_GRPEXT ,
IPMI_PICMG_CMD_GET_FRU_LED_STATE ,
ipmi_msg * req,
ipmi_msg * rsp )

◆ IPMI_HANDLER() [3/4]

IPMI_HANDLER ( ipmi_picmg_get_led_color_capabilities ,
NETFN_GRPEXT ,
IPMI_PICMG_CMD_GET_LED_COLOR_CAPABILITIES ,
ipmi_msg * req,
ipmi_msg * rsp )

◆ IPMI_HANDLER() [4/4]

IPMI_HANDLER ( ipmi_picmg_set_fru_led_state ,
NETFN_GRPEXT ,
IPMI_PICMG_CMD_SET_FRU_LED_STATE ,
ipmi_msg * req,
ipmi_msg * rsp )

Handler for "Set FRU LED State"" request. Check IPMI 2.0 table 3-31 for more information.

Parameters
[in]reqPointer to request struct to be handled and answered. Contains which LED should be set, how it should be set and other commands.
[out]rspPointer to response struct to be modified with the message
Returns
void

◆ led_act()

void led_act ( uint8_t id,
uint8_t action )

◆ LED_init()

void LED_init ( void )

◆ LED_Task()

void LED_Task ( void * Parameters)

◆ LEDManage()

void LEDManage ( LEDConfig_t * led_cfg)

◆ LEDUpdate()

void LEDUpdate ( uint8_t fru,
uint8_t led_num,
uint8_t mode,
uint8_t init_status,
uint16_t t_init,
uint16_t t_toggle )

Variable Documentation

◆ led_config

◆ led_update_queue

QueueHandle_t led_update_queue