Struct serpente::sercom::v1::spi::Padout

source ·
pub struct Padout<S, MISO, MOSI, SCLK>where
    S: Sercom,{ /* private fields */ }
👎Deprecated since 0.13.0: The sercom::v1::spi module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::spi module instead.
Expand description

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§

source§

impl<S, PAD0, PAD1, PAD2> DipoDopo for Padout<S, PAD0, PAD1, PAD2>where S: Sercom, PAD0: CompatiblePad<Sercom = S>, PAD1: CompatiblePad<Sercom = S>, PAD2: CompatiblePad<Sercom = S>, (<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum, <PAD2 as CompatiblePad>::PadNum): DipoDopo,

source§

const DIPO: u8 = <(PAD0::PadNum, PAD1::PadNum, PAD2::PadNum)>::DIPO

👎Deprecated since 0.13.0: The sercom::v1::spi module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::spi module instead.
source§

const DOPO: u8 = <(PAD0::PadNum, PAD1::PadNum, PAD2::PadNum)>::DOPO

👎Deprecated since 0.13.0: The sercom::v1::spi module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::spi module instead.
source§

fn dipo_dopo(&self) -> (u8, u8)

👎Deprecated since 0.13.0: The sercom::v1::spi module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::spi module instead.
source§

impl<S, PAD0, PAD1, PAD2> From<(PAD0, PAD1, PAD2)> for Padout<S, PAD0, PAD1, PAD2>where S: Sercom, PAD0: CompatiblePad<Sercom = S>, PAD1: CompatiblePad<Sercom = S>, PAD2: CompatiblePad<Sercom = S>, (<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum, <PAD2 as CompatiblePad>::PadNum): DipoDopo,

Convert from a tuple of (MISO, MOSI, SCK) to SPIMasterXPadout

source§

fn from(pads: (PAD0, PAD1, PAD2)) -> Padout<S, PAD0, PAD1, PAD2>

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<S, MISO, MOSI, SCLK> RefUnwindSafe for Padout<S, MISO, MOSI, SCLK>where MISO: RefUnwindSafe, MOSI: RefUnwindSafe, S: RefUnwindSafe, SCLK: RefUnwindSafe,

§

impl<S, MISO, MOSI, SCLK> Send for Padout<S, MISO, MOSI, SCLK>where MISO: Send, MOSI: Send, S: Send, SCLK: Send,

§

impl<S, MISO, MOSI, SCLK> Sync for Padout<S, MISO, MOSI, SCLK>where MISO: Sync, MOSI: Sync, S: Sync, SCLK: Sync,

§

impl<S, MISO, MOSI, SCLK> Unpin for Padout<S, MISO, MOSI, SCLK>where MISO: Unpin, MOSI: Unpin, S: Unpin, SCLK: Unpin,

§

impl<S, MISO, MOSI, SCLK> UnwindSafe for Padout<S, MISO, MOSI, SCLK>where MISO: UnwindSafe, MOSI: UnwindSafe, S: UnwindSafe, SCLK: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.