semf
|
Interface for using DAC (Digital to Analog Converter) hardware module in DMA (Direct Memory Access) mode. More...
#include <analogoutdma.h>
Public Member Functions | |
virtual | ~AnalogOutDma ()=default |
virtual void | start () const =0 |
Starts the hardware module (DAC) for writing DAC values to the output. More... | |
virtual void | stop () const =0 |
virtual void | setData (const uint8_t data[], size_t dataSize)=0 |
Sets the pointer to the data memory location and its size for starting DAC later by start() function. to output them on the AnalogOutDma pin. More... | |
Public Attributes | |
Signal | dataWritten |
Signal< Error > | error |
Interface for using DAC (Digital to Analog Converter) hardware module in DMA (Direct Memory Access) mode.
dataWritten
signal is emitted after data writing to output has finished.
Definition at line 24 of file analogoutdma.h.
|
virtualdefault |
|
pure virtual |
Sets the pointer to the data memory location and its size for starting DAC later by start()
function. to output them on the AnalogOutDma
pin.
data | Pointer to the digital to analog value array. |
dataSize | Byte size of the value array |
Implemented in semf::Stm32AnalogOutDma.
|
pure virtual |
Starts the hardware module (DAC) for writing DAC values to the output.
setData()
before. Otherwise will call error
signal. Implemented in semf::Stm32AnalogOutDma.
|
pure virtual |
Stops the DAC hardware.
Implemented in semf::Stm32AnalogOutDma.
Signal semf::AnalogOutDma::dataWritten |
Signal is emitted after hardware write cycle is finished.
Definition at line 47 of file analogoutdma.h.
Signal is emitted after an hardware error occurred.
Definition at line 49 of file analogoutdma.h.