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

#include <ruuvi_task_sensor.h>

Data Fields

rd_sensor_t sensor
 Control structure for sensor. More...
 
rd_sensor_init_fp init
 Initialization function. More...
 
rd_sensor_configuration_t configuration
 Sensor configuration. More...
 
uint16_t nvm_file
 NVM file of configuration. More...
 
uint16_t nvm_record
 NVM record of configuration. More...
 
uint8_t handle
 Handle of sensor. More...
 
rd_bus_t bus
 Bus of sensor. More...
 
ri_gpio_id_t pwr_pin
 Power control pin. More...
 
ri_gpio_state_t pwr_on
 Power-on state of ctrl pin. More...
 
ri_gpio_id_t fifo_pin
 FIFO full interrupt. More...
 
ri_gpio_id_t level_pin
 Level interrupt. More...
 
ri_i2c_frequency_t i2c_max_speed
 Maximum I2C speed supported. More...
 

Detailed Description

Definition at line 21 of file ruuvi_task_sensor.h.

Field Documentation

◆ bus

rd_bus_t bus

Bus of sensor.

Definition at line 29 of file ruuvi_task_sensor.h.

◆ configuration

Sensor configuration.

Definition at line 25 of file ruuvi_task_sensor.h.

◆ fifo_pin

ri_gpio_id_t fifo_pin

FIFO full interrupt.

Definition at line 32 of file ruuvi_task_sensor.h.

◆ handle

uint8_t handle

Handle of sensor.

Definition at line 28 of file ruuvi_task_sensor.h.

◆ i2c_max_speed

ri_i2c_frequency_t i2c_max_speed

Maximum I2C speed supported.

Definition at line 34 of file ruuvi_task_sensor.h.

◆ init

Initialization function.

Definition at line 24 of file ruuvi_task_sensor.h.

◆ level_pin

ri_gpio_id_t level_pin

Level interrupt.

Definition at line 33 of file ruuvi_task_sensor.h.

◆ nvm_file

uint16_t nvm_file

NVM file of configuration.

Definition at line 26 of file ruuvi_task_sensor.h.

◆ nvm_record

uint16_t nvm_record

NVM record of configuration.

Definition at line 27 of file ruuvi_task_sensor.h.

◆ pwr_on

Power-on state of ctrl pin.

Definition at line 31 of file ruuvi_task_sensor.h.

◆ pwr_pin

ri_gpio_id_t pwr_pin

Power control pin.

Definition at line 30 of file ruuvi_task_sensor.h.

◆ sensor

rd_sensor_t sensor

Control structure for sensor.

Definition at line 23 of file ruuvi_task_sensor.h.


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