Trait serpente::sercom::v1::CompatiblePad [−][src]
Expand description
Type class to improve compatibility between v1
and v2
SERCOM pad types
The sercom::v1::pads
module uses a wrapper Pad
type to represent
SERCOM pads. The v2::pad
module, on the other hand, does not use a
wrapper. Instead, it labels each correctly-configured v2::Pin
with the
IsPad
trait.
This trait forms a type class over both. It allows the v1::uart
,
v1::spi
and v1::i2c
modules to accept both v1
and v2
pad types.