embassy-embedded-hal: docs

This commit is contained in:
Dario Nieuwenhuis
2022-07-19 07:57:39 +02:00
parent 3fb83898bc
commit d2f4a9bf8d
7 changed files with 59 additions and 2 deletions

View File

@ -8,8 +8,10 @@ pub mod asynch;
pub mod blocking;
/// Error returned by I2C device implementations in this crate.
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub enum I2cDeviceError<BUS> {
/// An operation on the inner I2C bus failed.
I2c(BUS),
}
@ -24,9 +26,12 @@ where
}
}
/// Error returned by SPI device implementations in this crate.
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub enum SpiDeviceError<BUS, CS> {
/// An operation on the inner SPI bus failed.
Spi(BUS),
/// Setting the value of the Chip Select (CS) pin failed.
Cs(CS),
}