semf
|
Interface for using ADC (Analog to Digital Conversion) hardware in DMA (Direct Memory Access) mode. More...
#include <analogindma.h>
Public Member Functions | |
virtual | ~AnalogInDma ()=default |
virtual void | start (uint8_t buffer[], size_t bufferSize)=0 |
Starts the hardware modules (ADC with DMA) for reading ADC values. More... | |
virtual void | stop ()=0 |
Public Attributes | |
Signal | dataAvailable |
Signal< Error > | error |
Interface for using ADC (Analog to Digital Conversion) hardware in DMA (Direct Memory Access) mode.
Inheriting class handles a hardware unit with one or more channels.
dataAvailble
signal is emitted after all channels are converted.
Definition at line 25 of file analogindma.h.
|
virtualdefault |
|
pure virtual |
Starts the hardware modules (ADC with DMA) for reading ADC values.
buffer | Buffer where the read data should be stored. |
bufferSize | Size of buffer in bytes. |
Implemented in semf::Stm32AnalogInDma.
|
pure virtual |
Stops the ADC hardware.
Implemented in semf::Stm32AnalogInDma.
Signal semf::AnalogInDma::dataAvailable |
Signal is emitted after readData
function is executed.
Definition at line 40 of file analogindma.h.
Signal is emitted after an hardware error occurred.
Definition at line 42 of file analogindma.h.