VitroIO SDK
Software development kit for Vitro Shard.
|
Virtual class providing interface for sensor interfaces classes. More...
#include <abstract_sensor_interface.h>
Public Member Functions | |
AbstractSensorInterface (AbstractSensorDriver *driver) | |
Constructor. More... | |
virtual | ~AbstractSensorInterface () |
Destructor. More... | |
virtual const uint32_t * | getParameters () const =0 |
Function allows to obtain parameters measured by the sensor. More... | |
virtual uint32_t | getParametersCount () const =0 |
Function allows to obtain count of parameters measured by the sensor. More... | |
virtual uint32_t | getValues (SensorParameterValue *values)=0 |
Function allows to obtain current values of parameters measured by the sensor. More... | |
Protected Member Functions | |
AbstractSensorDriver * | driver () |
Function allows to obtain pointer to sensor driver. More... | |
Virtual class providing interface for sensor interfaces classes.
The aim of this interface is to allow for reading measurement parameters of all of the sensors in uniform way.
|
inline |
Constructor.
driver | Pointer to sensors driver object inherited from AbstractSensorDriver. |
|
inlinevirtual |
Destructor.
|
inlineprotected |
Function allows to obtain pointer to sensor driver.
|
pure virtual |
Function allows to obtain parameters measured by the sensor.
|
pure virtual |
Function allows to obtain count of parameters measured by the sensor.
|
pure virtual |
Function allows to obtain current values of parameters measured by the sensor.
values | Buffer for parameters values, its size have to be at least count of sensor parameters. |