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

pub trait CharSize: Sealed {
    type Word: 'static;

    const BITS: u8;
    fn configure(sercom: &RegisterBlock) { ... }
}
Expand description

Type-level enum representing the SPI character size

This trait acts as both a type-level enum, forming a type class for character sizes, as well as a type-level function mapping the corresponding word size.

The SPI character size affects the word size for the embedded HAL traits. Eight-bit transactions use a u8 word, while nine-bit transactions use a u16 word.

Associated Types

Word size for the character size

Associated Constants

Register it pattern for the corresponding CharSize

Provided methods

Configure the LENGTH register and enable the LENGTH counter

Implementors