ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
Generic sensor data struct. More...
#include <ruuvi_driver_sensor.h>
Data Fields | |
uint64_t | timestamp_ms |
Timestamp of the event, rd_sensor_timestamp_get. More... | |
rd_sensor_data_fields_t | fields |
Description of datafields which may be contained in this sample. More... | |
rd_sensor_data_fields_t | valid |
Listing of valid data in this sample. More... | |
float * | data |
Data of sensor. Must contain as many elements as fields has bits set. More... | |
Generic sensor data struct.
The data sensor struct contains a timestamp relative to sensor boot, a list of fields contained within the sensor data and a pointer to array of floats which contain the actual data.
Definition at line 214 of file ruuvi_driver_sensor.h.
float* data |
Data of sensor. Must contain as many elements as fields has bits set.
Definition at line 221 of file ruuvi_driver_sensor.h.
rd_sensor_data_fields_t fields |
Description of datafields which may be contained in this sample.
Definition at line 218 of file ruuvi_driver_sensor.h.
uint64_t timestamp_ms |
Timestamp of the event, rd_sensor_timestamp_get.
Definition at line 216 of file ruuvi_driver_sensor.h.
rd_sensor_data_fields_t valid |
Listing of valid data in this sample.
Definition at line 219 of file ruuvi_driver_sensor.h.