embassy-stm32

Crates

git

Versions

stm32g031g4

Flavors

CommunicationMode

Trait CommunicationMode 

Source
pub trait CommunicationMode: SealedMode {
    const MASTER: Mstr;
}
Expand description

Trait for SPI communication mode operations.

Required Associated Constants§

Source

const MASTER: Mstr

Spi communication mode

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl CommunicationMode for Master

Source§

const MASTER: Mstr = vals::Mstr::MASTER

Source§

impl CommunicationMode for Slave

Source§

const MASTER: Mstr = vals::Mstr::SLAVE