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
24
enum
LED_IDX_E
{
25
LED_IDX_E_POWER
= 0,
26
LED_IDX_E_FAULT
,
27
LED_IDX_E_LEAK
,
28
LED_IDX_E_COOLANT
,
29
LED_IDX_E_MAX
,
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
37
void
led_set
(uint8_t
idx
, uint8_t behaviour);
38
void
led_ctrl
(uint8_t
idx
, uint8_t ctrl);
39
uint8_t
get_led_pin
(uint8_t
idx
);
40
uint8_t
get_led_status
(uint8_t
idx
);
41
//void SSDLEDInit(void);
42
bool
fault_led_control
(
void
);
led_ctrl
void led_ctrl(uint8_t idx, uint8_t ctrl)
Definition:
plat_led.c:98
get_led_pin
uint8_t get_led_pin(uint8_t idx)
Definition:
plat_led.c:49
fault_led_control
bool fault_led_control(void)
Definition:
plat_led.c:178
led_set
void led_set(uint8_t idx, uint8_t behaviour)
Definition:
plat_led.c:73
get_led_status
uint8_t get_led_status(uint8_t idx)
Definition:
plat_led.c:129
LED_IDX_E
LED_IDX_E
Definition:
plat_led.h:24
LED_IDX_E_COOLANT
@ LED_IDX_E_COOLANT
Definition:
plat_led.h:28
LED_IDX_E_LEAK
@ LED_IDX_E_LEAK
Definition:
plat_led.h:27
LED_IDX_E_FAULT
@ LED_IDX_E_FAULT
Definition:
plat_led.h:26
LED_IDX_E_POWER
@ LED_IDX_E_POWER
Definition:
plat_led.h:25
LED_IDX_E_MAX
@ LED_IDX_E_MAX
Definition:
plat_led.h:29
idx
uint8_t idx
Definition:
plat_util.c:39
meta-facebook
aalc-rpu
src
platform
plat_led.h
Generated by
1.9.2