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

Interface to sensor. Some sensors can implement additional functions. The additional functions are defined in the interface of the sensor. More...

#include <ruuvi_driver_sensor.h>

Data Fields

const char * name
 Sensor human-readable name. Should be at most 8 bytes long. More...
 
void * p_ctx
 handle for sensor internal context More...
 
rd_sensor_data_fields_t provides
 Description of data fields the sensor is able to provide. More...
 
rd_sensor_init_fp init
 rd_sensor_init_fp More...
 
rd_sensor_init_fp uninit
 rd_sensor_init_fp More...
 
rd_sensor_setup_fp samplerate_set
 rd_sensor_setup_fp More...
 
rd_sensor_setup_fp samplerate_get
 rd_sensor_setup_fp More...
 
rd_sensor_setup_fp resolution_set
 rd_sensor_setup_fp More...
 
rd_sensor_setup_fp resolution_get
 rd_sensor_setup_fp More...
 
rd_sensor_setup_fp scale_set
 rd_sensor_setup_fp More...
 
rd_sensor_setup_fp scale_get
 rd_sensor_setup_fp More...
 
rd_sensor_setup_fp mode_set
 rd_sensor_setup_fp More...
 
rd_sensor_setup_fp mode_get
 rd_sensor_setup_fp More...
 
rd_sensor_dsp_fp dsp_set
 rd_sensor_dsp_fp More...
 
rd_sensor_dsp_fp dsp_get
 rd_sensor_dsp_fp More...
 
rd_configuration_fp configuration_set
 rd_configuration_fp More...
 
rd_configuration_fp configuration_get
 rd_configuration_fp More...
 
rd_sensor_data_fp data_get
 rd_sensor_data_fp More...
 
rd_sensor_fifo_enable_fp fifo_enable
 rd_sensor_fifo_enable_fp More...
 
rd_sensor_fifo_enable_fp fifo_interrupt_enable
 rd_sensor_level_interrupt_use_fp More...
 
rd_sensor_fifo_read_fp fifo_read
 rd_sensor_level_interrupt_use_fp More...
 
rd_sensor_level_interrupt_use_fp level_interrupt_set
 rd_sensor_level_interrupt_use_fp More...
 

Detailed Description

Interface to sensor. Some sensors can implement additional functions. The additional functions are defined in the interface of the sensor.

Definition at line 377 of file ruuvi_driver_sensor.h.

Field Documentation

◆ configuration_get

rd_configuration_fp configuration_get

rd_configuration_fp

Definition at line 412 of file ruuvi_driver_sensor.h.

◆ configuration_set

rd_configuration_fp configuration_set

rd_configuration_fp

Definition at line 410 of file ruuvi_driver_sensor.h.

◆ data_get

rd_sensor_data_fp

Definition at line 414 of file ruuvi_driver_sensor.h.

◆ dsp_get

rd_sensor_dsp_fp

Definition at line 408 of file ruuvi_driver_sensor.h.

◆ dsp_set

rd_sensor_dsp_fp

Definition at line 406 of file ruuvi_driver_sensor.h.

◆ fifo_enable

◆ fifo_interrupt_enable

rd_sensor_fifo_enable_fp fifo_interrupt_enable

◆ fifo_read

◆ init

◆ level_interrupt_set

◆ mode_get

rd_sensor_setup_fp

Definition at line 404 of file ruuvi_driver_sensor.h.

◆ mode_set

rd_sensor_setup_fp

Definition at line 402 of file ruuvi_driver_sensor.h.

◆ name

const char* name

Sensor human-readable name. Should be at most 8 bytes long.

Definition at line 380 of file ruuvi_driver_sensor.h.

◆ p_ctx

void* p_ctx

handle for sensor internal context

Definition at line 382 of file ruuvi_driver_sensor.h.

◆ provides

Description of data fields the sensor is able to provide.

Definition at line 384 of file ruuvi_driver_sensor.h.

◆ resolution_get

rd_sensor_setup_fp resolution_get

rd_sensor_setup_fp

Definition at line 396 of file ruuvi_driver_sensor.h.

◆ resolution_set

rd_sensor_setup_fp resolution_set

rd_sensor_setup_fp

Definition at line 394 of file ruuvi_driver_sensor.h.

◆ samplerate_get

rd_sensor_setup_fp samplerate_get

rd_sensor_setup_fp

Definition at line 392 of file ruuvi_driver_sensor.h.

◆ samplerate_set

rd_sensor_setup_fp samplerate_set

rd_sensor_setup_fp

Definition at line 390 of file ruuvi_driver_sensor.h.

◆ scale_get

rd_sensor_setup_fp scale_get

rd_sensor_setup_fp

Definition at line 400 of file ruuvi_driver_sensor.h.

◆ scale_set

rd_sensor_setup_fp scale_set

rd_sensor_setup_fp

Definition at line 398 of file ruuvi_driver_sensor.h.

◆ uninit

rd_sensor_init_fp

Definition at line 388 of file ruuvi_driver_sensor.h.


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