REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
leds.h
Go to the documentation of this file.
1#pragma once
2#include <cstdint>
3#include <lucidac/leds.h>
4#include <utils/error.h>
5
6namespace platform {
7
8class NativeLEDs : public LEDs {
9public:
10 NativeLEDs();
11
13 bool set(const uint8_t led, bool on) override;
15 void set_all(const uint8_t states) override;
17 void reset() override;
18
20 uint8_t get_all() const override;
21
22 utils::status write_to_hardware() const override;
23
24private:
25 uint8_t led_states = 0;
26};
27} // namespace platform
utils::status write_to_hardware() const override
Definition leds.cpp:24
void set_all(const uint8_t states) override
Sets all eight front leds at once.
Definition leds.cpp:18
bool set(const uint8_t led, bool on) override
Sets specified front led to the specified value.
Definition leds.cpp:6
void reset() override
Disables all eight front leds.
Definition leds.cpp:20
uint8_t get_all() const override
Returns the current state of the front leds.
Definition leds.cpp:22
Definition leds.h:7