[−][src]Struct pygamer::sercom::SPIMaster1Padout
A pad mapping configuration for the SERCOM in SPI master mode.
This type can only be constructed using the From implementations in this module, which are restricted to valid configurations.
Defines which sercom pad is mapped to which SPI function.
Trait Implementations
impl<PIN0, PIN1, PIN2> DipoDopo for SPIMaster1Padout<Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>> where
PIN0: Map<Sercom1, Pad2>,
PIN1: Map<Sercom1, Pad3>,
PIN2: Map<Sercom1, Pad1>,
[src]
PIN0: Map<Sercom1, Pad2>,
PIN1: Map<Sercom1, Pad3>,
PIN2: Map<Sercom1, Pad1>,
impl<PIN0, PIN1, PIN2> DipoDopo for SPIMaster1Padout<Pad<Sercom1, Pad0, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>> where
PIN0: Map<Sercom1, Pad0>,
PIN1: Map<Sercom1, Pad3>,
PIN2: Map<Sercom1, Pad1>,
[src]
PIN0: Map<Sercom1, Pad0>,
PIN1: Map<Sercom1, Pad3>,
PIN2: Map<Sercom1, Pad1>,
impl<PIN0, PIN1, PIN2> DipoDopo for SPIMaster1Padout<Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>> where
PIN0: Map<Sercom1, Pad2>,
PIN1: Map<Sercom1, Pad0>,
PIN2: Map<Sercom1, Pad1>,
[src]
PIN0: Map<Sercom1, Pad2>,
PIN1: Map<Sercom1, Pad0>,
PIN2: Map<Sercom1, Pad1>,
impl<PIN0, PIN1, PIN2> DipoDopo for SPIMaster1Padout<Pad<Sercom1, Pad3, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>> where
PIN0: Map<Sercom1, Pad3>,
PIN1: Map<Sercom1, Pad0>,
PIN2: Map<Sercom1, Pad1>,
[src]
PIN0: Map<Sercom1, Pad3>,
PIN1: Map<Sercom1, Pad0>,
PIN2: Map<Sercom1, Pad1>,
impl<PIN0, PIN1, PIN2> From<(Pad<Sercom1, Pad0, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>)> for SPIMaster1Padout<Pad<Sercom1, Pad0, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>> where
PIN0: Map<Sercom1, Pad0>,
PIN1: Map<Sercom1, Pad3>,
PIN2: Map<Sercom1, Pad1>,
[src]
PIN0: Map<Sercom1, Pad0>,
PIN1: Map<Sercom1, Pad3>,
PIN2: Map<Sercom1, Pad1>,
Convert from a tuple of (MISO, MOSI, SCK) to SPIMasterXPadout
pub fn from(
pads: (Pad<Sercom1, Pad0, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>)
) -> SPIMaster1Padout<Pad<Sercom1, Pad0, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>>
[src]
pads: (Pad<Sercom1, Pad0, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>)
) -> SPIMaster1Padout<Pad<Sercom1, Pad0, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>>
impl<PIN0, PIN1, PIN2> From<(Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>)> for SPIMaster1Padout<Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>> where
PIN0: Map<Sercom1, Pad2>,
PIN1: Map<Sercom1, Pad0>,
PIN2: Map<Sercom1, Pad1>,
[src]
PIN0: Map<Sercom1, Pad2>,
PIN1: Map<Sercom1, Pad0>,
PIN2: Map<Sercom1, Pad1>,
Convert from a tuple of (MISO, MOSI, SCK) to SPIMasterXPadout
pub fn from(
pads: (Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>)
) -> SPIMaster1Padout<Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>>
[src]
pads: (Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>)
) -> SPIMaster1Padout<Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>>
impl<PIN0, PIN1, PIN2> From<(Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>)> for SPIMaster1Padout<Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>> where
PIN0: Map<Sercom1, Pad2>,
PIN1: Map<Sercom1, Pad3>,
PIN2: Map<Sercom1, Pad1>,
[src]
PIN0: Map<Sercom1, Pad2>,
PIN1: Map<Sercom1, Pad3>,
PIN2: Map<Sercom1, Pad1>,
Convert from a tuple of (MISO, MOSI, SCK) to SPIMasterXPadout
pub fn from(
pads: (Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>)
) -> SPIMaster1Padout<Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>>
[src]
pads: (Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>)
) -> SPIMaster1Padout<Pad<Sercom1, Pad2, PIN0>, Pad<Sercom1, Pad3, PIN1>, Pad<Sercom1, Pad1, PIN2>>
impl<PIN0, PIN1, PIN2> From<(Pad<Sercom1, Pad3, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>)> for SPIMaster1Padout<Pad<Sercom1, Pad3, PIN0>, Pad<Sercom1, Pad0, PIN1>, Pad<Sercom1, Pad1, PIN2>> where
PIN0: Map<Sercom1, Pad3>,
PIN1: Map<Sercom1, Pad0>,
PIN2: Map<Sercom1, Pad1>,
[src]
PIN0: Map<Sercom1, Pad3>,
PIN1: Map<Sercom1, Pad0>,
PIN2: Map<Sercom1, Pad1>,
Convert from a tuple of (MISO, MOSI, SCK) to SPIMasterXPadout
Auto Trait Implementations
impl<MISO, MOSI, SCK> Send for SPIMaster1Padout<MISO, MOSI, SCK> where
MISO: Send,
MOSI: Send,
SCK: Send,
[src]
MISO: Send,
MOSI: Send,
SCK: Send,
impl<MISO, MOSI, SCK> Sync for SPIMaster1Padout<MISO, MOSI, SCK> where
MISO: Sync,
MOSI: Sync,
SCK: Sync,
[src]
MISO: Sync,
MOSI: Sync,
SCK: Sync,
impl<MISO, MOSI, SCK> Unpin for SPIMaster1Padout<MISO, MOSI, SCK> where
MISO: Unpin,
MOSI: Unpin,
SCK: Unpin,
[src]
MISO: Unpin,
MOSI: Unpin,
SCK: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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
type Output = T
Should always be Self
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,