esp_hal::rmt

Struct ChannelCreator

Source
pub struct ChannelCreator<M, const CHANNEL: u8>
where M: Mode,
{ /* private fields */ }
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<M, const CHANNEL: u8> Freeze for ChannelCreator<M, CHANNEL>

§

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

§

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

§

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

§

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

§

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

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.