embassy-stm32

Crates

git

Versions

stm32h747ig-cm7

Flavors

Skip to main content

ChannelCfg

Trait ChannelCfg 

Source
pub trait ChannelCfg<'d, T: Instance, M: TransceiverMarker> {
    type Presence: PinSet;

    // Required method
    fn into_parts(
        self,
    ) -> (<Self::Presence as PinSet>::Datin<'d>, <Self::Presence as PinSet>::Ckin<'d>);
}
Expand description

Accepted by one configure_pins slot. Presence is the type-level pin state that flows into the split.

Required Associated Types§

Source

type Presence: PinSet

Pin presence of the declaring transceiver.

Required Methods§

Source

fn into_parts( self, ) -> (<Self::Presence as PinSet>::Datin<'d>, <Self::Presence as PinSet>::Ckin<'d>)

Consume the token, yielding its pins in storage form (() for absent, Flex for present - no unwrapping anywhere).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§