semf
analogoutdma.h
Go to the documentation of this file.
1
10#ifndef SEMF_OUTPUT_ANALOGOUTDMA_H_
11#define SEMF_OUTPUT_ANALOGOUTDMA_H_
12
15#include <cstdint>
16
17namespace semf
18{
25{
26public:
27 virtual ~AnalogOutDma() = default;
28
33 virtual void start() const = 0;
35 virtual void stop() const = 0;
44 virtual void setData(const uint8_t data[], size_t dataSize) = 0;
45
50};
51} /* namespace semf */
52#endif /* SEMF_OUTPUT_ANALOGOUTDMA_H_ */
Interface for using DAC (Digital to Analog Converter) hardware module in DMA (Direct Memory Access) m...
Definition: analogoutdma.h:25
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....
virtual void start() const =0
Starts the hardware module (DAC) for writing DAC values to the output.
Signal< Error > error
Definition: analogoutdma.h:49
virtual void stop() const =0
virtual ~AnalogOutDma()=default
Signal for lightweight signal/slot implementation. One signal can be connected to multiple slots and ...
Definition: signal.h:41