Expand description
Type-level function mapping PinId
s to SERCOM-pad-related types
For SAMD21 and SAMx5x chips, a Sercom
and a PinId
is enough
information to uniquely identify a pad, so this trait returns the
corresponding PadNum
and PinMode
.
For SAMD11 chips, on the other hand, some PinId
s can serve as two
different PadNum
s for the same Sercom
. For these chips, GetPad
requires a second type parameter to specify the PadNum
and only returns
the PinMode
.
See the documentation on type-level functions for more details.