ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
rd_sensor_data_bitfield_t Struct Reference

Bitfield to describe related sensor data. More...

#include <ruuvi_driver_sensor.h>

Data Fields

unsigned int acceleration_x_g: 1
 Acceleration along X-axis, gravities. More...
 
unsigned int acceleration_y_g: 1
 Acceleration along Y-axis, gravities. More...
 
unsigned int acceleration_z_g: 1
 Acceleration along Z-axis, gravities. More...
 
unsigned int co2_ppm: 1
 CO2, Parts per million. More...
 
unsigned int gyro_x_dps: 1
 Rotation along X-axis, degrees per second. More...
 
unsigned int gyro_y_dps: 1
 Rotation along Y-axis, degrees per second. More...
 
unsigned int gyro_z_dps: 1
 Rotation along Z-axis, degrees per second. More...
 
unsigned int humidity_rh: 1
 Relative humidity, %. More...
 
unsigned int luminosity: 1
 Light level, dimensionless. Comparable only between identical devices. More...
 
unsigned int magnetometer_x_g: 1
 Magnetic flux along X-axis, Gauss. More...
 
unsigned int magnetometer_y_g: 1
 Magnetic flux along Y-axis, Gauss. More...
 
unsigned int magnetometer_z_g: 1
 Magnetic flux along Z-axis, Gauss. More...
 
unsigned int pm_1_ugm3: 1
 Ultra-fine particulate matter, microgram per m^3. More...
 
unsigned int pm_2_ugm3: 1
 Fine particulate matter, microgram per m^3. More...
 
unsigned int pm_4_ugm3: 1
 Medium particulate matter, microgram per m^3. More...
 
unsigned int pm_10_ugm3: 1
 Coarse particulate matter, microgram per m^3. More...
 
unsigned int pressure_pa: 1
 Pressure, pascals. More...
 
unsigned int spl_dbz: 1
 Unweighted sound pressure level. More...
 
unsigned int temperature_c: 1
 Temperature, celcius. More...
 
unsigned int voc_ppm: 1
 Volatile organic compounds, parts per million. More...
 
unsigned int voltage_v: 1
 Voltage, volts. More...
 
unsigned int voltage_ratio: 1
 Voltage, ratio to maximum. More...
 
unsigned int reserved: 10
 Reserved bits, force remainder of bitfield to 0. More...
 

Detailed Description

Bitfield to describe related sensor data.

Definition at line 133 of file ruuvi_driver_sensor.h.

Field Documentation

◆ acceleration_x_g

unsigned int acceleration_x_g

Acceleration along X-axis, gravities.

Definition at line 135 of file ruuvi_driver_sensor.h.

◆ acceleration_y_g

unsigned int acceleration_y_g

Acceleration along Y-axis, gravities.

Definition at line 136 of file ruuvi_driver_sensor.h.

◆ acceleration_z_g

unsigned int acceleration_z_g

Acceleration along Z-axis, gravities.

Definition at line 137 of file ruuvi_driver_sensor.h.

◆ co2_ppm

unsigned int co2_ppm

CO2, Parts per million.

Definition at line 138 of file ruuvi_driver_sensor.h.

◆ gyro_x_dps

unsigned int gyro_x_dps

Rotation along X-axis, degrees per second.

Definition at line 139 of file ruuvi_driver_sensor.h.

◆ gyro_y_dps

unsigned int gyro_y_dps

Rotation along Y-axis, degrees per second.

Definition at line 140 of file ruuvi_driver_sensor.h.

◆ gyro_z_dps

unsigned int gyro_z_dps

Rotation along Z-axis, degrees per second.

Definition at line 141 of file ruuvi_driver_sensor.h.

◆ humidity_rh

unsigned int humidity_rh

Relative humidity, %.

Definition at line 142 of file ruuvi_driver_sensor.h.

◆ luminosity

unsigned int luminosity

Light level, dimensionless. Comparable only between identical devices.

Definition at line 144 of file ruuvi_driver_sensor.h.

◆ magnetometer_x_g

unsigned int magnetometer_x_g

Magnetic flux along X-axis, Gauss.

Definition at line 145 of file ruuvi_driver_sensor.h.

◆ magnetometer_y_g

unsigned int magnetometer_y_g

Magnetic flux along Y-axis, Gauss.

Definition at line 146 of file ruuvi_driver_sensor.h.

◆ magnetometer_z_g

unsigned int magnetometer_z_g

Magnetic flux along Z-axis, Gauss.

Definition at line 147 of file ruuvi_driver_sensor.h.

◆ pm_10_ugm3

unsigned int pm_10_ugm3

Coarse particulate matter, microgram per m^3.

Definition at line 151 of file ruuvi_driver_sensor.h.

◆ pm_1_ugm3

unsigned int pm_1_ugm3

Ultra-fine particulate matter, microgram per m^3.

Definition at line 148 of file ruuvi_driver_sensor.h.

◆ pm_2_ugm3

unsigned int pm_2_ugm3

Fine particulate matter, microgram per m^3.

Definition at line 149 of file ruuvi_driver_sensor.h.

◆ pm_4_ugm3

unsigned int pm_4_ugm3

Medium particulate matter, microgram per m^3.

Definition at line 150 of file ruuvi_driver_sensor.h.

◆ pressure_pa

unsigned int pressure_pa

Pressure, pascals.

Definition at line 152 of file ruuvi_driver_sensor.h.

◆ reserved

unsigned int reserved

Reserved bits, force remainder of bitfield to 0.

Definition at line 158 of file ruuvi_driver_sensor.h.

◆ spl_dbz

unsigned int spl_dbz

Unweighted sound pressure level.

Definition at line 153 of file ruuvi_driver_sensor.h.

◆ temperature_c

unsigned int temperature_c

Temperature, celcius.

Definition at line 154 of file ruuvi_driver_sensor.h.

◆ voc_ppm

unsigned int voc_ppm

Volatile organic compounds, parts per million.

Definition at line 155 of file ruuvi_driver_sensor.h.

◆ voltage_ratio

unsigned int voltage_ratio

Voltage, ratio to maximum.

Definition at line 157 of file ruuvi_driver_sensor.h.

◆ voltage_v

unsigned int voltage_v

Voltage, volts.

Definition at line 156 of file ruuvi_driver_sensor.h.


The documentation for this struct was generated from the following file: