embedded-qmp6988
This is a platform agnostic Rust driver the QMP6988 digital barometric pressure
sensor using the embedded-hal
traits.
The device
The QMP6988 sensors is high accuracy and small size barometric pressure sensor with low current consumption.
It can be addressed through an I²C or an SPI interface. This driver uses the I²C interface.
Documentation:
Features
- Choose the oversampling setting used for measurements.
- Choose the IIR filter used to reduce the noise in the measurements.
- Perform a single measurement (using the force power mode).
- Do a sofware set.
- Perform repeated measurements using the normal power mode.
- Include a no floating-point variant for systems without fpu.
Usage
To use this driver, import what you need from this crate and an embedded-hal
implentation, then instatiate the device.
use ;
use linux_embedded_hal as hal;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.