Struct ftd2xx_embedded_hal::Spi [−][src]
FTDI SPI interface.
This is created by calling Ft232hHal::spi
.
Implementations
impl<'a> Spi<'a>
[src]
pub fn set_clock_polarity(&mut self, cpol: Polarity)
[src]
Trait Implementations
impl<'a> Debug for Spi<'a>
[src]
impl<'a> FullDuplex<u8> for Spi<'a>
[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> Transfer<u8> for Spi<'a>
[src]
type Error = TimeoutError
Error type
fn transfer<'w>(&mut self, words: &'w mut [u8]) -> Result<&'w [u8], Self::Error>
[src]
impl<'a> Write<u8> for Spi<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Spi<'a>
impl<'a> !Send for Spi<'a>
impl<'a> !Sync for Spi<'a>
impl<'a> Unpin for Spi<'a>
impl<'a> UnwindSafe for Spi<'a>
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>,