Leosac  0.8.0
Open Source Access Control
Leosac::Module::LedBuzzer::SM::LedBuzzerSM_ Struct Reference

#include <LedBuzzerSM.hpp>

+ Inheritance diagram for Leosac::Module::LedBuzzer::SM::LedBuzzerSM_:
+ Collaboration diagram for Leosac::Module::LedBuzzer::SM::LedBuzzerSM_:

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::FGPIOgpio_
 Facade to the underlying gpio. More...
 
std::chrono::system_clock::time_point next_update_time_
 Next time_point we want to be updated. More...
 

Detailed Description

Definition at line 95 of file LedBuzzerSM.hpp.

Member Typedef Documentation

◆ initial_state

Constructor & Destructor Documentation

◆ LedBuzzerSM_()

Leosac::Module::LedBuzzer::SM::LedBuzzerSM_::LedBuzzerSM_ ( Hardware::FGPIO h)
inline

Definition at line 98 of file LedBuzzerSM.hpp.

Member Function Documentation

◆ next_update()

std::chrono::system_clock::time_point Leosac::Module::LedBuzzer::SM::LedBuzzerSM_::next_update ( ) const
inline

Definition at line 300 of file LedBuzzerSM.hpp.

Member Data Documentation

◆ gpio_

Hardware::FGPIO& Leosac::Module::LedBuzzer::SM::LedBuzzerSM_::gpio_

Facade to the underlying gpio.

Definition at line 322 of file LedBuzzerSM.hpp.

◆ led_state_

Hardware::FLED::State Leosac::Module::LedBuzzer::SM::LedBuzzerSM_::led_state_

The state of the LED.

Warning
It is not completely accurate ! The 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.

◆ next_update_time_

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.

◆ playing_pattern_

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.


The documentation for this struct was generated from the following file: