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> RxChannelCreator<'d, Channel<Blocking, 0>> for ChannelCreator<Blocking, 0>
impl<'d> RxChannelCreator<'d, Channel<Blocking, 0>> for ChannelCreator<Blocking, 0>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreator<'d, Channel<Blocking, 1>> for ChannelCreator<Blocking, 1>
impl<'d> RxChannelCreator<'d, Channel<Blocking, 1>> for ChannelCreator<Blocking, 1>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreator<'d, Channel<Blocking, 2>> for ChannelCreator<Blocking, 2>
impl<'d> RxChannelCreator<'d, Channel<Blocking, 2>> for ChannelCreator<Blocking, 2>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreator<'d, Channel<Blocking, 3>> for ChannelCreator<Blocking, 3>
impl<'d> RxChannelCreator<'d, Channel<Blocking, 3>> for ChannelCreator<Blocking, 3>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreator<'d, Channel<Blocking, 4>> for ChannelCreator<Blocking, 4>
impl<'d> RxChannelCreator<'d, Channel<Blocking, 4>> for ChannelCreator<Blocking, 4>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreator<'d, Channel<Blocking, 5>> for ChannelCreator<Blocking, 5>
impl<'d> RxChannelCreator<'d, Channel<Blocking, 5>> for ChannelCreator<Blocking, 5>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreator<'d, Channel<Blocking, 6>> for ChannelCreator<Blocking, 6>
impl<'d> RxChannelCreator<'d, Channel<Blocking, 6>> for ChannelCreator<Blocking, 6>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreator<'d, Channel<Blocking, 7>> for ChannelCreator<Blocking, 7>
impl<'d> RxChannelCreator<'d, Channel<Blocking, 7>> for ChannelCreator<Blocking, 7>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 0>> for ChannelCreator<Async, 0>
impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 0>> for ChannelCreator<Async, 0>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 1>> for ChannelCreator<Async, 1>
impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 1>> for ChannelCreator<Async, 1>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 2>> for ChannelCreator<Async, 2>
impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 2>> for ChannelCreator<Async, 2>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 3>> for ChannelCreator<Async, 3>
impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 3>> for ChannelCreator<Async, 3>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 4>> for ChannelCreator<Async, 4>
impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 4>> for ChannelCreator<Async, 4>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 5>> for ChannelCreator<Async, 5>
impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 5>> for ChannelCreator<Async, 5>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 6>> for ChannelCreator<Async, 6>
impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 6>> for ChannelCreator<Async, 6>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 7>> for ChannelCreator<Async, 7>
impl<'d> RxChannelCreatorAsync<'d, Channel<Async, 7>> for ChannelCreator<Async, 7>
Source§fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralInput<'d>,
config: RxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the RX channel
Source§impl<'d> TxChannelCreator<'d, Channel<Blocking, 0>> for ChannelCreator<Blocking, 0>
impl<'d> TxChannelCreator<'d, Channel<Blocking, 0>> for ChannelCreator<Blocking, 0>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreator<'d, Channel<Blocking, 1>> for ChannelCreator<Blocking, 1>
impl<'d> TxChannelCreator<'d, Channel<Blocking, 1>> for ChannelCreator<Blocking, 1>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreator<'d, Channel<Blocking, 2>> for ChannelCreator<Blocking, 2>
impl<'d> TxChannelCreator<'d, Channel<Blocking, 2>> for ChannelCreator<Blocking, 2>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreator<'d, Channel<Blocking, 3>> for ChannelCreator<Blocking, 3>
impl<'d> TxChannelCreator<'d, Channel<Blocking, 3>> for ChannelCreator<Blocking, 3>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreator<'d, Channel<Blocking, 4>> for ChannelCreator<Blocking, 4>
impl<'d> TxChannelCreator<'d, Channel<Blocking, 4>> for ChannelCreator<Blocking, 4>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreator<'d, Channel<Blocking, 5>> for ChannelCreator<Blocking, 5>
impl<'d> TxChannelCreator<'d, Channel<Blocking, 5>> for ChannelCreator<Blocking, 5>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreator<'d, Channel<Blocking, 6>> for ChannelCreator<Blocking, 6>
impl<'d> TxChannelCreator<'d, Channel<Blocking, 6>> for ChannelCreator<Blocking, 6>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreator<'d, Channel<Blocking, 7>> for ChannelCreator<Blocking, 7>
impl<'d> TxChannelCreator<'d, Channel<Blocking, 7>> for ChannelCreator<Blocking, 7>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 0>> for ChannelCreator<Async, 0>
impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 0>> for ChannelCreator<Async, 0>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 1>> for ChannelCreator<Async, 1>
impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 1>> for ChannelCreator<Async, 1>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 2>> for ChannelCreator<Async, 2>
impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 2>> for ChannelCreator<Async, 2>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 3>> for ChannelCreator<Async, 3>
impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 3>> for ChannelCreator<Async, 3>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 4>> for ChannelCreator<Async, 4>
impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 4>> for ChannelCreator<Async, 4>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 5>> for ChannelCreator<Async, 5>
impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 5>> for ChannelCreator<Async, 5>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 6>> for ChannelCreator<Async, 6>
impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 6>> for ChannelCreator<Async, 6>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel
Source§impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 7>> for ChannelCreator<Async, 7>
impl<'d> TxChannelCreatorAsync<'d, Channel<Async, 7>> for ChannelCreator<Async, 7>
Source§fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
fn configure(
self,
pin: impl PeripheralOutput<'d>,
config: TxChannelConfig,
) -> Result<T, Error>where
Self: Sized,
Configure the TX channel