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