Trait serpente::sercom::v2::spi::ValidConfig [−][src]
pub trait ValidConfig: AnyConfig { }
Expand description
Marker trait for valid SPI Config
urations
A functional SPI peripheral must have, at a minimum, an SCK pad and
either a Data In or a Data Out pad. Dependeing on the
OpMode
, an SS pad may also be required.
The ValidConfig
trait is implemented only for valid combinations of
Pads
and OpMode
. No Config
is valid if the SCK pad is
NoneT
or if both the Data In and Data Out pads are NoneT
. And when
OpMode
is MasterHWSS
or Slave
, the SS pad must not be NoneT
either.