|
atMETEO
An ATmega based weather station
|
Sensors::RfDevice is the base template for RF receivers connecting Demodulator, Bit Decoder and Sensor. More...
Files | |
| file | rfdevice.h |
| Sensors::RfDevice is the base template for RF receivers connecting Demodulator, Bit Decoder and Sensor. | |
Classes | |
| class | Sensors::RfDevice< TDemodulator, TBitDecoder, TSensor, TBitLength > |
| Connects Demodulator, Bit Decoder and Sensor for decoding sensor data from RF receivers. More... | |
Enumerations | |
| enum | Sensors::RfDeviceStatus : uint8_t { Sensors::RfDeviceStatus::Complete = 0, Sensors::RfDeviceStatus::Incomplete, Sensors::RfDeviceStatus::InvalidData } |
| RfDevice status returned from RfDevice::addPulseWidth(). More... | |
Sensors::RfDevice is the base template for RF receivers connecting Demodulator, Bit Decoder and Sensor.
| class Sensors::RfDevice |
Connects Demodulator, Bit Decoder and Sensor for decoding sensor data from RF receivers.
Usage:
Accessing sensor data is specific to the sensor therefore there is no generic API defined.
| TDemodulator | The demodulator configuration. |
| TBitDecoder | The demodulator configuration. |
| TSensor | The sensor configuration. |
| TBitLength | Maximum length of a message in bits. If set to a non-zero value, the RfDevice will expect to receive as many bits as specified before the TSensor is called for decoding the data. |
Public Member Functions | |
| RfDeviceStatus | addPulseWidth (uint16_t pulseWidth) |
Adds the pulseWidth value to the RfDevice state. More... | |
| void | reset () |
| Resets the device state. More... | |
|
inline |
|
inline |
Resets the device state.
|
strong |
RfDevice status returned from RfDevice::addPulseWidth().
| Enumerator | |
|---|---|
| Complete | The RfDevice data is complete. The decoded data can be accessed using sensor specific methods. |
| Incomplete | The RfDevice data is incomplete. More pulse widths have to be added using RfDevice::addPulseWidth() before the data can be accessed. |
| InvalidData | The received data is invalid. A new decoder run is started automatically when new pulse widths are added using RfDevice::addPulseWidth(). |
1.8.13