pub trait IsPad: AnyPin {
    type Sercom: Sercom;
    type PadNum: PadNum;
}
Expand description

Type class for Pins configured as SERCOM pads

This trait serves as both a type class for Pins configured as SERCOM pads and as a type-level function mapping each Pin type to its corresponding Sercom and PadNum.

Required Associated Types§

Implementors§

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA00, Alternate<D>>

§

type Sercom = SERCOM1

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA01, Alternate<D>>

§

type Sercom = SERCOM1

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA04, Alternate<D>>

§

type Sercom = SERCOM0

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA05, Alternate<D>>

§

type Sercom = SERCOM0

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA06, Alternate<D>>

§

type Sercom = SERCOM0

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA07, Alternate<D>>

§

type Sercom = SERCOM0

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA08, Alternate<C>>

§

type Sercom = SERCOM0

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA08, Alternate<D>>

§

type Sercom = SERCOM2

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA09, Alternate<C>>

§

type Sercom = SERCOM0

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA09, Alternate<D>>

§

type Sercom = SERCOM2

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA10, Alternate<C>>

§

type Sercom = SERCOM0

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA10, Alternate<D>>

§

type Sercom = SERCOM2

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA11, Alternate<C>>

§

type Sercom = SERCOM0

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA11, Alternate<D>>

§

type Sercom = SERCOM2

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA12, Alternate<C>>

§

type Sercom = SERCOM2

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA12, Alternate<D>>

§

type Sercom = SERCOM4

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA13, Alternate<C>>

§

type Sercom = SERCOM2

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA13, Alternate<D>>

§

type Sercom = SERCOM4

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA14, Alternate<C>>

§

type Sercom = SERCOM2

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA14, Alternate<D>>

§

type Sercom = SERCOM4

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA15, Alternate<C>>

§

type Sercom = SERCOM2

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA15, Alternate<D>>

§

type Sercom = SERCOM4

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA16, Alternate<C>>

§

type Sercom = SERCOM1

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA16, Alternate<D>>

§

type Sercom = SERCOM3

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA17, Alternate<C>>

§

type Sercom = SERCOM1

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA17, Alternate<D>>

§

type Sercom = SERCOM3

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA18, Alternate<C>>

§

type Sercom = SERCOM1

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA18, Alternate<D>>

§

type Sercom = SERCOM3

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA19, Alternate<C>>

§

type Sercom = SERCOM1

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA19, Alternate<D>>

§

type Sercom = SERCOM3

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA20, Alternate<C>>

§

type Sercom = SERCOM5

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA20, Alternate<D>>

§

type Sercom = SERCOM3

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA21, Alternate<C>>

§

type Sercom = SERCOM5

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA21, Alternate<D>>

§

type Sercom = SERCOM3

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA22, Alternate<C>>

§

type Sercom = SERCOM3

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA22, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA23, Alternate<C>>

§

type Sercom = SERCOM3

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA23, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA24, Alternate<C>>

§

type Sercom = SERCOM3

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA24, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA25, Alternate<C>>

§

type Sercom = SERCOM3

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA25, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA30, Alternate<D>>

§

type Sercom = SERCOM1

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PA31, Alternate<D>>

§

type Sercom = SERCOM1

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB00, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB01, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB02, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB03, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB08, Alternate<D>>

§

type Sercom = SERCOM4

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB09, Alternate<D>>

§

type Sercom = SERCOM4

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB10, Alternate<D>>

§

type Sercom = SERCOM4

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB11, Alternate<D>>

§

type Sercom = SERCOM4

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB12, Alternate<C>>

§

type Sercom = SERCOM4

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB13, Alternate<C>>

§

type Sercom = SERCOM4

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB14, Alternate<C>>

§

type Sercom = SERCOM4

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB15, Alternate<C>>

§

type Sercom = SERCOM4

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB16, Alternate<C>>

§

type Sercom = SERCOM5

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB17, Alternate<C>>

§

type Sercom = SERCOM5

§

type PadNum = Pad1

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB22, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad2

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB23, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad3

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB30, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad0

source§

impl IsPad for sodaq_sara_aff::gpio::v2::Pin<PB31, Alternate<D>>

§

type Sercom = SERCOM5

§

type PadNum = Pad1

source§

impl<I, M> IsPad for sodaq_sara_aff::gpio::Pin<I, M>where I: PinId, M: PinMode, Pin<I, M>: AnyPin, Pin<I, M>: IsPad,

Extend implementations of IsPad from v2::Pins to v1::Pins

§

type Sercom = <Pin<I, M> as IsPad>::Sercom

§

type PadNum = <Pin<I, M> as IsPad>::PadNum