pub struct ArbiterDevice<'a, BUS> { /* private fields */ }
Expand description
Arbiter
-based shared bus implementation for I2C.
Implementations§
source§impl<'a, BUS> ArbiterDevice<'a, BUS>
impl<'a, BUS> ArbiterDevice<'a, BUS>
sourcepub fn new(bus: &'a Arbiter<BUS>) -> Self
pub fn new(bus: &'a Arbiter<BUS>) -> Self
Create a new ArbiterDevice
for I2C.
Trait Implementations§
source§impl<BUS> ErrorType for ArbiterDevice<'_, BUS>where
BUS: ErrorType,
impl<BUS> ErrorType for ArbiterDevice<'_, BUS>where
BUS: ErrorType,
source§impl<BUS, A> I2c<A> for ArbiterDevice<'_, BUS>where
BUS: I2c<A>,
A: AddressMode,
impl<BUS, A> I2c<A> for ArbiterDevice<'_, BUS>where
BUS: I2c<A>,
A: AddressMode,
source§async fn write(&mut self, address: A, write: &[u8]) -> Result<(), Self::Error>
async fn write(&mut self, address: A, write: &[u8]) -> Result<(), Self::Error>
Writes bytes to slave with address
address
. Read moreAuto Trait Implementations§
impl<'a, BUS> Freeze for ArbiterDevice<'a, BUS>
impl<'a, BUS> !RefUnwindSafe for ArbiterDevice<'a, BUS>
impl<'a, BUS> Send for ArbiterDevice<'a, BUS>
impl<'a, BUS> Sync for ArbiterDevice<'a, BUS>
impl<'a, BUS> Unpin for ArbiterDevice<'a, BUS>
impl<'a, BUS> !UnwindSafe for ArbiterDevice<'a, BUS>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more