![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
LED control library for the SatNOGS-COMMS board. More...
#include <leds.hpp>
Public Types | |
| enum class | led : uint8_t { led0 , led1 } |
| Enumerates the available LEDs on the SatNOGS-COMMS board. More... | |
Public Member Functions | |
| leds (bsp::gpio &led0, bsp::gpio &led1) | |
| Constructs an instance of the leds class. | |
| void | toggle (led x) |
| Toggles the state of the specified LED. | |
| void | enable (led x, bool en=true) |
| Enables or disables the specified led. | |
| void | disable (led x) |
| Disables the specified led. | |
| bool | enabled (led x) const |
| Checks if the specified led is currently enabled. | |
LED control library for the SatNOGS-COMMS board.
This class allows controlling the LEDs on the SatNOGS-COMMS board using basic operations such as toggling, enabling, disabling, and checking their state.
|
strong |
| void satnogs::comms::lib::leds::disable | ( | led | x | ) |
| void satnogs::comms::lib::leds::enable | ( | led | x, |
| bool | en = true ) |
| bool satnogs::comms::lib::leds::enabled | ( | led | x | ) | const |
| void satnogs::comms::lib::leds::toggle | ( | led | x | ) |