pub struct RMT { /* private fields */ }

Implementations§

source§

impl RMT

source

pub unsafe fn steal() -> RMT

Unsafely create an instance of this peripheral out of thin air.

Safety

You must ensure that you’re only using one instance of this type at a time.

source

pub const PTR: *const <RMT as Deref>::Target = {0x60016000 as *const <esp32c3::RMT as core::ops::Deref>::Target}

Pointer to the register block

source

pub const fn ptr() -> *const <RMT as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

pub fn ch2_rx_lim(&self) -> &Reg<CH_RX_LIM_SPEC>

0x60 - RMT_CH2_RX_LIM_REG.

pub fn ch3_rx_lim(&self) -> &Reg<CH_RX_LIM_SPEC>

0x64 - RMT_CH2_RX_LIM_REG.

Trait Implementations§

source§

impl Debug for RMT

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for RMT

§

type Target = <RMT as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &<RMT as Deref>::Target

Dereferences the value.
source§

impl DerefMut for RMT

source§

fn deref_mut(&mut self) -> &mut <RMT as Deref>::Target

Mutably dereferences the value.
source§

impl Peripheral for &mut RMT

§

type P = RMT

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <&mut RMT as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where Self: 'a,

Convert a value into a PeripheralRef. Read more
source§

impl Peripheral for RMT

§

type P = RMT

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <RMT as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where Self: 'a,

Convert a value into a PeripheralRef. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for RMT

§

impl Send for RMT

§

impl Sync for RMT

§

impl Unpin for RMT

§

impl UnwindSafe for RMT

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.