semf
|
Interface for using ADC (Analog to Digital Conversion) hardware in interrupt mode. More...
#include <analogin.h>
Public Member Functions | |
virtual | ~AnalogIn ()=default |
virtual void | start ()=0 |
Starts the hardware module (ADC) for reading ADC values. After finishing analog to digital conversion, the dataAvailable signal will be emitted. More... | |
virtual uint32_t | value ()=0 |
Returns the last read value. More... | |
virtual void | stop ()=0 |
Public Attributes | |
Signal | dataAvailable |
Signal< Error > | error |
Interface for using ADC (Analog to Digital Conversion) hardware in interrupt mode.
Inheriting class handles a hardware unit with one or more channels.
dataAvailble
signal is emitted after every converted channel.
Definition at line 26 of file analogin.h.
|
virtualdefault |
|
pure virtual |
Starts the hardware module (ADC) for reading ADC values. After finishing analog to digital conversion, the dataAvailable
signal will be emitted.
Implemented in semf::Stm32AnalogIn.
|
pure virtual |
Stops the ADC hardware.
Implemented in semf::Stm32AnalogIn.
|
pure virtual |
Returns the last read value.
dataAvailable
signal. Implemented in semf::Stm32AnalogIn.
Signal semf::AnalogIn::dataAvailable |
Signal is emitted after one channel is converted.
Definition at line 46 of file analogin.h.
Signal is emitted after an error occurred.
Definition at line 48 of file analogin.h.