Mbed library for SPS30 i2c communication (Configured to be interfaced with TresidderOS) Inherits members and methods from SensorDriver class
Diff: sps30.h
- Revision:
- 10:228c926a2416
- Parent:
- 9:a5fe43e183e2
--- a/sps30.h Wed Mar 27 06:04:36 2019 +0000 +++ b/sps30.h Thu Mar 28 01:14:03 2019 +0000 @@ -37,6 +37,7 @@ #define NUM_MIN 0.00f #define I2C_FREQUENCY_STD 100000 // SPS30 uses 100MHz for I2C communication +#define TIMEOUT_COUNT 3 /** Create SPS30 controller class * @brief inherits SensorDriver members and methods essential for Sensor Thread @@ -94,8 +95,10 @@ }; char i2cbuff[60]; - - uint8_t sn[33]; /**< ASCII Serial Number */ + + bool sps_status; /**< status bit */ + int t_count; /**< timeout counter */ + uint8_t sn[33]; /**< ASCII Serial Number */ std::vector<float> sensor_float_data; /** Vector of sensor float data **/ std::vector<std::string> sensor_data_name; /** Private list of sensor data types **/