Trait grand_central_m4::sercom::v2::spi::ValidConfig[][src]

pub trait ValidConfig: AnyConfig { }
Expand description

Marker trait for valid SPI Configurations

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. When in Master OpMode, the SS pad must be NoneT, while in MasterHWSS or Slave OpMode, the SS pad must be SomePad.

Implementors