[−][src]Struct lpc55_hal::drivers::spi::SpiMaster
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][−]
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> 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,
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,
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,
impl<T> From<T> for T[src][+]
impl<T, U> Into<U> for T where
U: From<T>, [src][+]
U: From<T>,
impl<T> Same<T> for T[src]
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src][+]
U: TryFrom<T>,
impl<W, S> Write<W> for S where
S: Default<W>,
W: Clone, [src][+]
S: Default<W>,
W: Clone,