embassy-stm32

Crates

git

Versions

stm32g474qb

Flavors

MckPin

Trait MckPin 

Source
pub trait MckPin<T: Instance>: Pin {
    // Required method
    fn af_num(&self) -> u8;
}
Expand description

MckPin pin trait

Required Methods§

Source

fn af_num(&self) -> u8

Get the AF number needed to use this pin as MckPin

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 MckPin<SPI2> for PA8

Available on non-afio only.
Source§

impl MckPin<SPI2> for PC6

Available on non-afio only.
Source§

impl MckPin<SPI3> for PA9

Available on non-afio only.
Source§

impl MckPin<SPI3> for PC7

Available on non-afio only.