aboutsummaryrefslogtreecommitdiff
path: root/embassy-embedded-hal/src/shared_bus/mod.rs
blob: 2309a6c35290b75fcde8b91d6da4f44dc91a9566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Shared bus implementations
#[cfg(feature = "nightly")]
pub mod asynch;

pub mod blocking;

#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub enum I2cBusDeviceError<BUS> {
    I2c(BUS),
}

#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub enum SpiBusDeviceError<BUS, CS> {
    Spi(BUS),
    Cs(CS),
}