Trait RxChannelCreator

Source
pub trait RxChannelCreator<'d, Dm>
where Dm: DriverMode,
{ type Raw: RxChannelInternal; // Provided method fn configure_rx( self, pin: impl PeripheralInput<'d>, config: RxChannelConfig, ) -> Result<Channel<Dm, Self::Raw>, Error> where Self: Sized { ... } }
Available on crate feature unstable only.
Expand description

Creates a RX channel

Required Associated Types§

Source

type Raw: RxChannelInternal

Type of the raw channel access token

Provided Methods§

Source

fn configure_rx( self, pin: impl PeripheralInput<'d>, config: RxChannelConfig, ) -> Result<Channel<Dm, Self::Raw>, Error>
where Self: Sized,

Configure the RX channel

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<'d, Dm> RxChannelCreator<'d, Dm> for ChannelCreator<Dm, 2>
where Dm: DriverMode,

Source§

impl<'d, Dm> RxChannelCreator<'d, Dm> for ChannelCreator<Dm, 3>
where Dm: DriverMode,