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 */ }
SPI peripheral operating in master mode
Implementations
impl<SCK, MOSI, MISO, CS, SPI, PINS> 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>,
[src]
impl<SCK, MOSI, MISO, CS, SPI, PINS> 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>,
[src]Trait Implementations
impl<SCK, MOSI, MISO, CS, SPI, PINS> Default<u8> for 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>,
[src]
impl<SCK, MOSI, MISO, CS, SPI, PINS> Default<u8> for 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>,
[src]impl<SCK, MOSI, MISO, CS, SPI, PINS> Default<u8> for 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>,
[src]
impl<SCK, MOSI, MISO, CS, SPI, PINS> Default<u8> for 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>,
[src]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,
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<W, S> Transfer<W> for S where
S: Default<W>,
W: Clone,
[src]
impl<W, S> Transfer<W> for S where
S: Default<W>,
W: Clone,
[src]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]
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>