Trait TxChannelCreator

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

Creates a TX channel

Required Associated Types§

Source

type Raw: TxChannelInternal

Type of the raw channel access token

Provided Methods§

Source

fn configure_tx( self, pin: impl PeripheralOutput<'d>, config: TxChannelConfig, ) -> Result<Channel<Dm, Self::Raw>, Error>
where Self: Sized,

Configure the TX 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> TxChannelCreator<'d, Dm> for ChannelCreator<Dm, 0>
where Dm: DriverMode,

Source§

impl<'d, Dm> TxChannelCreator<'d, Dm> for ChannelCreator<Dm, 1>
where Dm: DriverMode,