Bar Logo Dual Active Bridge Development Board (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
dev_led.c File Reference

Contains LED initialization and execution functions. More...

#include "xc.h"
#include "dev_led.h"
#include "system/pins.h"
+ Include dependency graph for dev_led.c:

Go to the source code of this file.

Macros

#define LED_STATE_OFF   0
 These are the macros indicating the status of the LED.
 
#define LED_STATE_ON   1
 
#define LED_STATE_BLINK   2
 
#define LED_STATE_BLINK_SLOW   3
 
#define LED_STATE_BLINK_FAST   4
 
#define LED_STATE_BLINK_COUNT   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_Iter (uint8_t led_id, uint8_t count)
 Set the LED in blinking mode in number of LED iterations.
 
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.
 

Variables

uint8_t ledStates [NUM_OF_LEDS]
 array that stores the led states
 
uint8_t ledTimer [NUM_OF_LEDS]
 array that stores led blink times
 
uint8_t ledIterationsCounter [NUM_OF_LEDS]
 

Detailed Description

<>

Definition in file dev_led.c.

Variable Documentation

◆ ledIterationsCounter

uint8_t ledIterationsCounter[NUM_OF_LEDS]

Definition at line 67 of file dev_led.c.

◆ ledStates

uint8_t ledStates[NUM_OF_LEDS]

Private Variables

Definition at line 63 of file dev_led.c.

◆ ledTimer

uint8_t ledTimer[NUM_OF_LEDS]

Definition at line 64 of file dev_led.c.