bmp180-embedded-hal 0.1.0

A platform agnostic driver to interface with the BMP180 barometric pressure sensor.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Error types for `BMP180` devices.

/// Error type for `BMP180` devices.
#[cfg_attr(feature = "impl-defmt-format", derive(defmt::Format))]
#[cfg_attr(feature = "impl-debug", derive(core::fmt::Debug))]
pub enum BMP180Error<I2CError> {
    /// I2C error.
    I2C(I2CError),
    /// Invalid device ID.
    InvalidId(u8),
    /// Arithmetic error, like deviding by zero, overflow, etc.
    Arithmetic,
}