Struct rtic_sync::arbiter::i2c::ArbiterDevice
source · 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<'a, BUS> ErrorType for ArbiterDevice<'a, BUS>where
BUS: ErrorType,
impl<'a, BUS> ErrorType for ArbiterDevice<'a, BUS>where
BUS: ErrorType,
source§impl<'a, BUS, A> I2c<A> for ArbiterDevice<'a, BUS>where
BUS: I2c<A>,
A: AddressMode,
impl<'a, BUS, A> I2c<A> for ArbiterDevice<'a, 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