ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_dps310.c File Reference
#include "ruuvi_driver_enabled_modules.h"
#include "ruuvi_interface_dps310.h"
#include "dps310.h"
#include "ruuvi_driver_error.h"
#include "ruuvi_driver_sensor.h"
#include "ruuvi_interface_spi_dps310.h"
#include "ruuvi_interface_yield.h"
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Functions

rd_status_t ri_dps310_init (rd_sensor_t *p_sensor, rd_bus_t bus, uint8_t handle)
 rd_sensor_init_fp More...
 
rd_status_t ri_dps310_uninit (rd_sensor_t *sensor, rd_bus_t bus, uint8_t handle)
 rd_sensor_init_fp More...
 
rd_status_t ri_dps310_samplerate_set (uint8_t *samplerate)
 rd_sensor_setup_fp More...
 
rd_status_t ri_dps310_samplerate_get (uint8_t *samplerate)
 rd_sensor_setup_fp More...
 
rd_status_t ri_dps310_resolution_set (uint8_t *resolution)
 rd_sensor_setup_fp More...
 
rd_status_t ri_dps310_resolution_get (uint8_t *resolution)
 rd_sensor_setup_fp More...
 
rd_status_t ri_dps310_scale_set (uint8_t *scale)
 rd_sensor_setup_fp More...
 
rd_status_t ri_dps310_scale_get (uint8_t *scale)
 rd_sensor_setup_fp More...
 
rd_status_t ri_dps310_dsp_set (uint8_t *dsp, uint8_t *parameter)
 rd_sensor_dsp_fp More...
 
rd_status_t ri_dps310_dsp_get (uint8_t *dsp, uint8_t *parameter)
 rd_sensor_dsp_fp More...
 
rd_status_t ri_dps310_mode_set (uint8_t *mode)
 rd_sensor_setup_fp More...
 
rd_status_t ri_dps310_mode_get (uint8_t *mode)
 rd_sensor_setup_fp More...
 
rd_status_t ri_dps310_data_get (rd_sensor_data_t *const data)
 rd_sensor_data_fp More...
 

Variables

const rd_sensor_data_fields_t dps_fields
 

Variable Documentation

◆ dps_fields

const rd_sensor_data_fields_t dps_fields
Initial value:
=
{
.datas.temperature_c = 1,
.datas.pressure_pa = 1
}

Definition at line 30 of file ruuvi_interface_dps310.c.