Leosac
0.8.0
Open Source Access Control
|
#include <LedBuzzerSM.hpp>
Classes | |
struct | Idle |
struct | PlayingPattern |
struct | StateBlinking |
struct | transition_guard |
A transition guard that check EventBlinkStop. More... | |
struct | transition_table |
struct | UpdateAction |
Public Types | |
typedef Idle | initial_state |
Public Member Functions | |
LedBuzzerSM_ (Hardware::FGPIO &h) | |
std::chrono::system_clock::time_point | next_update () const |
Public Attributes | |
bool | playing_pattern_ |
If we are currently blinking in pattern, this will be true. More... | |
Hardware::FLED::State | led_state_ |
The state of the LED. More... | |
Hardware::FGPIO & | gpio_ |
Facade to the underlying gpio. More... | |
std::chrono::system_clock::time_point | next_update_time_ |
Next time_point we want to be updated. More... | |
Definition at line 95 of file LedBuzzerSM.hpp.
Definition at line 203 of file LedBuzzerSM.hpp.
|
inline |
Definition at line 98 of file LedBuzzerSM.hpp.
|
inline |
Definition at line 300 of file LedBuzzerSM.hpp.
Hardware::FGPIO& Leosac::Module::LedBuzzer::SM::LedBuzzerSM_::gpio_ |
Facade to the underlying gpio.
Definition at line 322 of file LedBuzzerSM.hpp.
Hardware::FLED::State Leosac::Module::LedBuzzer::SM::LedBuzzerSM_::led_state_ |
The state of the LED.
duration
and speed
are correct, but the value
is not, since it is not maintained by the state machine. Definition at line 316 of file LedBuzzerSM.hpp.
std::chrono::system_clock::time_point Leosac::Module::LedBuzzer::SM::LedBuzzerSM_::next_update_time_ |
Next time_point we want to be updated.
Set to time_point::max() if we don't want to be updated.
Definition at line 328 of file LedBuzzerSM.hpp.
bool Leosac::Module::LedBuzzer::SM::LedBuzzerSM_::playing_pattern_ |
If we are currently blinking in pattern, this will be true.
Definition at line 308 of file LedBuzzerSM.hpp.