pub struct ChannelCreator<Dm, const CHANNEL: u8>where
Dm: DriverMode,{ /* private fields */ }
Available on crate feature
unstable
only.Expand description
RMT Channel Creator
Implementations§
Source§impl<Dm: DriverMode, const CHANNEL: u8> ChannelCreator<Dm, CHANNEL>
impl<Dm: DriverMode, const CHANNEL: u8> ChannelCreator<Dm, CHANNEL>
Sourcepub unsafe fn steal() -> ChannelCreator<Dm, CHANNEL>
pub unsafe fn steal() -> ChannelCreator<Dm, CHANNEL>
Unsafely steal a channel creator instance.
§Safety
Circumvents HAL ownership and safety guarantees and allows creating multiple handles to the same peripheral structure.
Trait Implementations§
Source§impl<'d, Dm> RxChannelCreator<'d, Dm> for ChannelCreator<Dm, 2>where
Dm: DriverMode,
impl<'d, Dm> RxChannelCreator<'d, Dm> for ChannelCreator<Dm, 2>where
Dm: DriverMode,
Source§type Raw = ConstChannelAccess<Rx, 2>
type Raw = ConstChannelAccess<Rx, 2>
Type of the raw channel access token
Source§fn configure_rx(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<Channel<Dm, Self::Raw>, Error>where
Self: Sized,
fn configure_rx(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<Channel<Dm, Self::Raw>, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d, Dm> RxChannelCreator<'d, Dm> for ChannelCreator<Dm, 3>where
Dm: DriverMode,
impl<'d, Dm> RxChannelCreator<'d, Dm> for ChannelCreator<Dm, 3>where
Dm: DriverMode,
Source§type Raw = ConstChannelAccess<Rx, 3>
type Raw = ConstChannelAccess<Rx, 3>
Type of the raw channel access token
Source§fn configure_rx(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<Channel<Dm, Self::Raw>, Error>where
Self: Sized,
fn configure_rx(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<Channel<Dm, Self::Raw>, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d, Dm> TxChannelCreator<'d, Dm> for ChannelCreator<Dm, 0>where
Dm: DriverMode,
impl<'d, Dm> TxChannelCreator<'d, Dm> for ChannelCreator<Dm, 0>where
Dm: DriverMode,
Source§type Raw = ConstChannelAccess<Tx, 0>
type Raw = ConstChannelAccess<Tx, 0>
Type of the raw channel access token
Source§fn configure_tx(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<Channel<Dm, Self::Raw>, Error>where
Self: Sized,
fn configure_tx(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<Channel<Dm, Self::Raw>, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d, Dm> TxChannelCreator<'d, Dm> for ChannelCreator<Dm, 1>where
Dm: DriverMode,
impl<'d, Dm> TxChannelCreator<'d, Dm> for ChannelCreator<Dm, 1>where
Dm: DriverMode,
Source§type Raw = ConstChannelAccess<Tx, 1>
type Raw = ConstChannelAccess<Tx, 1>
Type of the raw channel access token
Source§fn configure_tx(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<Channel<Dm, Self::Raw>, Error>where
Self: Sized,
fn configure_tx(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<Channel<Dm, Self::Raw>, Error>where
Self: Sized,
Configure the TX channel