Expand description
§ms56xx
Internal implementation crate for MS56xx family barometric pressure sensors (MS5607, MS5611, MS5637).
Provides core driver logic with support for I2C and SPI interfaces, async and blocking APIs via embedded-hal traits, and compile-time sensor variant selection using the typestate pattern.
§For End Users
Don’t use this crate directly. Instead, use one of the sensor-specific wrapper crates:
ms5607-rs- For MS5607 sensors (I2C + SPI)ms5611-rs- For MS5611 sensors (I2C + SPI)ms5637-rs- For MS5637 sensors (I2C only)
These provide a more ergonomic API without exposing typestate implementation details.
§License
MIT or Apache-2.0 license, at your option.
Structs§
- I2cInterface
- I2C interface adapter for
MS56xxsensors. - Measurement
- The compensated measurement result.
- Ms56xx
- A driver for
MS56xxpressure sensors (MS5607, MS5611, MS5637). - Ms5607
- Typestate marker for MS5607 sensor.
- Ms5611
- Typestate marker for MS5611 sensor.
- Ms5637
- Typestate marker for MS5637 sensor.
- SpiInterface
- SPI interface adapter for
MS56xxsensors. Note that this does not handle the chip select (CS). The providedSpiDevicemust manage CS as appropriate.
Enums§
- Error
- Error type for
MS56xxoperations. - Oversampling
Extended - Oversampling ratios for MS5637 (256-8192).
- Oversampling
Standard - Oversampling ratios for MS5607 and MS5611 (256-4096).
Traits§
- Ms56xx
Interface - Blocking interface operations for
MS56xxsensors. - Ms56xx
Interface Async - Async interface operations for
MS56xxsensors. - Oversampling
Type - Trait for oversampling ratio types.
- Sensor
Variant - Trait for sensor-variant-specific behavior.