![]() |
semf
|
Provides data from an AnalogInDma
to one to more Sensor
objects.
More...
#include <analogdmasensor.h>
Public Member Functions | |
AnalogDmaSensor (AnalogInDma &analogInDma, T buffer[], size_t bufferSize) | |
Constructor. More... | |
AnalogDmaSensor (const AnalogDmaSensor &other)=delete | |
virtual | ~AnalogDmaSensor ()=default |
void | update () override |
LastInBuffer< T > & | buffer (size_t index) override |
Returns the buffer, where the measurement data is stored in. More... | |
![]() | |
virtual | ~HardwareSensor ()=default |
virtual void | update ()=0 |
virtual LastInBuffer< T > & | buffer (size_t index)=0 |
Returns the buffer, where the measurement data is stored in. More... | |
Additional Inherited Members | |
![]() | |
Signal< size_t > | dataAvailable |
Provides data from an AnalogInDma
to one to more Sensor
objects.
T_RAW | Type of a raw sensor value, e.g. uint16_t for a 16-bit ADC value. |
N_CHANNELS | Number of ADC channels connected to this ADC unit. |
AnalogDmaSensor
HardwareSensor
Sensor
Definition at line 31 of file analogdmasensor.h.
semf::AnalogDmaSensor< T, N_CHANNELS >::AnalogDmaSensor | ( | AnalogInDma & | analogInDma, |
T | buffer[], | ||
size_t | bufferSize | ||
) |
Constructor.
analogInDma | ADC interface, that is used for measuring sensor value(s). |
buffer | Pointer to the data buffer of the measured values. |
bufferSize | Size of buffer in T . |
Definition at line 64 of file analogdmasensor.h.
|
explicitdelete |
|
virtualdefault |
|
overridevirtual |
Returns the buffer, where the measurement data is stored in.
index | Index of a specific sensor. |
Implements semf::HardwareSensor< T >.
Definition at line 84 of file analogdmasensor.h.
|
overridevirtual |
Starts a measurement cycle and will emit dataAvailable
afterwards.
Implements semf::HardwareSensor< T >.
Definition at line 78 of file analogdmasensor.h.