ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
context for LIS2DH12 More...
#include <ruuvi_interface_lis2dh12.h>
Data Fields | |
lis2dh12_op_md_t | resolution |
Resolution, bits. 8, 10, or 12. More... | |
lis2dh12_fs_t | scale |
Scale, gravities. 2, 4, 8 or 16. More... | |
lis2dh12_odr_t | samplerate |
Sample rate, 1 ... 200, or custom values for higher. More... | |
lis2dh12_st_t | selftest |
Self-test enabled, positive, negative or disabled. More... | |
uint8_t | mode |
Operating mode. Sleep, single or continuous. More... | |
uint8_t | handle |
Device handle, SPI GPIO pin or I2C address. More... | |
uint64_t | tsample |
Time of sample, rd_sensor_timestamp_get. More... | |
stmdev_ctx_t | ctx |
Driver control structure. More... | |
context for LIS2DH12
Definition at line 148 of file ruuvi_interface_lis2dh12.h.
stmdev_ctx_t ctx |
Driver control structure.
Definition at line 157 of file ruuvi_interface_lis2dh12.h.
uint8_t handle |
Device handle, SPI GPIO pin or I2C address.
Definition at line 155 of file ruuvi_interface_lis2dh12.h.
uint8_t mode |
Operating mode. Sleep, single or continuous.
Definition at line 154 of file ruuvi_interface_lis2dh12.h.
lis2dh12_op_md_t resolution |
Resolution, bits. 8, 10, or 12.
Definition at line 150 of file ruuvi_interface_lis2dh12.h.
lis2dh12_odr_t samplerate |
Sample rate, 1 ... 200, or custom values for higher.
Definition at line 152 of file ruuvi_interface_lis2dh12.h.
lis2dh12_fs_t scale |
Scale, gravities. 2, 4, 8 or 16.
Definition at line 151 of file ruuvi_interface_lis2dh12.h.
lis2dh12_st_t selftest |
Self-test enabled, positive, negative or disabled.
Definition at line 153 of file ruuvi_interface_lis2dh12.h.
uint64_t tsample |
Time of sample, rd_sensor_timestamp_get.
Definition at line 156 of file ruuvi_interface_lis2dh12.h.