Struct ChannelCreator

Source
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>

Source

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, 2>> for ChannelCreator<Blocking, 2>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

fn configure( self, pin: impl PeripheralOutput<'d>, config: TxChannelConfig, ) -> Result<T, Error>
where Self: Sized,

Configure the TX channel

Auto Trait Implementations§

§

impl<Dm, const CHANNEL: u8> Freeze for ChannelCreator<Dm, CHANNEL>

§

impl<Dm, const CHANNEL: u8> RefUnwindSafe for ChannelCreator<Dm, CHANNEL>
where Dm: RefUnwindSafe,

§

impl<Dm, const CHANNEL: u8> Send for ChannelCreator<Dm, CHANNEL>
where Dm: Send,

§

impl<Dm, const CHANNEL: u8> Sync for ChannelCreator<Dm, CHANNEL>
where Dm: Sync,

§

impl<Dm, const CHANNEL: u8> Unpin for ChannelCreator<Dm, CHANNEL>
where Dm: Unpin,

§

impl<Dm, const CHANNEL: u8> UnwindSafe for ChannelCreator<Dm, CHANNEL>
where Dm: UnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.