semf
semf::AnalogOut Class Referenceabstract

Interface for using DAC (Digital to Analog Converter) hardware module in interrupt mode. More...

#include <analogout.h>

Inheritance diagram for semf::AnalogOut:
Inheritance graph
Collaboration diagram for semf::AnalogOut:
Collaboration graph

Public Member Functions

virtual void start () const =0
 Starts the hardware module (DAC) for writing DAC values to the output. Call setValue before. More...
 
virtual void stop () const =0
 
virtual void setValue (uint32_t value)=0
 Writes value into hardware register. Call start to output the value. More...
 

Public Attributes

Signal< Errorerror
 

Detailed Description

Interface for using DAC (Digital to Analog Converter) hardware module in interrupt mode.

Definition at line 22 of file analogout.h.

Member Function Documentation

◆ setValue()

virtual void semf::AnalogOut::setValue ( uint32_t  value)
pure virtual

Writes value into hardware register. Call start to output the value.

Parameters
valueDigital to analog value.

Implemented in semf::Stm32AnalogOut.

◆ start()

virtual void semf::AnalogOut::start ( ) const
pure virtual

Starts the hardware module (DAC) for writing DAC values to the output. Call setValue before.

Implemented in semf::Stm32AnalogOut.

◆ stop()

virtual void semf::AnalogOut::stop ( ) const
pure virtual

Stops the DAC hardware.

Implemented in semf::Stm32AnalogOut.

Member Data Documentation

◆ error

Signal<Error> semf::AnalogOut::error

Signal is emitted after an hardware error occurred.

Definition at line 43 of file analogout.h.