pub struct SpiInterface<SPI> { /* private fields */ }Expand description
SPI interface adapter for MS56xx sensors. Note that this does not handle the chip select (CS).
The provided SpiDevice must manage CS as appropriate.
Implementations§
Source§impl<SPI> SpiInterface<SPI>
impl<SPI> SpiInterface<SPI>
Sourcepub fn new(spi: SPI) -> SpiInterface<SPI>
pub fn new(spi: SPI) -> SpiInterface<SPI>
Create a new SPI interface adapter.
Trait Implementations§
Source§impl<SPI> Ms56xxInterface for SpiInterface<SPI>where
SPI: SpiDevice,
impl<SPI> Ms56xxInterface for SpiInterface<SPI>where
SPI: SpiDevice,
Source§impl<SPI> Ms56xxInterfaceAsync for SpiInterface<SPI>where
SPI: SpiDevice,
impl<SPI> Ms56xxInterfaceAsync for SpiInterface<SPI>where
SPI: SpiDevice,
Auto Trait Implementations§
impl<SPI> Freeze for SpiInterface<SPI>where
SPI: Freeze,
impl<SPI> RefUnwindSafe for SpiInterface<SPI>where
SPI: RefUnwindSafe,
impl<SPI> Send for SpiInterface<SPI>where
SPI: Send,
impl<SPI> Sync for SpiInterface<SPI>where
SPI: Sync,
impl<SPI> Unpin for SpiInterface<SPI>where
SPI: Unpin,
impl<SPI> UnwindSafe for SpiInterface<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