Struct ftd2xx_embedded_hal::Spi [−][src]
pub struct Spi<'a, Device> { /* fields omitted */ }
FTDI SPI interface.
This is created by calling FtHal::spi
.
Implementations
impl<'a, Device: FtdiCommon> Spi<'a, Device>
[src]
pub fn set_clock_polarity(&mut self, cpol: Polarity)
[src]
Trait Implementations
impl<'a, Device: Debug> Debug for Spi<'a, Device>
[src]
impl<'a, Device: FtdiCommon> FullDuplex<u8> for Spi<'a, Device>
[src]
type Error = TimeoutError
An enumeration of SPI errors
fn read(&mut self) -> Result<u8, Self::Error>
[src]
fn send(&mut self, byte: u8) -> Result<(), Self::Error>
[src]
impl<'a, Device: FtdiCommon> Transfer<u8> for Spi<'a, Device>
[src]
type Error = TimeoutError
Error type
fn transfer<'w>(&mut self, words: &'w mut [u8]) -> Result<&'w [u8], Self::Error>
[src]
impl<'a, Device: FtdiCommon> Write<u8> for Spi<'a, Device>
[src]
Auto Trait Implementations
impl<'a, Device> RefUnwindSafe for Spi<'a, Device>
impl<'a, Device> Send for Spi<'a, Device> where
Device: Send,
Device: Send,
impl<'a, Device> Sync for Spi<'a, Device> where
Device: Send,
Device: Send,
impl<'a, Device> Unpin for Spi<'a, Device>
impl<'a, Device> UnwindSafe for Spi<'a, Device>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,