- Author
- Otso Jousimaa otso@.nosp@m.ojou.nosp@m.sima..nosp@m.net
- Date
- 2020-12-28
- Copyright
- Ruuvi Innovations Ltd, license BSD-3-Clause.
Interface for DPS310 basic usage. The underlying platform must provide functions for SPI access, ruuvi_interface_spi_dps310.h.
Testing the interface with ruuvi_driver_sensor_test.h
uint8_t handle = 0;
handle = RUUVI_BOARD_SPI_SS_ENVIRONMENTAL_PIN;
err_code = test_sensor_init(init, bus, handle);
err_code = test_sensor_setup(init, bus, handle);
err_code = test_sensor_modes(init, bus, handle);
rd_status_t ri_dps310_init(rd_sensor_t *p_sensor, rd_bus_t bus, uint8_t handle)
rd_sensor_init_fp
uint32_t rd_status_t
bitfield for representing errors
#define RD_ERROR_CHECK(error, mask)
Shorthand macro for calling the rd_error_check with current file & line.
#define RD_SUCCESS
Internal Error.
#define RD_ERROR_SELFTEST
Self-test fail.
rd_status_t(* rd_sensor_init_fp)(rd_sensor_t *const p_sensor, const rd_bus_t bus, const uint8_t handle)
Initialize and uninitialize sensor. Init and uninit will setup sensor with function pointers....
rd_bus_t
Type of bus sensor uses.
@ RD_BUS_NONE
No bus, internal to IC.
Definition in file ruuvi_interface_dps310.h.