diff options
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/mod.rs')
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/mod.rs b/embassy-embedded-hal/src/shared_bus/mod.rs index 3cd380f72..76ee413d9 100644 --- a/embassy-embedded-hal/src/shared_bus/mod.rs +++ b/embassy-embedded-hal/src/shared_bus/mod.rs | |||
| @@ -8,8 +8,10 @@ pub mod asynch; | |||
| 8 | 8 | ||
| 9 | pub mod blocking; | 9 | pub mod blocking; |
| 10 | 10 | ||
| 11 | /// Error returned by I2C device implementations in this crate. | ||
| 11 | #[derive(Copy, Clone, Eq, PartialEq, Debug)] | 12 | #[derive(Copy, Clone, Eq, PartialEq, Debug)] |
| 12 | pub enum I2cDeviceError<BUS> { | 13 | pub enum I2cDeviceError<BUS> { |
| 14 | /// An operation on the inner I2C bus failed. | ||
| 13 | I2c(BUS), | 15 | I2c(BUS), |
| 14 | } | 16 | } |
| 15 | 17 | ||
| @@ -24,9 +26,12 @@ where | |||
| 24 | } | 26 | } |
| 25 | } | 27 | } |
| 26 | 28 | ||
| 29 | /// Error returned by SPI device implementations in this crate. | ||
| 27 | #[derive(Copy, Clone, Eq, PartialEq, Debug)] | 30 | #[derive(Copy, Clone, Eq, PartialEq, Debug)] |
| 28 | pub enum SpiDeviceError<BUS, CS> { | 31 | pub enum SpiDeviceError<BUS, CS> { |
| 32 | /// An operation on the inner SPI bus failed. | ||
| 29 | Spi(BUS), | 33 | Spi(BUS), |
| 34 | /// Setting the value of the Chip Select (CS) pin failed. | ||
| 30 | Cs(CS), | 35 | Cs(CS), |
| 31 | } | 36 | } |
| 32 | 37 | ||
