117 template <
typename TSensor>
130 return static_cast<TSensor *
>(
this)->internalSetData(data, length);
141 return static_cast<TSensor *
>(
this)->internalAddByte(byte);
150 return static_cast<TSensor *
>(
this)->internalReset();
SensorStatus setData(uint8_t *data, size_t length)
Sets the sensor state to the given data buffer.
Definition: sensor.h:128
SensorStatus addByte(uint8_t byte)
Adds the byte to the sensor state.
Definition: sensor.h:139
void reset()
Resets the state of the sensor decoder for receiving a new data set.
Definition: sensor.h:148
Namespace containing all symbols of the Sensors library.
Definition: bitdecoder.h:40
Base class for sensor implementations.
Definition: sensor.h:118
SensorStatus
Sensor status returned from Sensor::setData() and Sensor::addByte().
Definition: sensor.h:49