pub struct SpiDeviceSync<I, C>{
pub interface: I,
/* private fields */
}
Expand description
This represents an SPI device on an SPI bus.
Fields§
§interface: I
Spi interface
Implementations§
Trait Implementations§
Source§impl<I, C> RegisterInterfaceSync for SpiDeviceSync<I, C>
impl<I, C> RegisterInterfaceSync for SpiDeviceSync<I, C>
Source§fn read_register<R>(&mut self) -> Result<R, I::Error>where
R: ReadableRegister,
fn read_register<R>(&mut self) -> Result<R, I::Error>where
R: ReadableRegister,
Read this register from this spi device using the codec specified by the register (if any) or otherwise the default codec of the device.
Source§fn write_register<R>(&mut self, register: impl AsRef<R>) -> Result<(), I::Error>where
R: WritableRegister,
fn write_register<R>(&mut self, register: impl AsRef<R>) -> Result<(), I::Error>where
R: WritableRegister,
Write this register to this spi device using the codec specified by the register (if any) or otherwise the default codec of the device.
type Error = <I as ErrorType>::Error
Auto Trait Implementations§
impl<I, C> Freeze for SpiDeviceSync<I, C>where
I: Freeze,
impl<I, C> RefUnwindSafe for SpiDeviceSync<I, C>where
I: RefUnwindSafe,
C: RefUnwindSafe,
impl<I, C> Send for SpiDeviceSync<I, C>
impl<I, C> Sync for SpiDeviceSync<I, C>
impl<I, C> Unpin for SpiDeviceSync<I, C>
impl<I, C> UnwindSafe for SpiDeviceSync<I, C>where
I: UnwindSafe,
C: 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