#include <stdbool.h>
#include <stdint.h>
#include "common/phal_F4/gpio/gpio.h"
#include "common/phal_F4/spi/spi.h"
Go to the source code of this file.
|
| bool | LED_control (int led, enum LED_state state) |
| | Set, clear, or toggle a specified LED pin.
|
| |
| void | LED_periodic () |
| | Periodic LED function that toggles LEDs that need to be toggled.
|
| |
| uint8_t | get_LED_status (int led) |
| | Get the status of a specified LED pin.
|
| |
- Author
- Charles Tamer (ctame.nosp@m.r@pu.nosp@m.rdue..nosp@m.edu)
- Version
- 0.1
- Date
- 2024-1-13
- Copyright
- Copyright (c) 2024
◆ LED_5V_CRIT
◆ LED_5V_FAN
◆ LED_ABOX
◆ LED_BLT
◆ LED_DAQ
◆ LED_DASH
◆ LED_DLBK
◆ LED_DLFR
◆ LED_HXFAN
◆ LED_MAIN
◆ LED_PUMP_1
◆ LED_PUMP_2
◆ LED_SDC
◆ LED_TV
◆ MAX_NUM_LED
◆ LED_state
| Enumerator |
|---|
| LED_OFF | |
| LED_ON | |
| LED_BLINK | |
◆ get_LED_status()
| uint8_t get_LED_status |
( |
int | led | ) |
|
Get the status of a specified LED pin.
- Parameters
-
- Returns
- enum for the LED state
◆ LED_control()
| bool LED_control |
( |
int | led, |
|
|
enum LED_state | state ) |
Set, clear, or toggle a specified LED pin.
- Parameters
-
| spi | SPI hande |
| led | LED driver pin |
| state | Desired state of the LED : SET, CLEAR, or TOGGLE |
- Returns
- true if data transfer is successful
-
false if data transfer fails
◆ LED_periodic()
Periodic LED function that toggles LEDs that need to be toggled.
- Parameters
-
return