semf
analogindma.h
Go to the documentation of this file.
1
10#ifndef SEMF_INPUT_ANALOGINDMA_H_
11#define SEMF_INPUT_ANALOGINDMA_H_
12
15
16namespace semf
17{
26{
27public:
28 virtual ~AnalogInDma() = default;
29
35 virtual void start(uint8_t buffer[], size_t bufferSize) = 0;
37 virtual void stop() = 0;
38
43};
44} /* namespace semf */
45#endif /* SEMF_INPUT_ANALOGINDMA_H_ */
Interface for using ADC (Analog to Digital Conversion) hardware in DMA (Direct Memory Access) mode.
Definition: analogindma.h:26
virtual void start(uint8_t buffer[], size_t bufferSize)=0
Starts the hardware modules (ADC with DMA) for reading ADC values.
virtual ~AnalogInDma()=default
Signal< Error > error
Definition: analogindma.h:42
virtual void stop()=0
Signal dataAvailable
Definition: analogindma.h:40
Signal for lightweight signal/slot implementation. One signal can be connected to multiple slots and ...
Definition: signal.h:41