Trait windows::Devices::Spi::Provider::ISpiDeviceProvider_Impl

pub trait ISpiDeviceProvider_Impl: Sized + IClosable_Impl {
    // Required methods
    fn DeviceId(&self) -> Result<HSTRING>;
    fn ConnectionSettings(&self) -> Result<ProviderSpiConnectionSettings>;
    fn Write(&self, buffer: &[u8]) -> Result<()>;
    fn Read(&self, buffer: &mut [u8]) -> Result<()>;
    fn TransferSequential(
        &self,
        writebuffer: &[u8],
        readbuffer: &mut [u8],
    ) -> Result<()>;
    fn TransferFullDuplex(
        &self,
        writebuffer: &[u8],
        readbuffer: &mut [u8],
    ) -> Result<()>;
}

Required Methods§

fn DeviceId(&self) -> Result<HSTRING>

fn ConnectionSettings(&self) -> Result<ProviderSpiConnectionSettings>

fn Write(&self, buffer: &[u8]) -> Result<()>

fn Read(&self, buffer: &mut [u8]) -> Result<()>

fn TransferSequential( &self, writebuffer: &[u8], readbuffer: &mut [u8], ) -> Result<()>

fn TransferFullDuplex( &self, writebuffer: &[u8], readbuffer: &mut [u8], ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§