![]() |
semf
|
Class for measuring the frequency on a capture input. More...
#include <frequencyin.h>
Public Member Functions | |
virtual | ~FrequencyIn ()=default |
virtual void | start ()=0 |
virtual void | stop ()=0 |
virtual void | reset ()=0 |
virtual uint32_t | periodTicks () const =0 |
Returns the measured ticks of a signal period (directly after capturing it and emitted dataAvailable signal). More... | |
virtual uint32_t | periodInMs () const =0 |
Returns the measured time in milliseconds of 2 successive captured signals. More... | |
virtual uint32_t | frequency () const =0 |
Returns the measured frequency. More... | |
Public Attributes | |
Signal | dataAvailable |
Class for measuring the frequency on a capture input.
Definition at line 24 of file frequencyin.h.
|
virtualdefault |
|
pure virtual |
Returns the measured frequency.
Implemented in semf::FrequencyIn.
|
pure virtual |
Returns the measured time in milliseconds of 2 successive captured signals.
Implemented in semf::FrequencyIn.
|
pure virtual |
Returns the measured ticks of a signal period (directly after capturing it and emitted dataAvailable
signal).
Implemented in semf::FrequencyIn.
|
pure virtual |
Reset the last measured period (counter).
Implemented in semf::FrequencyIn.
|
pure virtual |
Start reading the input frequency.
Implemented in semf::FrequencyIn.
|
pure virtual |
Stop reading the input frequency.
Implemented in semf::FrequencyIn.
Signal semf::app::FrequencyIn::dataAvailable |
Signal is emitted after a new frequency information is available.
Definition at line 57 of file frequencyin.h.