Crate ms56xx

Crate ms56xx 

Source
Expand description

§ms56xx

CI Docs.rs Crates.io

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:

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 MS56xx sensors.
Measurement
The compensated measurement result.
Ms56xx
A driver for MS56xx pressure 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 MS56xx sensors. Note that this does not handle the chip select (CS). The provided SpiDevice must manage CS as appropriate.

Enums§

Error
Error type for MS56xx operations.
OversamplingExtended
Oversampling ratios for MS5637 (256-8192).
OversamplingStandard
Oversampling ratios for MS5607 and MS5611 (256-4096).

Traits§

Ms56xxInterface
Blocking interface operations for MS56xx sensors.
Ms56xxInterfaceAsync
Async interface operations for MS56xx sensors.
OversamplingType
Trait for oversampling ratio types.
SensorVariant
Trait for sensor-variant-specific behavior.