nrfcxx
0.1.0
C++-17 Framework for Nordic nRF5 Devices
|
Go to the documentation of this file. 7 #ifndef NRFCXX_SENSOR_SDP8xx_HPP 8 #define NRFCXX_SENSOR_SDP8xx_HPP 102 return iface_config_;
107 iface_config_type& ifc);
156 return observations_;
160 int lpsm_process_ (
int& delay,
161 process_flags_type& pf)
override;
163 iface_config_type& iface_config_;
164 observations_type observations_;
165 uint16_t scaleFactor_ = 0;
Abstraction around SDP8xx differential pressure sensor.
Definition: sdp8xx.hpp:33
constexpr static int INVALID_OBSERVATION
Value for observations that are known to be invalid.
Definition: sdp8xx.hpp:62
periph::TWI & twi
Reference to TWI device used to communicate with sensor.
Definition: sdp8xx.hpp:83
int reset()
Send a soft-reset command to the SDP8xx.
Core clock-related functionality.
Material supporting low-power-mode operations.
constexpr static uint8_t CONFIG_EOB
Bit set in configure() result indicating Vdd is below 2.25V.
Definition: sdp8xx.hpp:56
static constexpr uint32_t SDP810_500Pa_PN
Product number matcher for 500 Pa range tube-connection device.
Definition: sdp8xx.hpp:131
Wrapper around the nRF51 TWI peripheral.
Definition: periph.hpp:1528
Information required to communicate with a sensor instance.
Definition: sdp8xx.hpp:80
constexpr static unsigned int RESET_DELAY_ms
The maximum time required by the sensor to stabilize after reset(), in milliseconds.
Definition: sdp8xx.hpp:40
uint8_t address
The I2C address used to communicate with the device.
Definition: sdp8xx.hpp:89
const iface_config_type & iface_config() const
Access the interface configuration for the sensor.
Definition: sdp8xx.hpp:100
int16_t temperature_cCel
A recently retrieved valid temperature_cCel() or INVALID_OBSERVATION.
Definition: sdp8xx.hpp:73
constexpr static uint8_t CONFIG_HEATER
Bit set in configure() parameter/result to enable the on-chip heater.
Definition: sdp8xx.hpp:52
std::function< void()> notifier_type
Type used to hold a notifier.
Definition: core.hpp:514
static constexpr uint32_t SDP810_125Pa_PN
Product number matcher for 125 Pa range tube-connection device.
Definition: sdp8xx.hpp:139
Base (or mixin) class for anything that supports a state_machine.
Definition: lpm.hpp:426
Storage for cached results.
Definition: sdp8xx.hpp:65
sdp8xx(notifier_type notify, iface_config_type &ifc)
Construct a sensor interface around a TWI device and events.
constexpr static unsigned int SAMPLE_DELAY_ms
The maximum time required for a one-shot measurement, in milliseconds.
Definition: sdp8xx.hpp:44
constexpr static uint8_t CONFIG_OTPRn
Bit set in configure() parameter/result to disable configuration reset on each measurement.
Definition: sdp8xx.hpp:48
const observations_type & observations() const
Retrieve the most recent observations calculated through the LPM infrastructure.
Definition: sdp8xx.hpp:154
static constexpr uint32_t SDP800_500Pa_PN
Product number matcher for 500 Pa range manifold-connection device.
Definition: sdp8xx.hpp:127
int read_device_info(uint32_t &product, uint64_t &serial)
Read the device information.
static constexpr uint32_t SDP800_125Pa_PN
Product number matcher for 125 Pa range manifold-connection device.
Definition: sdp8xx.hpp:135
Abstraction of Nordic device peripherals.
Primary namespace for nrfcxx functionality.
Definition: clock.hpp:17
int16_t diffpres_cPa
A recently retrieved valid diffpres_cPa() or INVALID_OBSERVATION.
Definition: sdp8xx.hpp:69