Struct sodaq_one::sercom::v1::spi::Padout [−][src]
pub struct Padout<S, MISO, MOSI, SCLK> where
S: Sercom, { /* fields omitted */ }
👎 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
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,
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,
👎 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.
👎 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.
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,
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