Struct lpc55_hal::drivers::spi::SpiMaster [−][src]
pub struct SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
SCK: PinId,
MOSI: PinId,
MISO: PinId,
CS: PinId,
SPI: Spi,
PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>, { /* fields omitted */ }
Expand description
SPI peripheral operating in master mode
Implementations
Trait Implementations
Auto Trait Implementations
impl<SCK, MOSI, MISO, CS, SPI, PINS> Send for SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
CS: Send,
MISO: Send,
MOSI: Send,
PINS: Send,
SCK: Send,
SPI: Send,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
type Error = <S as FullDuplex<W>>::Error
type Error = <S as FullDuplex<W>>::Error
Error type
pub fn transfer(
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>
[src]
pub fn transfer(
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>
[src]Sends words
to the slave. Returns the words
received from the slave