2 unstable releases
Uses old Rust 2015
0.2.0 | Apr 2, 2020 |
---|---|
0.1.0 | Feb 27, 2019 |
#1377 in Hardware support
26 downloads per month
Used in pixracer_bsp
20KB
372 lines
MS5611
no_std driver for the MS5611 (barometric pressure sensor)
The Device
The TE Connectivity MS5611 is a high resolution barometric pressure sensor. The device supports both SPI and I2C bus interfaces (this driver only supports SPI though).
More information and datasheet can be found at https://www.te.com/usa-en/product-CAT-BLPS0036.html#mdp-tabs-content
Status
- SPI access
- Measure Pressure
- Measure Temperature
- Get factory coefficients
- Check Coefficients CRC
- Basic tests (CRC, basic converstion)
- I2C access
- CI
- Documentation
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.
lib.rs
:
no_std driver for the MS5611 (barometric pressure sensor)
Usage
Use embedded-hal implementation to get SPI, NCS, and delay, then create a ms5611 handle
// Create handle
let ms5611 = Ms5611::new(spi, ncs, Delay)?;
// Get a second order compensated pressure (and thermo) sample,
let sample = ms5611.get_second_order_sample(Oversampling::OS_2048)?;
println!("{:?}", sample);
References
Dependencies
~71KB