This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
SummerSchool2-Controller/306-controller_interface.X/board/led/led.h

44 lines
612 B
C
Raw Normal View History

/**
* @author R<EFBFBD>mi Heredero (remi@heredero.ch)
* @version. 1.0.0
* @date 2023-06-15
*/
2023-08-22 07:22:00 +00:00
#ifndef LED_H
#define LED_H
2023-08-22 07:22:00 +00:00
#include <stdint.h>
2023-08-22 07:22:00 +00:00
// LED struct
typedef struct {
uint8_t id; // The id of the LED
}LED;
2023-08-22 07:22:00 +00:00
/**
* Initialize the led
* @param me the led itself
* @param id the id of the led
*/
2023-08-22 07:22:00 +00:00
void LED_init(LED* me, uint8_t id);
/**
* Initializing the led
* @param me the led itself
*/
2023-08-22 07:22:00 +00:00
void LED_initHW(LED* me);
/**
* Turn On the led
* @param me the led itself
*/
void LED_on(void* me);
/**
* Turn Off the led
* @param me the led itself
*/
void LED_off(void* me);
#endif /* LED_H */