|  | Dual Active Bridge Development Board (Part-No. ) |
Content |  |  |  |  |  |

Loading...
Searching...
No Matches
Functions
dev_led.h File Reference
Device Layer » LED Display

led device driver More...

`#include <xc.h>`
`#include <stdint.h>`
Include dependency graph for dev_led.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros
#define | NUM_OF_LEDS 3
#define | LED_Board_Red_On LED_RED_SetHigh
| abstracting away led mcc function calls.
#define | LED_Board_Red_Off LED_RED_SetLow
#define | LED_Board_Red_Toggle_State LED_RED_Toggle
#define | LED_Board_Green_On LED_GREEN_SetHigh
#define | LED_Board_Green_Off LED_GREEN_SetLow
#define | LED_Board_Green_Toggle_State LED_GREEN_Toggle
#define | LED_DP_PIM_on LED_DP_PIM_SetHigh
#define | LED_DP_PIM_off LED_DP_PIM_SetLow
#define | LED_DP_PIM_Toggle_State LED_DP_PIM_Toggle
#define | LED_PIM_RED 0
| enumerating away
#define | LED_BOARD_RED 1
#define | LED_BOARD_GREEN 2
#define | BLINK_100ms_INTERVAL 1
#define | BLINK_SLOW_INTERVAL (BLINK_100ms_INTERVAL*20)
#define | BLINK_FAST_INTERVAL (BLINK_100ms_INTERVAL*2)
#define | BLINK_INTERVAL (BLINK_100ms_INTERVAL*5)

## Functions
void | Dev_LED_Initialize (void)
| This function contains the LED initialization.
void | Dev_LED_On (uint8_t led_id)
| Switch on the LED.
void | Dev_LED_Off (uint8_t led_id)
| Switch off the LED.
void | Dev_LED_Toggle (uint8_t led_id)
| Toggles the LED state.
void | Dev_LED_Blink (uint8_t led_id)
| Set the LED in blinking mode.
void | Dev_LED_Blink_Slow (uint8_t led_id)
| Set the LED in SLOW blinking mode.
void | Dev_LED_Blink_Fast (uint8_t led_id)
| Set the LED in FAST blinking mode.
void | Dev_LED_Task_100ms ()
| This function needs to be called every 100ms and contains the code to update the status of the LEDs.

## Detailed Description

Contains LED public functions.

Author
  M70027

Date
  05/02/2024

<>

Definition in file dev_led.h.

## Macro Definition Documentation

## ◆ BLINK_100ms_INTERVAL

#define BLINK_100ms_INTERVAL 1

Definition at line 65 of file dev_led.h.

## ◆ BLINK_FAST_INTERVAL

#define BLINK_FAST_INTERVAL (BLINK_100ms_INTERVAL*2)

Definition at line 67 of file dev_led.h.

## ◆ BLINK_INTERVAL

#define BLINK_INTERVAL (BLINK_100ms_INTERVAL*5)

Definition at line 68 of file dev_led.h.

## ◆ BLINK_SLOW_INTERVAL

#define BLINK_SLOW_INTERVAL (BLINK_100ms_INTERVAL*20)

Definition at line 66 of file dev_led.h.

## ◆ LED_BOARD_GREEN

#define LED_BOARD_GREEN 2

Definition at line 62 of file dev_led.h.

## ◆ LED_Board_Green_Off

#define LED_Board_Green_Off LED_GREEN_SetLow

Definition at line 46 of file dev_led.h.

## ◆ LED_Board_Green_On

#define LED_Board_Green_On LED_GREEN_SetHigh

Definition at line 45 of file dev_led.h.

## ◆ LED_Board_Green_Toggle_State

#define LED_Board_Green_Toggle_State LED_GREEN_Toggle

Definition at line 47 of file dev_led.h.

## ◆ LED_BOARD_RED

#define LED_BOARD_RED 1

Definition at line 61 of file dev_led.h.

## ◆ LED_Board_Red_Off

#define LED_Board_Red_Off LED_RED_SetLow

Definition at line 42 of file dev_led.h.

## ◆ LED_Board_Red_On

#define LED_Board_Red_On LED_RED_SetHigh

Definition at line 41 of file dev_led.h.

## ◆ LED_Board_Red_Toggle_State

#define LED_Board_Red_Toggle_State LED_RED_Toggle

Definition at line 43 of file dev_led.h.

## ◆ LED_DP_PIM_off

#define LED_DP_PIM_off LED_DP_PIM_SetLow

Definition at line 50 of file dev_led.h.

## ◆ LED_DP_PIM_on

#define LED_DP_PIM_on LED_DP_PIM_SetHigh

Definition at line 49 of file dev_led.h.

## ◆ LED_DP_PIM_Toggle_State

#define LED_DP_PIM_Toggle_State LED_DP_PIM_Toggle

Definition at line 51 of file dev_led.h.

## ◆ LED_PIM_RED

#define LED_PIM_RED 0

Definition at line 60 of file dev_led.h.

## ◆ NUM_OF_LEDS

#define NUM_OF_LEDS 3

Definition at line 31 of file dev_led.h.