Struct esp32::RMT

source ·
pub struct RMT { /* private fields */ }
Expand description

Remote Control

Implementations§

source§

impl RMT

source

pub const PTR: *const RegisterBlock = {0x3ff56000 as *const rmt::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn chdata(&self, n: usize) -> &CHDATA

0x00..0x20 -

source

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

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

source

pub fn ch0data(&self) -> &CHDATA

0x00 - CH0DATA

source

pub fn ch1data(&self) -> &CHDATA

0x04 - CH1DATA

source

pub fn ch2data(&self) -> &CHDATA

0x08 - CH2DATA

source

pub fn ch3data(&self) -> &CHDATA

0x0c - CH3DATA

source

pub fn ch4data(&self) -> &CHDATA

0x10 - CH4DATA

source

pub fn ch5data(&self) -> &CHDATA

0x14 - CH5DATA

source

pub fn ch6data(&self) -> &CHDATA

0x18 - CH6DATA

source

pub fn ch7data(&self) -> &CHDATA

0x1c - CH7DATA

source

pub fn chconf0(&self, n: usize) -> &CHCONF0

0x20..0x40 -

source

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

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

source

pub fn ch0conf0(&self) -> &CHCONF0

0x20 - CH0CONF0

source

pub fn ch1conf0(&self) -> &CHCONF0

0x28 - CH1CONF0

source

pub fn ch2conf0(&self) -> &CHCONF0

0x30 - CH2CONF0

source

pub fn ch3conf0(&self) -> &CHCONF0

0x38 - CH3CONF0

source

pub fn ch4conf0(&self) -> &CHCONF0

0x40 - CH4CONF0

source

pub fn ch5conf0(&self) -> &CHCONF0

0x48 - CH5CONF0

source

pub fn ch6conf0(&self) -> &CHCONF0

0x50 - CH6CONF0

source

pub fn ch7conf0(&self) -> &CHCONF0

0x58 - CH7CONF0

source

pub fn chconf1(&self, n: usize) -> &CHCONF1

0x24..0x44 -

source

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

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

source

pub fn ch0conf1(&self) -> &CHCONF1

0x24 - CH0CONF1

source

pub fn ch1conf1(&self) -> &CHCONF1

0x2c - CH1CONF1

source

pub fn ch2conf1(&self) -> &CHCONF1

0x34 - CH2CONF1

source

pub fn ch3conf1(&self) -> &CHCONF1

0x3c - CH3CONF1

source

pub fn ch4conf1(&self) -> &CHCONF1

0x44 - CH4CONF1

source

pub fn ch5conf1(&self) -> &CHCONF1

0x4c - CH5CONF1

source

pub fn ch6conf1(&self) -> &CHCONF1

0x54 - CH6CONF1

source

pub fn ch7conf1(&self) -> &CHCONF1

0x5c - CH7CONF1

source

pub fn chstatus(&self, n: usize) -> &CHSTATUS

0x60..0x80 -

source

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

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

source

pub fn ch0status(&self) -> &CHSTATUS

0x60 - CH0STATUS

source

pub fn ch1status(&self) -> &CHSTATUS

0x64 - CH1STATUS

source

pub fn ch2status(&self) -> &CHSTATUS

0x68 - CH2STATUS

source

pub fn ch3status(&self) -> &CHSTATUS

0x6c - CH3STATUS

source

pub fn ch4status(&self) -> &CHSTATUS

0x70 - CH4STATUS

source

pub fn ch5status(&self) -> &CHSTATUS

0x74 - CH5STATUS

source

pub fn ch6status(&self) -> &CHSTATUS

0x78 - CH6STATUS

source

pub fn ch7status(&self) -> &CHSTATUS

0x7c - CH7STATUS

source

pub fn chaddr(&self, n: usize) -> &CHADDR

0x80..0xa0 -

source

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

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

source

pub fn ch0addr(&self) -> &CHADDR

0x80 - CH0ADDR

source

pub fn ch1addr(&self) -> &CHADDR

0x84 - CH1ADDR

source

pub fn ch2addr(&self) -> &CHADDR

0x88 - CH2ADDR

source

pub fn ch3addr(&self) -> &CHADDR

0x8c - CH3ADDR

source

pub fn ch4addr(&self) -> &CHADDR

0x90 - CH4ADDR

source

pub fn ch5addr(&self) -> &CHADDR

0x94 - CH5ADDR

source

pub fn ch6addr(&self) -> &CHADDR

0x98 - CH6ADDR

source

pub fn ch7addr(&self) -> &CHADDR

0x9c - CH7ADDR

source

pub fn int_raw(&self) -> &INT_RAW

0xa0 -

source

pub fn int_st(&self) -> &INT_ST

0xa4 -

source

pub fn int_ena(&self) -> &INT_ENA

0xa8 -

source

pub fn int_clr(&self) -> &INT_CLR

0xac -

source

pub fn chcarrier_duty(&self, n: usize) -> &CHCARRIER_DUTY

0xb0..0xd0 -

source

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

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

source

pub fn ch0carrier_duty(&self) -> &CHCARRIER_DUTY

0xb0 - CH0CARRIER_DUTY

source

pub fn ch1carrier_duty(&self) -> &CHCARRIER_DUTY

0xb4 - CH1CARRIER_DUTY

source

pub fn ch2carrier_duty(&self) -> &CHCARRIER_DUTY

0xb8 - CH2CARRIER_DUTY

source

pub fn ch3carrier_duty(&self) -> &CHCARRIER_DUTY

0xbc - CH3CARRIER_DUTY

source

pub fn ch4carrier_duty(&self) -> &CHCARRIER_DUTY

0xc0 - CH4CARRIER_DUTY

source

pub fn ch5carrier_duty(&self) -> &CHCARRIER_DUTY

0xc4 - CH5CARRIER_DUTY

source

pub fn ch6carrier_duty(&self) -> &CHCARRIER_DUTY

0xc8 - CH6CARRIER_DUTY

source

pub fn ch7carrier_duty(&self) -> &CHCARRIER_DUTY

0xcc - CH7CARRIER_DUTY

source

pub fn ch_tx_lim(&self, n: usize) -> &CH_TX_LIM

0xd0..0xf0 -

source

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

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

source

pub fn ch0_tx_lim(&self) -> &CH_TX_LIM

0xd0 - CH0_TX_LIM

source

pub fn ch1_tx_lim(&self) -> &CH_TX_LIM

0xd4 - CH1_TX_LIM

source

pub fn ch2_tx_lim(&self) -> &CH_TX_LIM

0xd8 - CH2_TX_LIM

source

pub fn ch3_tx_lim(&self) -> &CH_TX_LIM

0xdc - CH3_TX_LIM

source

pub fn ch4_tx_lim(&self) -> &CH_TX_LIM

0xe0 - CH4_TX_LIM

source

pub fn ch5_tx_lim(&self) -> &CH_TX_LIM

0xe4 - CH5_TX_LIM

source

pub fn ch6_tx_lim(&self) -> &CH_TX_LIM

0xe8 - CH6_TX_LIM

source

pub fn ch7_tx_lim(&self) -> &CH_TX_LIM

0xec - CH7_TX_LIM

source

pub fn apb_conf(&self) -> &APB_CONF

0xf0 -

source

pub fn date(&self) -> &DATE

0xfc -

Trait Implementations§

source§

impl Debug for RMT

source§

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

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

impl Deref for RMT

source§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for RMT

Auto Trait Implementations§

§

impl Freeze for RMT

§

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

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.