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

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...
 

Detailed Description

context for LIS2DH12

Definition at line 148 of file ruuvi_interface_lis2dh12.h.

Field Documentation

◆ ctx

stmdev_ctx_t ctx

Driver control structure.

Definition at line 157 of file ruuvi_interface_lis2dh12.h.

◆ handle

uint8_t handle

Device handle, SPI GPIO pin or I2C address.

Definition at line 155 of file ruuvi_interface_lis2dh12.h.

◆ mode

uint8_t mode

Operating mode. Sleep, single or continuous.

Definition at line 154 of file ruuvi_interface_lis2dh12.h.

◆ resolution

lis2dh12_op_md_t resolution

Resolution, bits. 8, 10, or 12.

Definition at line 150 of file ruuvi_interface_lis2dh12.h.

◆ samplerate

lis2dh12_odr_t samplerate

Sample rate, 1 ... 200, or custom values for higher.

Definition at line 152 of file ruuvi_interface_lis2dh12.h.

◆ scale

lis2dh12_fs_t scale

Scale, gravities. 2, 4, 8 or 16.

Definition at line 151 of file ruuvi_interface_lis2dh12.h.

◆ selftest

lis2dh12_st_t selftest

Self-test enabled, positive, negative or disabled.

Definition at line 153 of file ruuvi_interface_lis2dh12.h.

◆ tsample

uint64_t tsample

Time of sample, rd_sensor_timestamp_get.

Definition at line 156 of file ruuvi_interface_lis2dh12.h.


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