Struct esp32c3::RMT

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

Remote Control

Implementations§

source§

impl RMT

source

pub const PTR: *const RegisterBlock = {0x60016000 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..0x10 - RMT_CH%sDATA_REG.

source

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

Iterator for array of: 0x00..0x10 - RMT_CH%sDATA_REG.

source

pub fn ch0data(&self) -> &CHDATA

0x00 - RMT_CH0DATA_REG.

source

pub fn ch1data(&self) -> &CHDATA

0x04 - RMT_CH1DATA_REG.

source

pub fn ch2data(&self) -> &CHDATA

0x08 - RMT_CH2DATA_REG.

source

pub fn ch3data(&self) -> &CHDATA

0x0c - RMT_CH3DATA_REG.

source

pub fn ch_tx_conf0(&self, n: usize) -> &CH_TX_CONF0

0x10..0x18 - RMT_CH%sCONF%s_REG.

source

pub fn ch_tx_conf0_iter(&self) -> impl Iterator<Item = &CH_TX_CONF0>

Iterator for array of: 0x10..0x18 - RMT_CH%sCONF%s_REG.

source

pub fn ch0_tx_conf0(&self) -> &CH_TX_CONF0

0x10 - RMT_CH0CONF0_REG.

source

pub fn ch1_tx_conf0(&self) -> &CH_TX_CONF0

0x14 - RMT_CH1CONF1_REG.

source

pub fn ch_rx_conf0(&self, n: usize) -> &CH_RX_CONF0

0x18..0x20 - RMT_CH2CONF0_REG.

source

pub fn ch_rx_conf0_iter(&self) -> impl Iterator<Item = &CH_RX_CONF0>

Iterator for array of: 0x18..0x20 - RMT_CH2CONF0_REG.

source

pub fn ch2_rx_conf0(&self) -> &CH_RX_CONF0

0x18 - RMT_CH2CONF0_REG.

source

pub fn ch3_rx_conf0(&self) -> &CH_RX_CONF0

0x20 - RMT_CH2CONF0_REG.

source

pub fn ch_rx_conf1(&self, n: usize) -> &CH_RX_CONF1

0x1c..0x24 - RMT_CH2CONF1_REG.

source

pub fn ch_rx_conf1_iter(&self) -> impl Iterator<Item = &CH_RX_CONF1>

Iterator for array of: 0x1c..0x24 - RMT_CH2CONF1_REG.

source

pub fn ch2_rx_conf1(&self) -> &CH_RX_CONF1

0x1c - RMT_CH2CONF1_REG.

source

pub fn ch3_rx_conf1(&self) -> &CH_RX_CONF1

0x24 - RMT_CH2CONF1_REG.

source

pub fn ch_tx_status(&self, n: usize) -> &CH_TX_STATUS

0x28..0x30 - RMT_CH%sSTATUS_REG.

source

pub fn ch_tx_status_iter(&self) -> impl Iterator<Item = &CH_TX_STATUS>

Iterator for array of: 0x28..0x30 - RMT_CH%sSTATUS_REG.

source

pub fn ch0_tx_status(&self) -> &CH_TX_STATUS

0x28 - RMT_CH0STATUS_REG.

source

pub fn ch1_tx_status(&self) -> &CH_TX_STATUS

0x2c - RMT_CH1STATUS_REG.

source

pub fn ch_rx_status(&self, n: usize) -> &CH_RX_STATUS

0x30..0x38 - RMT_CH2STATUS_REG.

source

pub fn ch_rx_status_iter(&self) -> impl Iterator<Item = &CH_RX_STATUS>

Iterator for array of: 0x30..0x38 - RMT_CH2STATUS_REG.

source

pub fn ch2_rx_status(&self) -> &CH_RX_STATUS

0x30 - RMT_CH2STATUS_REG.

source

pub fn ch3_rx_status(&self) -> &CH_RX_STATUS

0x34 - RMT_CH2STATUS_REG.

source

pub fn int_raw(&self) -> &INT_RAW

0x38 - RMT_INT_RAW_REG.

source

pub fn int_st(&self) -> &INT_ST

0x3c - RMT_INT_ST_REG.

source

pub fn int_ena(&self) -> &INT_ENA

0x40 - RMT_INT_ENA_REG.

source

pub fn int_clr(&self) -> &INT_CLR

0x44 - RMT_INT_CLR_REG.

source

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

0x48..0x50 - RMT_CH%sCARRIER_DUTY_REG.

source

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

Iterator for array of: 0x48..0x50 - RMT_CH%sCARRIER_DUTY_REG.

source

pub fn ch0carrier_duty(&self) -> &CHCARRIER_DUTY

0x48 - RMT_CH0CARRIER_DUTY_REG.

source

pub fn ch1carrier_duty(&self) -> &CHCARRIER_DUTY

0x4c - RMT_CH1CARRIER_DUTY_REG.

source

pub fn ch_rx_carrier_rm(&self, n: usize) -> &CH_RX_CARRIER_RM

0x50..0x58 - RMT_CH2_RX_CARRIER_RM_REG.

source

pub fn ch_rx_carrier_rm_iter(&self) -> impl Iterator<Item = &CH_RX_CARRIER_RM>

Iterator for array of: 0x50..0x58 - RMT_CH2_RX_CARRIER_RM_REG.

source

pub fn ch2_rx_carrier_rm(&self) -> &CH_RX_CARRIER_RM

0x50 - RMT_CH2_RX_CARRIER_RM_REG.

source

pub fn ch3_rx_carrier_rm(&self) -> &CH_RX_CARRIER_RM

0x54 - RMT_CH2_RX_CARRIER_RM_REG.

source

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

0x58..0x60 - RMT_CH%s_TX_LIM_REG.

source

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

Iterator for array of: 0x58..0x60 - RMT_CH%s_TX_LIM_REG.

source

pub fn ch0_tx_lim(&self) -> &CH_TX_LIM

0x58 - RMT_CH0_TX_LIM_REG.

source

pub fn ch1_tx_lim(&self) -> &CH_TX_LIM

0x5c - RMT_CH1_TX_LIM_REG.

source

pub fn ch_rx_lim(&self, n: usize) -> &CH_RX_LIM

0x60..0x68 - RMT_CH2_RX_LIM_REG.

source

pub fn ch_rx_lim_iter(&self) -> impl Iterator<Item = &CH_RX_LIM>

Iterator for array of: 0x60..0x68 - RMT_CH2_RX_LIM_REG.

source

pub fn ch2_rx_lim(&self) -> &CH_RX_LIM

0x60 - RMT_CH2_RX_LIM_REG.

source

pub fn ch3_rx_lim(&self) -> &CH_RX_LIM

0x64 - RMT_CH2_RX_LIM_REG.

source

pub fn sys_conf(&self) -> &SYS_CONF

0x68 - RMT_SYS_CONF_REG.

source

pub fn tx_sim(&self) -> &TX_SIM

0x6c - RMT_TX_SIM_REG.

source

pub fn ref_cnt_rst(&self) -> &REF_CNT_RST

0x70 - RMT_REF_CNT_RST_REG.

source

pub fn date(&self) -> &DATE

0xcc - RMT_DATE_REG.

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

§

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

§

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.