Struct esp32s2_hal::peripherals::RMT
source · pub struct RMT { /* private fields */ }
Implementations§
source§impl RMT
impl RMT
sourcepub unsafe fn steal() -> RMT
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.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn chdata(&self, n: usize) -> &Reg<CHDATA_SPEC>
pub fn chdata(&self, n: usize) -> &Reg<CHDATA_SPEC>
0x00..0x10 - The read and write data register for CHANNEL%s by apb fifo access.
sourcepub fn chdata_iter(&self) -> impl Iterator<Item = &Reg<CHDATA_SPEC>>
pub fn chdata_iter(&self) -> impl Iterator<Item = &Reg<CHDATA_SPEC>>
Iterator for array of: 0x00..0x10 - The read and write data register for CHANNEL%s by apb fifo access.
sourcepub fn ch0data(&self) -> &Reg<CHDATA_SPEC>
pub fn ch0data(&self) -> &Reg<CHDATA_SPEC>
0x00 - The read and write data register for CHANNEL0 by apb fifo access.
sourcepub fn ch1data(&self) -> &Reg<CHDATA_SPEC>
pub fn ch1data(&self) -> &Reg<CHDATA_SPEC>
0x04 - The read and write data register for CHANNEL1 by apb fifo access.
sourcepub fn ch2data(&self) -> &Reg<CHDATA_SPEC>
pub fn ch2data(&self) -> &Reg<CHDATA_SPEC>
0x08 - The read and write data register for CHANNEL2 by apb fifo access.
sourcepub fn ch3data(&self) -> &Reg<CHDATA_SPEC>
pub fn ch3data(&self) -> &Reg<CHDATA_SPEC>
0x0c - The read and write data register for CHANNEL3 by apb fifo access.
sourcepub fn chconf0(&self, n: usize) -> &Reg<CHCONF0_SPEC>
pub fn chconf0(&self, n: usize) -> &Reg<CHCONF0_SPEC>
0x10..0x20 - Channel %s configure register 0
sourcepub fn chconf0_iter(&self) -> impl Iterator<Item = &Reg<CHCONF0_SPEC>>
pub fn chconf0_iter(&self) -> impl Iterator<Item = &Reg<CHCONF0_SPEC>>
Iterator for array of: 0x10..0x20 - Channel %s configure register 0
sourcepub fn ch0conf0(&self) -> &Reg<CHCONF0_SPEC>
pub fn ch0conf0(&self) -> &Reg<CHCONF0_SPEC>
0x10 - Channel 0 configure register 0
sourcepub fn ch1conf0(&self) -> &Reg<CHCONF0_SPEC>
pub fn ch1conf0(&self) -> &Reg<CHCONF0_SPEC>
0x18 - Channel 1 configure register 0
sourcepub fn ch2conf0(&self) -> &Reg<CHCONF0_SPEC>
pub fn ch2conf0(&self) -> &Reg<CHCONF0_SPEC>
0x20 - Channel 2 configure register 0
sourcepub fn ch3conf0(&self) -> &Reg<CHCONF0_SPEC>
pub fn ch3conf0(&self) -> &Reg<CHCONF0_SPEC>
0x28 - Channel 3 configure register 0
sourcepub fn chconf1(&self, n: usize) -> &Reg<CHCONF1_SPEC>
pub fn chconf1(&self, n: usize) -> &Reg<CHCONF1_SPEC>
0x14..0x24 - Channel %s configure register 1
sourcepub fn chconf1_iter(&self) -> impl Iterator<Item = &Reg<CHCONF1_SPEC>>
pub fn chconf1_iter(&self) -> impl Iterator<Item = &Reg<CHCONF1_SPEC>>
Iterator for array of: 0x14..0x24 - Channel %s configure register 1
sourcepub fn ch0conf1(&self) -> &Reg<CHCONF1_SPEC>
pub fn ch0conf1(&self) -> &Reg<CHCONF1_SPEC>
0x14 - Channel 0 configure register 1
sourcepub fn ch1conf1(&self) -> &Reg<CHCONF1_SPEC>
pub fn ch1conf1(&self) -> &Reg<CHCONF1_SPEC>
0x1c - Channel 1 configure register 1
sourcepub fn ch2conf1(&self) -> &Reg<CHCONF1_SPEC>
pub fn ch2conf1(&self) -> &Reg<CHCONF1_SPEC>
0x24 - Channel 2 configure register 1
sourcepub fn ch3conf1(&self) -> &Reg<CHCONF1_SPEC>
pub fn ch3conf1(&self) -> &Reg<CHCONF1_SPEC>
0x2c - Channel 3 configure register 1
sourcepub fn chstatus(&self, n: usize) -> &Reg<CHSTATUS_SPEC>
pub fn chstatus(&self, n: usize) -> &Reg<CHSTATUS_SPEC>
0x30..0x40 - Channel %s status register
sourcepub fn chstatus_iter(&self) -> impl Iterator<Item = &Reg<CHSTATUS_SPEC>>
pub fn chstatus_iter(&self) -> impl Iterator<Item = &Reg<CHSTATUS_SPEC>>
Iterator for array of: 0x30..0x40 - Channel %s status register
sourcepub fn ch0status(&self) -> &Reg<CHSTATUS_SPEC>
pub fn ch0status(&self) -> &Reg<CHSTATUS_SPEC>
0x30 - Channel 0 status register
sourcepub fn ch1status(&self) -> &Reg<CHSTATUS_SPEC>
pub fn ch1status(&self) -> &Reg<CHSTATUS_SPEC>
0x34 - Channel 1 status register
sourcepub fn ch2status(&self) -> &Reg<CHSTATUS_SPEC>
pub fn ch2status(&self) -> &Reg<CHSTATUS_SPEC>
0x38 - Channel 2 status register
sourcepub fn ch3status(&self) -> &Reg<CHSTATUS_SPEC>
pub fn ch3status(&self) -> &Reg<CHSTATUS_SPEC>
0x3c - Channel 3 status register
sourcepub fn chaddr(&self, n: usize) -> &Reg<CHADDR_SPEC>
pub fn chaddr(&self, n: usize) -> &Reg<CHADDR_SPEC>
0x40..0x50 - Channel %s address register
sourcepub fn chaddr_iter(&self) -> impl Iterator<Item = &Reg<CHADDR_SPEC>>
pub fn chaddr_iter(&self) -> impl Iterator<Item = &Reg<CHADDR_SPEC>>
Iterator for array of: 0x40..0x50 - Channel %s address register
sourcepub fn ch0addr(&self) -> &Reg<CHADDR_SPEC>
pub fn ch0addr(&self) -> &Reg<CHADDR_SPEC>
0x40 - Channel 0 address register
sourcepub fn ch1addr(&self) -> &Reg<CHADDR_SPEC>
pub fn ch1addr(&self) -> &Reg<CHADDR_SPEC>
0x44 - Channel 1 address register
sourcepub fn ch2addr(&self) -> &Reg<CHADDR_SPEC>
pub fn ch2addr(&self) -> &Reg<CHADDR_SPEC>
0x48 - Channel 2 address register
sourcepub fn ch3addr(&self) -> &Reg<CHADDR_SPEC>
pub fn ch3addr(&self) -> &Reg<CHADDR_SPEC>
0x4c - Channel 3 address register
sourcepub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x50 - Raw interrupt status
sourcepub fn int_st(&self) -> &Reg<INT_ST_SPEC>
pub fn int_st(&self) -> &Reg<INT_ST_SPEC>
0x54 - Masked interrupt status
sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x58 - Interrupt enable bits
sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0x5c - Interrupt clear bits
sourcepub fn chcarrier_duty(&self, n: usize) -> &Reg<CHCARRIER_DUTY_SPEC>
pub fn chcarrier_duty(&self, n: usize) -> &Reg<CHCARRIER_DUTY_SPEC>
0x60..0x70 - Channel %s duty cycle configuration register
sourcepub fn chcarrier_duty_iter(
&self
) -> impl Iterator<Item = &Reg<CHCARRIER_DUTY_SPEC>>
pub fn chcarrier_duty_iter( &self ) -> impl Iterator<Item = &Reg<CHCARRIER_DUTY_SPEC>>
Iterator for array of: 0x60..0x70 - Channel %s duty cycle configuration register
sourcepub fn ch0carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>
pub fn ch0carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>
0x60 - Channel 0 duty cycle configuration register
sourcepub fn ch1carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>
pub fn ch1carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>
0x64 - Channel 1 duty cycle configuration register
sourcepub fn ch2carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>
pub fn ch2carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>
0x68 - Channel 2 duty cycle configuration register
sourcepub fn ch3carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>
pub fn ch3carrier_duty(&self) -> &Reg<CHCARRIER_DUTY_SPEC>
0x6c - Channel 3 duty cycle configuration register
sourcepub fn ch_tx_lim(&self, n: usize) -> &Reg<CH_TX_LIM_SPEC>
pub fn ch_tx_lim(&self, n: usize) -> &Reg<CH_TX_LIM_SPEC>
0x70..0x80 - Channel %s Tx event configuration register
sourcepub fn ch_tx_lim_iter(&self) -> impl Iterator<Item = &Reg<CH_TX_LIM_SPEC>>
pub fn ch_tx_lim_iter(&self) -> impl Iterator<Item = &Reg<CH_TX_LIM_SPEC>>
Iterator for array of: 0x70..0x80 - Channel %s Tx event configuration register
sourcepub fn ch0_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>
pub fn ch0_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>
0x70 - Channel 0 Tx event configuration register
sourcepub fn ch1_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>
pub fn ch1_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>
0x74 - Channel 1 Tx event configuration register
sourcepub fn ch2_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>
pub fn ch2_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>
0x78 - Channel 2 Tx event configuration register
sourcepub fn ch3_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>
pub fn ch3_tx_lim(&self) -> &Reg<CH_TX_LIM_SPEC>
0x7c - Channel 3 Tx event configuration register
sourcepub fn apb_conf(&self) -> &Reg<APB_CONF_SPEC>
pub fn apb_conf(&self) -> &Reg<APB_CONF_SPEC>
0x80 - RMT apb configuration register
sourcepub fn tx_sim(&self) -> &Reg<TX_SIM_SPEC>
pub fn tx_sim(&self) -> &Reg<TX_SIM_SPEC>
0x84 - RMT TX synchronous register
sourcepub fn ref_cnt_rst(&self) -> &Reg<REF_CNT_RST_SPEC>
pub fn ref_cnt_rst(&self) -> &Reg<REF_CNT_RST_SPEC>
0x88 - RMT clock divider reset register
sourcepub fn ch_rx_carrier_rm(&self, n: usize) -> &Reg<CH_RX_CARRIER_RM_SPEC>
pub fn ch_rx_carrier_rm(&self, n: usize) -> &Reg<CH_RX_CARRIER_RM_SPEC>
0x8c..0x9c - Channel %s carrier remove register
sourcepub fn ch_rx_carrier_rm_iter(
&self
) -> impl Iterator<Item = &Reg<CH_RX_CARRIER_RM_SPEC>>
pub fn ch_rx_carrier_rm_iter( &self ) -> impl Iterator<Item = &Reg<CH_RX_CARRIER_RM_SPEC>>
Iterator for array of: 0x8c..0x9c - Channel %s carrier remove register
sourcepub fn ch0_rx_carrier_rm(&self) -> &Reg<CH_RX_CARRIER_RM_SPEC>
pub fn ch0_rx_carrier_rm(&self) -> &Reg<CH_RX_CARRIER_RM_SPEC>
0x8c - Channel 0 carrier remove register
sourcepub fn ch1_rx_carrier_rm(&self) -> &Reg<CH_RX_CARRIER_RM_SPEC>
pub fn ch1_rx_carrier_rm(&self) -> &Reg<CH_RX_CARRIER_RM_SPEC>
0x90 - Channel 1 carrier remove register
sourcepub fn ch2_rx_carrier_rm(&self) -> &Reg<CH_RX_CARRIER_RM_SPEC>
pub fn ch2_rx_carrier_rm(&self) -> &Reg<CH_RX_CARRIER_RM_SPEC>
0x94 - Channel 2 carrier remove register
sourcepub fn ch3_rx_carrier_rm(&self) -> &Reg<CH_RX_CARRIER_RM_SPEC>
pub fn ch3_rx_carrier_rm(&self) -> &Reg<CH_RX_CARRIER_RM_SPEC>
0x98 - Channel 3 carrier remove register