pub struct SpiRegisters<SPI> { /* private fields */ }Expand description
A register map behind an SPI chip select, in the Bosch framing.
The first byte of every transfer is the control byte: the register address with bit 7 set to read or cleared to write. On a read the part then streams consecutive registers; on a write the value follows. The part accepts SPI modes 0 and 3.
Implementations§
Source§impl<SPI> SpiRegisters<SPI>
impl<SPI> SpiRegisters<SPI>
Trait Implementations§
Source§impl<SPI: Debug> Debug for SpiRegisters<SPI>
impl<SPI: Debug> Debug for SpiRegisters<SPI>
Auto Trait Implementations§
impl<SPI> Freeze for SpiRegisters<SPI>where
SPI: Freeze,
impl<SPI> RefUnwindSafe for SpiRegisters<SPI>where
SPI: RefUnwindSafe,
impl<SPI> Send for SpiRegisters<SPI>where
SPI: Send,
impl<SPI> Sync for SpiRegisters<SPI>where
SPI: Sync,
impl<SPI> Unpin for SpiRegisters<SPI>where
SPI: Unpin,
impl<SPI> UnsafeUnpin for SpiRegisters<SPI>where
SPI: UnsafeUnpin,
impl<SPI> UnwindSafe for SpiRegisters<SPI>where
SPI: UnwindSafe,
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