Trait serpente::sercom::v2::spi::OpMode[][src]

pub trait OpMode: Sealed {
    const MODE: MODE_A;
    const MSSEN: bool;
    fn configure(sercom: &RegisterBlock) { ... }
}
Expand description

Type-level enum representing the SPI operating mode

See the documentation on type-level enums for a discussion of the pattern.

The available operating modes are Master, MasterHWSS and Slave. In Master mode, the SS signal must be handled by the user, so SS must be NoneT. In MasterHWSS mode, the hardware drives the SS line, so SomePad is required. In Slave mode, the SS pad is required as well, to indicate when data is valid.

Associated Constants

Corresponding variant from the PAC enum

Bit indicating whether hardware SS control is enabled

Provided methods

Configure the SPI operating mode

Implementors