[−][src]Struct lpc55s6x_hal::drivers::spi::SpiMaster
SPI peripheral operating in master mode
Methods
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]
SCK: PinId,
MOSI: PinId,
MISO: PinId,
CS: PinId,
SPI: Spi,
PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>,
pub fn new<Speed: Into<Hertz>>(
spi: SPI,
pins: PINS,
speed: Speed,
mode: Mode
) -> Self
[src]
spi: SPI,
pins: PINS,
speed: Speed,
mode: Mode
) -> Self
pub fn release(self) -> (SPI, PINS)
[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]
SCK: PinId,
MOSI: PinId,
MISO: PinId,
CS: PinId,
SPI: Spi,
PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>,
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]
SCK: PinId,
MOSI: PinId,
MISO: PinId,
CS: PinId,
SPI: Spi,
PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>,
impl<SCK, MOSI, MISO, CS, SPI, PINS> FullDuplex<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]
SCK: PinId,
MOSI: PinId,
MISO: PinId,
CS: PinId,
SPI: Spi,
PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>,
Auto Trait Implementations
impl<SCK, MOSI, MISO, CS, SPI, PINS> Unpin for SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
CS: Unpin,
MISO: Unpin,
MOSI: Unpin,
PINS: Unpin,
SCK: Unpin,
SPI: Unpin,
CS: Unpin,
MISO: Unpin,
MOSI: Unpin,
PINS: Unpin,
SCK: Unpin,
SPI: Unpin,
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,
CS: Send,
MISO: Send,
MOSI: Send,
PINS: Send,
SCK: Send,
SPI: Send,
impl<SCK, MOSI, MISO, CS, SPI, PINS> Sync for SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
CS: Sync,
MISO: Sync,
MOSI: Sync,
PINS: Sync,
SCK: Sync,
SPI: Sync,
CS: Sync,
MISO: Sync,
MOSI: Sync,
PINS: Sync,
SCK: Sync,
SPI: 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<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]
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