openMMC
Open Source Modular MMC for AMCs
|
#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"
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 |
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 ) |
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.
[in] | req | Pointer to request struct to be handled and answered. Contains which LED should be set, how it should be set and other commands. |
[out] | rsp | Pointer to response struct to be modified with the message |
void led_act | ( | uint8_t | id, |
uint8_t | action ) |
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 ) |
LEDConfig_t led_config[FRU_COUNT][LED_CNT] |
QueueHandle_t led_update_queue |