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

Trait Implementations§

Source§

impl<'d, P> RxChannelCreator<'d, Channel<Blocking, 2>, P> for ChannelCreator<Blocking, 2>
where P: PeripheralInput,

Source§

fn configure( self, pin: impl Peripheral<P = P> + 'd, config: RxChannelConfig, ) -> Result<T, Error>
where Self: Sized,

Configure the RX channel
Source§

impl<'d, P> RxChannelCreator<'d, Channel<Blocking, 3>, P> for ChannelCreator<Blocking, 3>
where P: PeripheralInput,

Source§

fn configure( self, pin: impl Peripheral<P = P> + 'd, config: RxChannelConfig, ) -> Result<T, Error>
where Self: Sized,

Configure the RX channel
Source§

impl<'d, P> RxChannelCreatorAsync<'d, Channel<Async, 2>, P> for ChannelCreator<Async, 2>
where P: PeripheralInput,

Source§

fn configure( self, pin: impl Peripheral<P = P> + 'd, config: RxChannelConfig, ) -> Result<T, Error>
where Self: Sized,

Configure the RX channel
Source§

impl<'d, P> RxChannelCreatorAsync<'d, Channel<Async, 3>, P> for ChannelCreator<Async, 3>
where P: PeripheralInput,

Source§

fn configure( self, pin: impl Peripheral<P = P> + 'd, config: RxChannelConfig, ) -> Result<T, Error>
where Self: Sized,

Configure the RX channel
Source§

impl<'d, P> TxChannelCreator<'d, Channel<Blocking, 0>, P> for ChannelCreator<Blocking, 0>

Source§

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

Configure the TX channel
Source§

impl<'d, P> TxChannelCreator<'d, Channel<Blocking, 1>, P> for ChannelCreator<Blocking, 1>

Source§

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

Configure the TX channel
Source§

impl<'d, P> TxChannelCreatorAsync<'d, Channel<Async, 0>, P> for ChannelCreator<Async, 0>

Source§

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

Configure the TX channel
Source§

impl<'d, P> TxChannelCreatorAsync<'d, Channel<Async, 1>, P> for ChannelCreator<Async, 1>

Source§

fn configure( self, pin: impl Peripheral<P = P> + '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.

§

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.