Struct esp32_hal::peripherals::RMT

source ·
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 = {0x3ff56000 as *const <esp32::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>§

source

pub fn chdata(&self, n: usize) -> &Reg<CHDATA_SPEC>

0x00..0x20 -

source

pub fn chdata_iter(&self) -> impl Iterator<Item = &Reg<CHDATA_SPEC>>

Iterator for array of: 0x00..0x20 -

source

pub fn ch0data(&self) -> &Reg<CHDATA_SPEC>

0x00 - CH0DATA

source

pub fn ch1data(&self) -> &Reg<CHDATA_SPEC>

0x04 - CH1DATA

source

pub fn ch2data(&self) -> &Reg<CHDATA_SPEC>

0x08 - CH2DATA

source

pub fn ch3data(&self) -> &Reg<CHDATA_SPEC>

0x0c - CH3DATA

source

pub fn ch4data(&self) -> &Reg<CHDATA_SPEC>

0x10 - CH4DATA

source

pub fn ch5data(&self) -> &Reg<CHDATA_SPEC>

0x14 - CH5DATA

source

pub fn ch6data(&self) -> &Reg<CHDATA_SPEC>

0x18 - CH6DATA

source

pub fn ch7data(&self) -> &Reg<CHDATA_SPEC>

0x1c - CH7DATA

source

pub fn chconf0(&self, n: usize) -> &Reg<CHCONF0_SPEC>

0x20..0x40 -

source

pub fn chconf0_iter(&self) -> impl Iterator<Item = &Reg<CHCONF0_SPEC>>

Iterator for array of: 0x20..0x40 -

source

pub fn ch0conf0(&self) -> &Reg<CHCONF0_SPEC>

0x20 - CH0CONF0

source

pub fn ch1conf0(&self) -> &Reg<CHCONF0_SPEC>

0x28 - CH1CONF0

source

pub fn ch2conf0(&self) -> &Reg<CHCONF0_SPEC>

0x30 - CH2CONF0

source

pub fn ch3conf0(&self) -> &Reg<CHCONF0_SPEC>

0x38 - CH3CONF0

source

pub fn ch4conf0(&self) -> &Reg<CHCONF0_SPEC>

0x40 - CH4CONF0

source

pub fn ch5conf0(&self) -> &Reg<CHCONF0_SPEC>

0x48 - CH5CONF0

source

pub fn ch6conf0(&self) -> &Reg<CHCONF0_SPEC>

0x50 - CH6CONF0

source

pub fn ch7conf0(&self) -> &Reg<CHCONF0_SPEC>

0x58 - CH7CONF0

source

pub fn chconf1(&self, n: usize) -> &Reg<CHCONF1_SPEC>

0x24..0x44 -

source

pub fn chconf1_iter(&self) -> impl Iterator<Item = &Reg<CHCONF1_SPEC>>

Iterator for array of: 0x24..0x44 -

source

pub fn ch0conf1(&self) -> &Reg<CHCONF1_SPEC>

0x24 - CH0CONF1

source

pub fn ch1conf1(&self) -> &Reg<CHCONF1_SPEC>

0x2c - CH1CONF1

source

pub fn ch2conf1(&self) -> &Reg<CHCONF1_SPEC>

0x34 - CH2CONF1

source

pub fn ch3conf1(&self) -> &Reg<CHCONF1_SPEC>

0x3c - CH3CONF1

source

pub fn ch4conf1(&self) -> &Reg<CHCONF1_SPEC>

0x44 - CH4CONF1

source

pub fn ch5conf1(&self) -> &Reg<CHCONF1_SPEC>

0x4c - CH5CONF1

source

pub fn ch6conf1(&self) -> &Reg<CHCONF1_SPEC>

0x54 - CH6CONF1

source

pub fn ch7conf1(&self) -> &Reg<CHCONF1_SPEC>

0x5c - CH7CONF1

source

pub fn chstatus(&self, n: usize) -> &Reg<CHSTATUS_SPEC>

0x60..0x80 -

source

pub fn chstatus_iter(&self) -> impl Iterator<Item = &Reg<CHSTATUS_SPEC>>

Iterator for array of: 0x60..0x80 -

source

pub fn ch0status(&self) -> &Reg<CHSTATUS_SPEC>

0x60 - CH0STATUS

source

pub fn ch1status(&self) -> &Reg<CHSTATUS_SPEC>

0x64 - CH1STATUS

source

pub fn ch2status(&self) -> &Reg<CHSTATUS_SPEC>

0x68 - CH2STATUS

source

pub fn ch3status(&self) -> &Reg<CHSTATUS_SPEC>

0x6c - CH3STATUS

source

pub fn ch4status(&self) -> &Reg<CHSTATUS_SPEC>

0x70 - CH4STATUS

source

pub fn ch5status(&self) -> &Reg<CHSTATUS_SPEC>

0x74 - CH5STATUS

source

pub fn ch6status(&self) -> &Reg<CHSTATUS_SPEC>

0x78 - CH6STATUS

source

pub fn ch7status(&self) -> &Reg<CHSTATUS_SPEC>

0x7c - CH7STATUS

source

pub fn chaddr(&self, n: usize) -> &Reg<CHADDR_SPEC>

0x80..0xa0 -

source

pub fn chaddr_iter(&self) -> impl Iterator<Item = &Reg<CHADDR_SPEC>>

Iterator for array of: 0x80..0xa0 -

source

pub fn ch0addr(&self) -> &Reg<CHADDR_SPEC>

0x80 - CH0ADDR

source

pub fn ch1addr(&self) -> &Reg<CHADDR_SPEC>

0x84 - CH1ADDR

source

pub fn ch2addr(&self) -> &Reg<CHADDR_SPEC>

0x88 - CH2ADDR

source

pub fn ch3addr(&self) -> &Reg<CHADDR_SPEC>

0x8c - CH3ADDR

source

pub fn ch4addr(&self) -> &Reg<CHADDR_SPEC>

0x90 - CH4ADDR

source

pub fn ch5addr(&self) -> &Reg<CHADDR_SPEC>

0x94 - CH5ADDR

source

pub fn ch6addr(&self) -> &Reg<CHADDR_SPEC>

0x98 - CH6ADDR

source

pub fn ch7addr(&self) -> &Reg<CHADDR_SPEC>

0x9c - CH7ADDR

source

pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>

0xa0 -

source

pub fn int_st(&self) -> &Reg<INT_ST_SPEC>

0xa4 -

source

pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>

0xa8 -

source

pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>

0xac -

source

pub fn chcarrier_duty(&self, n: usize) -> &Reg<CHCARRIER_DUTY_SPEC>

0xb0..0xd0 -

source

pub fn chcarrier_duty_iter( &self ) -> impl Iterator<Item = &Reg<CHCARRIER_DUTY_SPEC>>

Iterator for array of: 0xb0..0xd0 -

source

pub fn ch0carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>

0xb0 - CH0CARRIER_DUTY

source

pub fn ch1carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>

0xb4 - CH1CARRIER_DUTY

source

pub fn ch2carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>

0xb8 - CH2CARRIER_DUTY

source

pub fn ch3carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>

0xbc - CH3CARRIER_DUTY

source

pub fn ch4carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>

0xc0 - CH4CARRIER_DUTY

source

pub fn ch5carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>

0xc4 - CH5CARRIER_DUTY

source

pub fn ch6carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>

0xc8 - CH6CARRIER_DUTY

source

pub fn ch7carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>

0xcc - CH7CARRIER_DUTY

source

pub fn ch_tx_lim(&self, n: usize) -> &Reg<CH_TX_LIM_SPEC>

0xd0..0xf0 -

source

pub fn ch_tx_lim_iter(&self) -> impl Iterator<Item = &Reg<CH_TX_LIM_SPEC>>

Iterator for array of: 0xd0..0xf0 -

source

pub fn ch0_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>

0xd0 - CH0_TX_LIM

source

pub fn ch1_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>

0xd4 - CH1_TX_LIM

source

pub fn ch2_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>

0xd8 - CH2_TX_LIM

source

pub fn ch3_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>

0xdc - CH3_TX_LIM

source

pub fn ch4_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>

0xe0 - CH4_TX_LIM

source

pub fn ch5_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>

0xe4 - CH5_TX_LIM

source

pub fn ch6_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>

0xe8 - CH6_TX_LIM

source

pub fn ch7_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>

0xec - CH7_TX_LIM

source

pub fn apb_conf(&self) -> &Reg<APB_CONF_SPEC>

0xf0 -

source

pub fn date(&self) -> &Reg<DATE_SPEC>

0xfc -

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

§

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

§

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.