|
oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
|
Thin C++ wrappers around the oveRTOS LED control API. More...
Functions | |
| void | set (unsigned int led, int on) |
| Turns a LED on or off. | |
| void | toggle (unsigned int led) |
| Toggles the state of a LED. | |
| unsigned int | count () |
| Returns the total number of LEDs available on this board. | |
Thin C++ wrappers around the oveRTOS LED control API.
Available when CONFIG_OVE_LED is enabled. LEDs are identified by a zero-based index.
|
inline |
Turns a LED on or off.
| [in] | led | LED index (0-based). |
| [in] | on | Non-zero to turn on, zero to turn off. |
|
inline |
Toggles the state of a LED.
| [in] | led | LED index (0-based). |
|
inline |
Returns the total number of LEDs available on this board.