Leosac  0.8.0
Open Source Access Control
Leosac::Hardware::FLED::State Struct Reference

#include <FLED.hpp>

Public Types

enum  { ON, OFF, BLINKING, UNKNOWN }
 Internal state of the LED. More...
 

Public Member Functions

 State ()
 

Public Attributes

enum Leosac::Hardware::FLED::State:: { ... }  st
 Internal state of the LED. More...
 
int64_t duration
 Set only if st is BLINKING, it represents the total duration of blinking. More...
 
int64_t speed
 Set only if st is BLINKING, it represents the speed of blinking. More...
 
bool value
 Set only if st is BLINKING : value of the LED (true if ON, false otherwise). More...
 

Detailed Description

Definition at line 47 of file FLED.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Internal state of the LED.

Enumerator
ON 
OFF 
BLINKING 
UNKNOWN 

Definition at line 60 of file FLED.hpp.

Constructor & Destructor Documentation

◆ State()

Leosac::Hardware::FLED::State::State ( )
inline

Definition at line 49 of file FLED.hpp.

Member Data Documentation

◆ duration

int64_t Leosac::Hardware::FLED::State::duration

Set only if st is BLINKING, it represents the total duration of blinking.

Definition at line 72 of file FLED.hpp.

◆ speed

int64_t Leosac::Hardware::FLED::State::speed

Set only if st is BLINKING, it represents the speed of blinking.

Definition at line 77 of file FLED.hpp.

◆ st

enum { ... } Leosac::Hardware::FLED::State::st

Internal state of the LED.

◆ value

bool Leosac::Hardware::FLED::State::value

Set only if st is BLINKING : value of the LED (true if ON, false otherwise).

Definition at line 83 of file FLED.hpp.


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