pub struct ArbiterDevice<'a, BUS, CS, D> { /* private fields */ }
Expand description
Arbiter
-based shared bus implementation.
Implementations§
source§impl<'a, BUS, CS, D> ArbiterDevice<'a, BUS, CS, D>
impl<'a, BUS, CS, D> ArbiterDevice<'a, BUS, CS, D>
sourcepub fn new(bus: &'a Arbiter<BUS>, cs: CS, delay: D) -> Self
pub fn new(bus: &'a Arbiter<BUS>, cs: CS, delay: D) -> Self
Create a new ArbiterDevice
.
Trait Implementations§
source§impl<BUS, CS, D> ErrorType for ArbiterDevice<'_, BUS, CS, D>
impl<BUS, CS, D> ErrorType for ArbiterDevice<'_, BUS, CS, D>
source§impl<Word, BUS, CS, D> SpiDevice<Word> for ArbiterDevice<'_, BUS, CS, D>
impl<Word, BUS, CS, D> SpiDevice<Word> for ArbiterDevice<'_, BUS, CS, D>
source§async fn transaction(
&mut self,
operations: &mut [Operation<'_, Word>],
) -> Result<(), DeviceError<BUS::Error, CS::Error>>
async fn transaction( &mut self, operations: &mut [Operation<'_, Word>], ) -> Result<(), DeviceError<BUS::Error, CS::Error>>
Perform a transaction against the device. Read more
source§async fn read(&mut self, buf: &mut [Word]) -> Result<(), Self::Error>
async fn read(&mut self, buf: &mut [Word]) -> Result<(), Self::Error>
Do a read within a transaction. Read more
source§async fn write(&mut self, buf: &[Word]) -> Result<(), Self::Error>
async fn write(&mut self, buf: &[Word]) -> Result<(), Self::Error>
Do a write within a transaction. Read more
Auto Trait Implementations§
impl<'a, BUS, CS, D> Freeze for ArbiterDevice<'a, BUS, CS, D>
impl<'a, BUS, CS, D> !RefUnwindSafe for ArbiterDevice<'a, BUS, CS, D>
impl<'a, BUS, CS, D> Send for ArbiterDevice<'a, BUS, CS, D>
impl<'a, BUS, CS, D> Sync for ArbiterDevice<'a, BUS, CS, D>
impl<'a, BUS, CS, D> Unpin for ArbiterDevice<'a, BUS, CS, D>
impl<'a, BUS, CS, D> !UnwindSafe for ArbiterDevice<'a, BUS, CS, D>
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