ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_shtcx.h
Go to the documentation of this file.
1 #ifndef RUUVI_INTERFACE_SHTCX_H
2 #define RUUVI_INTERFACE_SHTCX_H
3 #include "ruuvi_driver_error.h"
4 #include "ruuvi_driver_sensor.h"
5 
48 #define RI_SHTCX_WAKEUP_US (240U)
49 
52  environmental_sensor, rd_bus_t bus, uint8_t handle);
55  environmental_sensor, rd_bus_t bus, uint8_t handle);
57 rd_status_t ri_shtcx_samplerate_set (uint8_t * samplerate);
59 rd_status_t ri_shtcx_samplerate_get (uint8_t * samplerate);
61 rd_status_t ri_shtcx_resolution_set (uint8_t * resolution);
63 rd_status_t ri_shtcx_resolution_get (uint8_t * resolution);
65 rd_status_t ri_shtcx_scale_set (uint8_t * scale);
67 rd_status_t ri_shtcx_scale_get (uint8_t * scale);
69 rd_status_t ri_shtcx_dsp_set (uint8_t * dsp, uint8_t * parameter);
70 rd_status_t ri_shtcx_dsp_get (uint8_t * dsp, uint8_t * parameter);
72 rd_status_t ri_shtcx_mode_set (uint8_t *);
74 rd_status_t ri_shtcx_mode_get (uint8_t *);
77  p_data);
79 #endif
uint32_t rd_status_t
bitfield for representing errors
rd_status_t ri_shtcx_uninit(rd_sensor_t *environmental_sensor, rd_bus_t bus, uint8_t handle)
rd_sensor_init_fp
rd_status_t ri_shtcx_scale_set(uint8_t *scale)
rd_sensor_setup_fp
rd_status_t ri_shtcx_samplerate_set(uint8_t *samplerate)
rd_sensor_setup_fp
rd_status_t ri_shtcx_dsp_get(uint8_t *dsp, uint8_t *parameter)
rd_status_t ri_shtcx_dsp_set(uint8_t *dsp, uint8_t *parameter)
rd_sensor_setup_fp
rd_status_t ri_shtcx_init(rd_sensor_t *environmental_sensor, rd_bus_t bus, uint8_t handle)
rd_sensor_init_fp
rd_status_t ri_shtcx_scale_get(uint8_t *scale)
rd_sensor_setup_fp
rd_status_t ri_shtcx_data_get(rd_sensor_data_t *const p_data)
rd_sensor_data_fp
rd_status_t ri_shtcx_samplerate_get(uint8_t *samplerate)
rd_sensor_setup_fp
rd_status_t ri_shtcx_resolution_get(uint8_t *resolution)
rd_sensor_setup_fp
rd_status_t ri_shtcx_mode_get(uint8_t *)
rd_sensor_setup_fp
rd_status_t ri_shtcx_mode_set(uint8_t *)
rd_sensor_setup_fp
rd_status_t ri_shtcx_resolution_set(uint8_t *resolution)
rd_sensor_setup_fp
rd_bus_t
Type of bus sensor uses.
Ruuvi error codes and error check function.
Ruuvi sensor interface Lifecycle: Beta
Generic sensor data struct.
Interface to sensor. Some sensors can implement additional functions. The additional functions are de...