[−][src]Enum arduino_mkrzero::sercom::SPI0Pinout
When configured for SPI, in addition to the normal Sercom pad mapping, the SPI peripheral allows those pads to be assigned to different combinations of DI (data-in), DO (data-out), SCK (clock) and SS (slave select) functions. The SPIXPinOut types represent concrete pad mappings for a given SPI Instance. For slaves, DI is the MOSI function and DO is the MISO function. For masters, DI is the MISO function and DO is the MOSI function. The slave configurations all require an SS pin and are constructed using the enum variants ending with SS. The master confiugrations do not require an SS pin and are constructed using the other variants. The SPI master hardware has support for automatically managing the SS line to enable a slave, but this interface does not expose that functionality. The variant names refer to the Data-in-Data-out configuration that is used to configure the SPI peripheral.
Variants
Dipo0Dopo1SS
Construct a slave pinout with mosi assigned to pad0, miso pad2, sck pad3 and ss to pad1.
Fields of Dipo0Dopo1SS
Dipo0Dopo2SS
Fields of Dipo0Dopo2SS
Dipo2Dopo3SS
Fields of Dipo2Dopo3SS
Dipo3Dopo0SS
Fields of Dipo3Dopo0SS
Dipo0Dopo1
Construct a master pinout with miso assigned to pad0, mosi pad2 and sck to pad3
Fields of Dipo0Dopo1
Dipo1Dopo1
Fields of Dipo1Dopo1
Dipo0Dopo2
Fields of Dipo0Dopo2
Dipo1Dopo3
Fields of Dipo1Dopo3
Dipo2Dopo0
Fields of Dipo2Dopo0
Dipo2Dopo2
Fields of Dipo2Dopo2
Dipo2Dopo3
Fields of Dipo2Dopo3
Dipo3Dopo0
Fields of Dipo3Dopo0
Auto Trait Implementations
impl Send for SPI0Pinout
impl Sync for SPI0Pinout
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom 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> TryInto 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, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut 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,