diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-07-19 05:59:36 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-19 05:59:36 +0000 |
| commit | 26fdfdb00a1819f4a21c8d0fe1220c079983eecc (patch) | |
| tree | f5eac13ddbed4e67aa1b1a6243b880f233658352 /embassy-embedded-hal/src/shared_bus/mod.rs | |
| parent | e5d3f01bc444c257dbdfc75e504767e8e13d2a02 (diff) | |
| parent | d2f4a9bf8df8de9f51b29659b464b4509af47dc6 (diff) | |
Merge #869
869: Add some docs. r=Dirbaio a=Dirbaio
bors r+
Co-authored-by: Dario Nieuwenhuis <[email protected]>
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 | ||
