![]() |
semf
|
Provides data from an AnalogIn
to one to more Sensor
objects.
More...
#include <analogsensor.h>
Public Member Functions | |
AnalogSensor (AnalogIn &analogIn, T buffer[], size_t bufferSize) | |
Constructor. More... | |
AnalogSensor (const AnalogSensor &other)=delete | |
virtual | ~AnalogSensor ()=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 AnalogIn
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 analogsensor.h.
semf::AnalogSensor< T, N_CHANNELS >::AnalogSensor | ( | AnalogIn & | analogIn, |
T | buffer[], | ||
size_t | bufferSize | ||
) |
Constructor.
analogIn | 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 62 of file analogsensor.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 81 of file analogsensor.h.
|
overridevirtual |
Starts a measurement cycle and will emit dataAvailable
afterwards.
Implements semf::HardwareSensor< T >.
Definition at line 75 of file analogsensor.h.