16 #ifndef WipperSnapper_I2C_Driver_H    17 #define WipperSnapper_I2C_Driver_H    19 #include "wippersnapper/i2c/v1/i2c.pb.h"    20 #include <Adafruit_Sensor.h>    24 #define PERIOD_24HRS_AGO_MILLIS (millis() - (24 * 60 * 60 * 1000))    74                        wippersnapper_i2c_v1_SensorType sensorType) {
    75     long sensorPeriod = (long)period * 1000;
    78     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_AMBIENT_TEMPERATURE:
    81     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_RELATIVE_HUMIDITY:
    84     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_PRESSURE:
    87     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_CO2:
    90     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_ECO2:
    93     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_TVOC:
    96     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_ALTITUDE:
    99     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_OBJECT_TEMPERATURE:
   102     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_LIGHT:
   105     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_PM10_STD:
   108     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_PM25_STD:
   111     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_PM100_STD:
   114     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_UNITLESS_PERCENT:
   117     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_VOLTAGE:
   120     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_CURRENT:
   123     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_PROXIMITY:
   126     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_RAW:
   129     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_AMBIENT_TEMPERATURE_FAHRENHEIT:
   132     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_OBJECT_TEMPERATURE_FAHRENHEIT:
   135     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_GAS_RESISTANCE:
   138     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_NOX_INDEX:
   141     case wippersnapper_i2c_v1_SensorType_SENSOR_TYPE_VOC_INDEX:
   161     while (propertyIdx < msgDeviceInitReq->i2c_device_properties_count) {
   163           msgDeviceInitReq->i2c_device_properties[propertyIdx].sensor_period,
   164           msgDeviceInitReq->i2c_device_properties[propertyIdx].sensor_type);
   555     (void)objectTempEvent; 
   809     (void)unitlessPercentEvent; 
  1016     AmbientTempFEvent->temperature =
  1017         (AmbientTempFEvent->temperature * 9.0) / 5.0 + 32;
  1072     objectTempFEvent->temperature =
  1073         (objectTempFEvent->temperature * 9.0) / 5.0 + 32.0;
  1305     (void)proximityEvent; 
  1431 #endif // WipperSnapper_I2C_Driver_H long _unitlessPercentPeriod
The time period between reading the unitless % sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1380
 
virtual long getSensorUnitlessPercentPeriodPrv()
Base implementation - Returns the previous time interval at which the unitless % sensor was queried l...
Definition: WipperSnapper_I2C_Driver.h:782
 
virtual long getSensorLightPeriodPrv()
Base implementation - Returns the previous time interval at which the light sensor was queried last...
Definition: WipperSnapper_I2C_Driver.h:580
 
virtual long getSensorObjectTempPeriodPrv()
Base implementation - Returns the previous time interval at which the object temperature sensor was q...
Definition: WipperSnapper_I2C_Driver.h:528
 
virtual bool getEventPM10_STD(sensors_event_t *pm10StdEvent)
Base implementation - Reads a object pm10 std. sensor and converts the reading into the expected SI u...
Definition: WipperSnapper_I2C_Driver.h:654
 
virtual void updateSensorProximity(float period)
Updates the properties of a proximity sensor. 
Definition: WipperSnapper_I2C_Driver.h:1318
 
long _PM10SensorPeriod
The time period between reading the pm25 sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1367
 
uint16_t getI2CAddress()
Gets the I2C device's address. 
Definition: WipperSnapper_I2C_Driver.h:175
 
virtual long getSensorPM25_STDPeriod()
Base implementation - Returns the object pm25 standard sensors' period, if set. 
Definition: WipperSnapper_I2C_Driver.h:670
 
virtual void setSensorObjectTempFPeriodPrv(long period)
Sets a timestamp for when the object temperature sensor (°F) was queried. 
Definition: WipperSnapper_I2C_Driver.h:1052
 
long _PM100SensorPeriod
The time period between reading the pm100_std sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1375
 
#define PERIOD_24HRS_AGO_MILLIS
Used for last sensor read time, initially set 24hrs ago (max period) 
Definition: WipperSnapper_I2C_Driver.h:24
 
virtual void setSensorVOCIndexPeriodPrv(long period)
Sets a timestamp for when the object VOC Index sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:1212
 
long _currentPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1392
 
virtual long getSensorPressurePeriod()
Base implementation - Returns the pressure sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:423
 
virtual long getSensorTVOCPeriodPrv()
Base implementation - Returns the previous time interval at which the TVOC sensor was queried last...
Definition: WipperSnapper_I2C_Driver.h:287
 
virtual void setSensorAmbientTempFPeriodPrv(long period)
Sets a timestamp for when the ambient temperature sensor (°F) was queried. 
Definition: WipperSnapper_I2C_Driver.h:996
 
virtual bool getEventPM100_STD(sensors_event_t *pm100StdEvent)
Base implementation - Reads a object pm100 std. sensor and converts the reading into the expected SI ...
Definition: WipperSnapper_I2C_Driver.h:754
 
virtual long getSensorCurrentPeriod()
Base implementation - Returns the current sensor's period. 
Definition: WipperSnapper_I2C_Driver.h:870
 
virtual long getSensorRelativeHumidityPeriodPrv()
Base implementation - Returns the previous time interval at which the humidity sensor was queried las...
Definition: WipperSnapper_I2C_Driver.h:383
 
long _altitudeSensorPeriod
The time period between reading the altitude sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1352
 
virtual long getSensorVOCIndexPeriod()
Base implementation - Returns the VOC Index sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:1191
 
virtual long getSensorTVOCPeriod()
Base implementation - Returns the TVOC sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:278
 
virtual void setSensorProximityPeriodPrv(long period)
Sets a timestamp for when the proximity sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:1290
 
virtual bool getEventCO2(sensors_event_t *co2Event)
Gets a sensor's CO2 value. 
Definition: WipperSnapper_I2C_Driver.h:217
 
virtual long getSensorAmbientTempPeriod()
Base implementation - Returns the ambient temperature (°C) sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:324
 
virtual long getSensorPM100_STDPeriodPrv()
Base implementation - Returns the previous time interval at which the pm100 std. sensor was queried l...
Definition: WipperSnapper_I2C_Driver.h:730
 
virtual long getSensorAmbientTempPeriodPrv()
Base implementation - Returns the previous time interval at which the ambient temperature sensor (°C)...
Definition: WipperSnapper_I2C_Driver.h:334
 
virtual bool getEventPM25_STD(sensors_event_t *pm25StdEvent)
Base implementation - Reads a object pm25 std. sensor and converts the reading into the expected SI u...
Definition: WipperSnapper_I2C_Driver.h:704
 
virtual bool getEventNOxIndex(sensors_event_t *gasEvent)
Base implementation - Reads a NOx Index sensor and converts the reading into the expected SI unit...
Definition: WipperSnapper_I2C_Driver.h:1175
 
virtual long getSensorECO2PeriodPrv()
Base implementation - Returns the previous time interval at which the eCO2 sensor was queried last...
Definition: WipperSnapper_I2C_Driver.h:241
 
long _currentPeriod
The time period between reading the current sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1390
 
long _NOxIndexPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1416
 
long _objectTempSensorPeriod
Definition: WipperSnapper_I2C_Driver.h:1357
 
long _TVOCSensorPeriod
The time period between reading the TVOC sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1348
 
long _ambientTempFPeriod
Definition: WipperSnapper_I2C_Driver.h:1399
 
virtual long getSensorUnitlessPercentPeriod()
Base implementation - Returns the object unitless % sensor period, if set. 
Definition: WipperSnapper_I2C_Driver.h:770
 
virtual long getSensorCO2Period()
Base implementation - Returns the co2 sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:186
 
virtual void setSensorTVOCPeriodPrv(long period)
Sets a timestamp for when the TVOC sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:296
 
long _VOCIndexPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1421
 
virtual void setSensorVoltagePeriodPrv(long period)
Sets a timestamp for when the voltage sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:841
 
virtual void setSensorAltitudePeriodPrv(long period)
Sets a timestamp for when the Altitude sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:488
 
virtual bool getEventProximity(sensors_event_t *proximityEvent)
Base implementation - Reads a proximity sensor and converts the reading into the expected SI unit...
Definition: WipperSnapper_I2C_Driver.h:1304
 
long _tempSensorPeriod
The time period between reading the temperature sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1325
 
virtual bool getEventRelativeHumidity(sensors_event_t *humidEvent)
Base implementation - Reads a humidity sensor and converts the reading into the expected SI unit...
Definition: WipperSnapper_I2C_Driver.h:408
 
virtual void setSensorNOxIndexPeriodPrv(long period)
Sets a timestamp for when the object NOx Index sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:1161
 
virtual ~WipperSnapper_I2C_Driver()
Destructor for an I2C sensor. 
Definition: WipperSnapper_I2C_Driver.h:54
 
long _unitlessPercentPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1382
 
virtual long getSensorAmbientTempFPeriodPrv()
Base implementation - Returns the previous time interval at which the ambient temperature sensor (°F)...
Definition: WipperSnapper_I2C_Driver.h:983
 
long _voltagePeriod
The time period between reading the voltage sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1385
 
bool begin()
Initializes the I2C sensor and begins I2C. 
Definition: WipperSnapper_I2C_Driver.h:62
 
virtual long getSensorAmbientTempFPeriod()
Base implementation - Returns the ambient temperature (°F) sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:973
 
virtual bool getEventAmbientTempF(sensors_event_t *AmbientTempFEvent)
Helper function to obtain a sensor's ambient temperature value in °F. Requires getEventAmbientTemp() ...
Definition: WipperSnapper_I2C_Driver.h:1011
 
long _TVOCSensorPeriodPrv
The time when the TVOC sensor was last read. 
Definition: WipperSnapper_I2C_Driver.h:1350
 
WipperSnapper_I2C_Driver(TwoWire *i2c, uint16_t sensorAddress)
Instanciates an I2C sensor. 
Definition: WipperSnapper_I2C_Driver.h:44
 
virtual void disableAmbientTempF()
Disables the device's ambient temperature (°F) sensor, if it exists. 
Definition: WipperSnapper_I2C_Driver.h:963
 
Base class for I2C Drivers. 
Definition: WipperSnapper_I2C_Driver.h:32
 
virtual bool getEventAltitude(sensors_event_t *altitudeEvent)
Base implementation - Reads a Altitude sensor and converts the reading into the expected SI unit...
Definition: WipperSnapper_I2C_Driver.h:502
 
long _pressureSensorPeriod
The time period between reading the pressure sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1335
 
virtual bool getEventVOCIndex(sensors_event_t *gasEvent)
Base implementation - Reads a VOC Index sensor and converts the reading into the expected SI unit...
Definition: WipperSnapper_I2C_Driver.h:1226
 
long _objectTempFPeriod
Definition: WipperSnapper_I2C_Driver.h:1404
 
long _ambientTempFPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1401
 
long _ECO2SensorPeriodPrv
The time when the eCO2 sensor was last read. 
Definition: WipperSnapper_I2C_Driver.h:1346
 
long _gasResistancePeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1411
 
long _humidSensorPeriod
The time period between reading the humidity sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1330
 
virtual void setSensorPM100_STDPeriodPrv(long period)
Sets a timestamp for when the light sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:740
 
virtual long getSensorLightPeriod()
Base implementation - Returns the object light sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:570
 
long _PM100SensorPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1377
 
virtual long getSensorRelativeHumidityPeriod()
Base implementation - Returns the humidity sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:374
 
virtual bool getEventUnitlessPercent(sensors_event_t *unitlessPercentEvent)
Base implementation - Reads a object unitless % std. sensor and converts the reading into the expecte...
Definition: WipperSnapper_I2C_Driver.h:808
 
virtual long getSensorPM25_STDPeriodPrv()
Base implementation - Returns the previous time interval at which the pm25 std. sensor was queried la...
Definition: WipperSnapper_I2C_Driver.h:680
 
virtual bool getEventTVOC(sensors_event_t *tvocEvent)
Gets a sensor's TVOC value. 
Definition: WipperSnapper_I2C_Driver.h:309
 
uint16_t _sensorAddress
The I2C driver's unique I2C address. 
Definition: WipperSnapper_I2C_Driver.h:1324
 
virtual long getSensorAltitudePeriodPrv()
Base implementation - Returns the previous time interval at which the Altitude sensor was queried las...
Definition: WipperSnapper_I2C_Driver.h:479
 
virtual void setSensorECO2PeriodPrv(long period)
Sets a timestamp for when the eCO2 sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:250
 
virtual long getSensorGasResistancePeriodPrv()
Base implementation - Returns the previous time interval at which the gas resistance sensor (ohms) wa...
Definition: WipperSnapper_I2C_Driver.h:1097
 
long _gasResistancePeriod
Definition: WipperSnapper_I2C_Driver.h:1409
 
virtual long SensorProximityPeriodPrv()
Base implementation - Returns the previous time interval at which the proximity sensor was queried la...
Definition: WipperSnapper_I2C_Driver.h:1280
 
virtual long getSensorPM100_STDPeriod()
Base implementation - Returns the object pm100 standard sensors' period, if set. 
Definition: WipperSnapper_I2C_Driver.h:720
 
long _humidSensorPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1332
 
virtual long getSensorVoltagePeriod()
Base implementation - Returns the voltage sensor's period. 
Definition: WipperSnapper_I2C_Driver.h:823
 
virtual void setSensorPM10_STDPeriodPrv(long period)
Sets a timestamp for when the light sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:640
 
long _objectTempSensorPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1359
 
virtual long getSensorPM10_STDPeriodPrv()
Base implementation - Returns the previous time interval at which the pm10 std. sensor was queried la...
Definition: WipperSnapper_I2C_Driver.h:630
 
long _objectTempFPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1406
 
long _lightSensorPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1364
 
virtual bool getEventECO2(sensors_event_t *eco2Event)
Gets a sensor's eCO2 value. 
Definition: WipperSnapper_I2C_Driver.h:263
 
virtual void setSensorPM25_STDPeriodPrv(long period)
Sets a timestamp for when the light sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:690
 
void setSensorPeriod(float period, wippersnapper_i2c_v1_SensorType sensorType)
Sets the sensor's period, provided a wippersnapper_i2c_v1_SensorType. 
Definition: WipperSnapper_I2C_Driver.h:73
 
virtual void setSensorObjectTempPeriodPrv(long period)
Sets a timestamp for when the object temperature sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:540
 
virtual long getSensorPressurePeriodPrv()
Base implementation - Returns the previous time interval at which the pressure sensor was queried las...
Definition: WipperSnapper_I2C_Driver.h:432
 
virtual void setSensorPressurePeriodPrv(long period)
Sets a timestamp for when the pressure sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:441
 
virtual void setSensorRelativeHumidityPeriodPrv(long periodPrv)
Sets a timestamp for when the temperature sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:394
 
virtual bool getEventPressure(sensors_event_t *pressureEvent)
Base implementation - Reads a pressure sensor and converts the reading into the expected SI unit...
Definition: WipperSnapper_I2C_Driver.h:455
 
virtual long getSensorCurrentPeriodPrv()
Base implementation - Returns the previous time interval at which the current sensor was queried last...
Definition: WipperSnapper_I2C_Driver.h:879
 
virtual long getSensorGasResistancePeriod()
Base implementation - Returns the gas resistance (ohms) sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:1087
 
virtual long getSensorAltitudePeriod()
Base implementation - Returns the Altitude sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:470
 
virtual bool getEventLight(sensors_event_t *lightEvent)
Base implementation - Reads a object light sensor and converts the reading into the expected SI unit...
Definition: WipperSnapper_I2C_Driver.h:604
 
long _VOCIndexPeriod
The time period between reading the VOC Index sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1419
 
virtual bool getEventGasResistance(sensors_event_t *gasEvent)
Base implementation - Reads a gas resistance sensor and converts the reading into the expected SI uni...
Definition: WipperSnapper_I2C_Driver.h:1124
 
virtual bool getEventAmbientTemp(sensors_event_t *tempEvent)
Base implementation - Reads an ambient temperature sensor (°C). Expects value to return in the proper...
Definition: WipperSnapper_I2C_Driver.h:359
 
virtual long getSensorObjectTempFPeriod()
Base implementation - Returns the object temperature (°F) sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:1031
 
long _CO2SensorPeriodPrv
The time when the CO2 sensor was last read. 
Definition: WipperSnapper_I2C_Driver.h:1342
 
long _lightSensorPeriod
The time period between reading the light sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1362
 
void configureDriver(wippersnapper_i2c_v1_I2CDeviceInitRequest *msgDeviceInitReq)
Uses an I2CDeviceInitRequest message to configure the sensors belonging to the driver. 
Definition: WipperSnapper_I2C_Driver.h:158
 
virtual void enableSensorProximity()
Enables the device's proximity sensor, if it exists. 
Definition: WipperSnapper_I2C_Driver.h:1239
 
virtual long getSensorNOxIndexPeriodPrv()
Base implementation - Returns the previous time interval at which the NOx Index sensor was queried la...
Definition: WipperSnapper_I2C_Driver.h:1150
 
virtual void setSensorUnitlessPercentPeriodPrv(long period)
Sets a timestamp for when the unitless % sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:794
 
virtual void setSensorCO2PeriodPrv(long period)
Sets a timestamp for when the co2 sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:204
 
virtual long getSensorRawPeriod()
Base implementation - Returns the raw sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:917
 
virtual void setSensorRawPeriodPrv(long period)
Sets a timestamp for when the raw sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:935
 
virtual long getSensorObjectTempPeriod()
Base implementation - Returns the object temperature sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:518
 
virtual void setSensorAmbientTempPeriodPrv(long periodPrv)
Sets a timestamp for when the ambient temperature sensor (°C) was queried. 
Definition: WipperSnapper_I2C_Driver.h:345
 
long _voltagePeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1387
 
long _rawSensorPeriod
The time period between reading the Raw sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1395
 
virtual long getSensorCO2PeriodPrv()
Base implementation - Returns the previous time interval at which the co2 sensor was queried last...
Definition: WipperSnapper_I2C_Driver.h:195
 
virtual long getSensorECO2Period()
Base implementation - Returns the eCO2 sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:232
 
virtual void disableSensorProximity()
Disables the device's object proximity sensor, if it exists. 
Definition: WipperSnapper_I2C_Driver.h:1246
 
virtual bool getEventObjectTempF(sensors_event_t *objectTempFEvent)
Helper function to obtain a sensor's object temperature value in °F. Requires getEventObjectTemp() to...
Definition: WipperSnapper_I2C_Driver.h:1067
 
long _rawSensorPeriodPrv
The time when the Raw sensor was last read. 
Definition: WipperSnapper_I2C_Driver.h:1397
 
long _PM25SensorPeriod
The time period between reading the pm25 sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1371
 
long _tempSensorPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1327
 
long _PM10SensorPeriodPrv
The time when the pm25 sensor was last read. 
Definition: WipperSnapper_I2C_Driver.h:1369
 
long _CO2SensorPeriod
The time period between reading the CO2 sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1340
 
virtual long getSensorPM10_STDPeriod()
Base implementation - Returns the object pm10 standard sensors' period, if set. 
Definition: WipperSnapper_I2C_Driver.h:620
 
virtual long getSensorObjectTempFPeriodPrv()
Base implementation - Returns the previous time interval at which the object temperature sensor (°F) ...
Definition: WipperSnapper_I2C_Driver.h:1041
 
long _proximitySensorPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1426
 
virtual bool getEventObjectTemp(sensors_event_t *objectTempEvent)
Base implementation - Reads a object temperature sensor and converts the reading into the expected SI...
Definition: WipperSnapper_I2C_Driver.h:554
 
virtual long getSensorVoltagePeriodPrv()
Base implementation - Returns the previous time interval at which the voltage sensor was queried last...
Definition: WipperSnapper_I2C_Driver.h:832
 
long _ECO2SensorPeriod
The time period between reading the eCO2 sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1344
 
long _proximitySensorPeriod
The time period between reading the proximity sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1424
 
virtual long getSensorRawPeriodPrv()
Base implementation - Returns the previous time interval at which the raw sensor was queried last...
Definition: WipperSnapper_I2C_Driver.h:926
 
virtual void setSensorCurrentPeriodPrv(long period)
Sets a timestamp for when the current sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:888
 
long _PM25SensorPeriodPrv
The time when the pm25 sensor was last read. 
Definition: WipperSnapper_I2C_Driver.h:1373
 
virtual bool getEventRaw(sensors_event_t *rawEvent)
Gets a sensor's Raw value. 
Definition: WipperSnapper_I2C_Driver.h:948
 
virtual long sensorProximityPeriod()
Base implementation - Returns the proximity sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:1256
 
virtual bool getEventCurrent(sensors_event_t *currentEvent)
Base implementation - Reads a current sensor and converts the reading into the expected SI unit...
Definition: WipperSnapper_I2C_Driver.h:902
 
virtual void setSensorGasResistancePeriodPrv(long period)
Sets a timestamp for when the object gas resistance sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:1110
 
long _altitudeSensorPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1354
 
virtual long getSensorVOCIndexPeriodPrv()
Base implementation - Returns the previous time interval at which the VOC Index sensor was queried la...
Definition: WipperSnapper_I2C_Driver.h:1201
 
long _NOxIndexPeriod
The time period between reading the NOx Index sensor's value. 
Definition: WipperSnapper_I2C_Driver.h:1414
 
virtual bool getEventVoltage(sensors_event_t *voltageEvent)
Base implementation - Reads a voltage sensor and converts the reading into the expected SI unit...
Definition: WipperSnapper_I2C_Driver.h:855
 
TwoWire * _i2c
Pointer to the I2C driver's Wire object. 
Definition: WipperSnapper_I2C_Driver.h:1323
 
long _pressureSensorPeriodPrv
Definition: WipperSnapper_I2C_Driver.h:1337
 
virtual long getSensorNOxIndexPeriod()
Base implementation - Returns the NOx Index sensor's period, if set. 
Definition: WipperSnapper_I2C_Driver.h:1140
 
virtual void setSensorLightPeriodPrv(long period)
Sets a timestamp for when the light sensor was queried. 
Definition: WipperSnapper_I2C_Driver.h:590
 
virtual void setSensorProximityPeriod(long period)
Set the proximity sensor's return frequency. 
Definition: WipperSnapper_I2C_Driver.h:1266