semf
analogout.h
Go to the documentation of this file.
1
10#ifndef SEMF_OUTPUT_ANALOGOUT_H_
11#define SEMF_OUTPUT_ANALOGOUT_H_
12
15#include <cstdint>
16
17namespace semf
18{
23{
24public:
26 virtual ~AnalogOut() = default;
28
33 virtual void start() const = 0;
35 virtual void stop() const = 0;
40 virtual void setValue(uint32_t value) = 0;
41
44};
45} /* namespace semf */
46#endif /* SEMF_OUTPUT_ANALOGOUT_H_ */
Interface for using DAC (Digital to Analog Converter) hardware module in interrupt mode.
Definition: analogout.h:23
Signal< Error > error
Definition: analogout.h:43
virtual void stop() const =0
virtual void setValue(uint32_t value)=0
Writes value into hardware register. Call start to output the value.
virtual void start() const =0
Starts the hardware module (DAC) for writing DAC values to the output. Call setValue before.
Signal for lightweight signal/slot implementation. One signal can be connected to multiple slots and ...
Definition: signal.h:41