OpenBIC
OpenSource Bridge-IC
plat_led.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <stdint.h>
18
19#define LED_TURN_OFF 0x00
20#define LED_TURN_ON 0x01
21#define LED_START_BLINK 0x02
22#define LED_STOP_BLINK 0x03
23
30};
31
32// FM_LED_FP_4_EN //coolant led
33// FM_LED_FP_3_EN //leak led
34// FM_LED_FP_2_EN //fault led
35// FM_LED_FP_1_EN //pwr led
36
37void led_set(uint8_t idx, uint8_t behaviour);
38void led_ctrl(uint8_t idx, uint8_t ctrl);
39uint8_t get_led_pin(uint8_t idx);
40uint8_t get_led_status(uint8_t idx);
41//void SSDLEDInit(void);
42bool fault_led_control(void);
void led_ctrl(uint8_t idx, uint8_t ctrl)
Definition: plat_led.c:98
uint8_t get_led_pin(uint8_t idx)
Definition: plat_led.c:49
bool fault_led_control(void)
Definition: plat_led.c:178
void led_set(uint8_t idx, uint8_t behaviour)
Definition: plat_led.c:73
uint8_t get_led_status(uint8_t idx)
Definition: plat_led.c:129
LED_IDX_E
Definition: plat_led.h:24
@ LED_IDX_E_COOLANT
Definition: plat_led.h:28
@ LED_IDX_E_LEAK
Definition: plat_led.h:27
@ LED_IDX_E_FAULT
Definition: plat_led.h:26
@ LED_IDX_E_POWER
Definition: plat_led.h:25
@ LED_IDX_E_MAX
Definition: plat_led.h:29
uint8_t idx
Definition: plat_util.c:39