20 #ifndef RTLIB_LIB_LED_H_
21 #define RTLIB_LIB_LED_H_
28 static_assert(LIB_USE_LED > 0,
"Led library is disabled in your configuration.");
71 Led(
Led&& other) noexcept = default;
78 Led& operator=(
Led&& other) noexcept = default;
93 Led& operator=(const
Led&) = delete;
120 #endif // RTLIB_LIB_LED_H_
Helper file for selecting which GPIO class to enable.
Configuration for LED.
Definition: led.h:41
HAL implementation for LEDs.
Definition: led.h:36
Helper file for selecting device configurations.
~Led()=default
Default trivial destructor.
void Switch()
Toggles the state of the LED, i.e. On -> Off, vice versa.
Definition: led.cpp:68
CORE_NS::GPIO * GetGpio()
Definition: led.h:113
void SetEnable(bool flag)
Sets the state of the LED.
Definition: led.cpp:64
bool polarity
If true, LED is assumed to be active low.
Definition: led.h:51
Led(const Config &config)
Default constructor for LED.
Definition: led.cpp:54