[−][src]Struct bitbang_hal::spi::SPI
A Full-Duplex SPI implementation, takes 3 pins, and a timer running at 2x the desired SPI frequency.
Methods
impl<Miso, Mosi, Sck, Timer> SPI<Miso, Mosi, Sck, Timer> where
Miso: InputPin,
Mosi: OutputPin,
Sck: OutputPin,
Timer: CountDown + Periodic, [src]
Miso: InputPin,
Mosi: OutputPin,
Sck: OutputPin,
Timer: CountDown + Periodic,
Trait Implementations
impl<Miso, Mosi, Sck, Timer> Default<u8> for SPI<Miso, Mosi, Sck, Timer> where
Miso: InputPin,
Mosi: OutputPin,
Sck: OutputPin,
Timer: CountDown + Periodic, [src]
Miso: InputPin,
Mosi: OutputPin,
Sck: OutputPin,
Timer: CountDown + Periodic,
impl<Miso, Mosi, Sck, Timer> Default<u8> for SPI<Miso, Mosi, Sck, Timer> where
Miso: InputPin,
Mosi: OutputPin,
Sck: OutputPin,
Timer: CountDown + Periodic, [src]
Miso: InputPin,
Mosi: OutputPin,
Sck: OutputPin,
Timer: CountDown + Periodic,
impl<Miso, Mosi, Sck, Timer> FullDuplex<u8> for SPI<Miso, Mosi, Sck, Timer> where
Miso: InputPin,
Mosi: OutputPin,
Sck: OutputPin,
Timer: CountDown + Periodic, [src]
Miso: InputPin,
Mosi: OutputPin,
Sck: OutputPin,
Timer: CountDown + Periodic,
Auto Trait Implementations
impl<Miso, Mosi, Sck, Timer> Send for SPI<Miso, Mosi, Sck, Timer> where
Miso: Send,
Mosi: Send,
Sck: Send,
Timer: Send,
Miso: Send,
Mosi: Send,
Sck: Send,
Timer: Send,
impl<Miso, Mosi, Sck, Timer> Sync for SPI<Miso, Mosi, Sck, Timer> where
Miso: Sync,
Mosi: Sync,
Sck: Sync,
Timer: Sync,
Miso: Sync,
Mosi: Sync,
Sck: Sync,
Timer: Sync,
Blanket Implementations
impl<T> From<T> for T[src]
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<W, S> Transfer<W> for S where
S: Default<W>,
W: Clone, [src]
S: Default<W>,
W: Clone,
type Error = <S as FullDuplex<W>>::Error
Error type
fn transfer(
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>[src]
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>
impl<W, S> Write<W> for S where
S: Default<W>,
W: Clone, [src]
S: Default<W>,
W: Clone,
type Error = <S as FullDuplex<W>>::Error
Error type