Struct esp32c2::dma::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock { /* private fields */ }Expand description
Register block
Implementations§
source§impl RegisterBlock
impl RegisterBlock
sourcepub const fn int_raw_ch(&self, n: usize) -> &INT_RAW_CH
pub const fn int_raw_ch(&self, n: usize) -> &INT_RAW_CH
0x00 - DMA_INT_RAW_CH%s_REG.
sourcepub fn int_raw_ch_iter(&self) -> impl Iterator<Item = &INT_RAW_CH>
pub fn int_raw_ch_iter(&self) -> impl Iterator<Item = &INT_RAW_CH>
Iterator for array of: 0x00 - DMA_INT_RAW_CH%s_REG.
sourcepub const fn int_st_ch0(&self) -> &INT_ST_CH0
pub const fn int_st_ch0(&self) -> &INT_ST_CH0
0x04 - DMA_INT_ST_CH0_REG.
sourcepub const fn int_ena_ch(&self, n: usize) -> &INT_ENA_CH
pub const fn int_ena_ch(&self, n: usize) -> &INT_ENA_CH
0x08 - DMA_INT_ENA_CH%s_REG.
sourcepub fn int_ena_ch_iter(&self) -> impl Iterator<Item = &INT_ENA_CH>
pub fn int_ena_ch_iter(&self) -> impl Iterator<Item = &INT_ENA_CH>
Iterator for array of: 0x08 - DMA_INT_ENA_CH%s_REG.
sourcepub const fn int_clr_ch(&self, n: usize) -> &INT_CLR_CH
pub const fn int_clr_ch(&self, n: usize) -> &INT_CLR_CH
0x0c - DMA_INT_CLR_CH%s_REG.
sourcepub fn int_clr_ch_iter(&self) -> impl Iterator<Item = &INT_CLR_CH>
pub fn int_clr_ch_iter(&self) -> impl Iterator<Item = &INT_CLR_CH>
Iterator for array of: 0x0c - DMA_INT_CLR_CH%s_REG.
sourcepub const fn in_conf0_ch(&self, n: usize) -> &IN_CONF0_CH
pub const fn in_conf0_ch(&self, n: usize) -> &IN_CONF0_CH
0x70 - DMA_IN_CONF%s_CH%s_REG.
sourcepub fn in_conf0_ch_iter(&self) -> impl Iterator<Item = &IN_CONF0_CH>
pub fn in_conf0_ch_iter(&self) -> impl Iterator<Item = &IN_CONF0_CH>
Iterator for array of: 0x70 - DMA_IN_CONF%s_CH%s_REG.
sourcepub const fn in_conf1_ch0(&self) -> &IN_CONF1_CH0
pub const fn in_conf1_ch0(&self) -> &IN_CONF1_CH0
0x74 - DMA_IN_CONF1_CH0_REG.
sourcepub const fn infifo_status_ch0(&self) -> &INFIFO_STATUS_CH0
pub const fn infifo_status_ch0(&self) -> &INFIFO_STATUS_CH0
0x78 - DMA_INFIFO_STATUS_CH0_REG.
sourcepub const fn in_pop_ch0(&self) -> &IN_POP_CH0
pub const fn in_pop_ch0(&self) -> &IN_POP_CH0
0x7c - DMA_IN_POP_CH0_REG.
sourcepub const fn in_link_ch(&self, n: usize) -> &IN_LINK_CH
pub const fn in_link_ch(&self, n: usize) -> &IN_LINK_CH
0x80 - DMA_IN_LINK_CH%s_REG.
sourcepub fn in_link_ch_iter(&self) -> impl Iterator<Item = &IN_LINK_CH>
pub fn in_link_ch_iter(&self) -> impl Iterator<Item = &IN_LINK_CH>
Iterator for array of: 0x80 - DMA_IN_LINK_CH%s_REG.
sourcepub const fn in_state_ch0(&self) -> &IN_STATE_CH0
pub const fn in_state_ch0(&self) -> &IN_STATE_CH0
0x84 - DMA_IN_STATE_CH0_REG.
sourcepub const fn in_suc_eof_des_addr_ch0(&self) -> &IN_SUC_EOF_DES_ADDR_CH0
pub const fn in_suc_eof_des_addr_ch0(&self) -> &IN_SUC_EOF_DES_ADDR_CH0
0x88 - DMA_IN_SUC_EOF_DES_ADDR_CH0_REG.
sourcepub const fn in_err_eof_des_addr_ch0(&self) -> &IN_ERR_EOF_DES_ADDR_CH0
pub const fn in_err_eof_des_addr_ch0(&self) -> &IN_ERR_EOF_DES_ADDR_CH0
0x8c - DMA_IN_ERR_EOF_DES_ADDR_CH0_REG.
sourcepub const fn in_dscr_ch0(&self) -> &IN_DSCR_CH0
pub const fn in_dscr_ch0(&self) -> &IN_DSCR_CH0
0x90 - DMA_IN_DSCR_CH0_REG.
sourcepub const fn in_dscr_bf0_ch(&self, n: usize) -> &IN_DSCR_BF0_CH
pub const fn in_dscr_bf0_ch(&self, n: usize) -> &IN_DSCR_BF0_CH
0x94 - DMA_IN_DSCR_BF%s_CH%s_REG.
sourcepub fn in_dscr_bf0_ch_iter(&self) -> impl Iterator<Item = &IN_DSCR_BF0_CH>
pub fn in_dscr_bf0_ch_iter(&self) -> impl Iterator<Item = &IN_DSCR_BF0_CH>
Iterator for array of: 0x94 - DMA_IN_DSCR_BF%s_CH%s_REG.
sourcepub const fn in_dscr_bf1_ch0(&self) -> &IN_DSCR_BF1_CH0
pub const fn in_dscr_bf1_ch0(&self) -> &IN_DSCR_BF1_CH0
0x98 - DMA_IN_DSCR_BF1_CH0_REG.
sourcepub fn in_pri_ch_iter(&self) -> impl Iterator<Item = &IN_PRI_CH>
pub fn in_pri_ch_iter(&self) -> impl Iterator<Item = &IN_PRI_CH>
Iterator for array of: 0x9c - DMA_IN_PRI_CH%s_REG.
sourcepub const fn in_peri_sel_ch(&self, n: usize) -> &IN_PERI_SEL_CH
pub const fn in_peri_sel_ch(&self, n: usize) -> &IN_PERI_SEL_CH
0xa0 - DMA_IN_PERI_SEL_CH%s_REG.
sourcepub fn in_peri_sel_ch_iter(&self) -> impl Iterator<Item = &IN_PERI_SEL_CH>
pub fn in_peri_sel_ch_iter(&self) -> impl Iterator<Item = &IN_PERI_SEL_CH>
Iterator for array of: 0xa0 - DMA_IN_PERI_SEL_CH%s_REG.
sourcepub const fn out_conf0_ch(&self, n: usize) -> &OUT_CONF0_CH
pub const fn out_conf0_ch(&self, n: usize) -> &OUT_CONF0_CH
0xd0 - DMA_OUT_CONF%s_CH%s_REG.
sourcepub fn out_conf0_ch_iter(&self) -> impl Iterator<Item = &OUT_CONF0_CH>
pub fn out_conf0_ch_iter(&self) -> impl Iterator<Item = &OUT_CONF0_CH>
Iterator for array of: 0xd0 - DMA_OUT_CONF%s_CH%s_REG.
sourcepub const fn out_conf1_ch(&self, n: usize) -> &OUT_CONF1_CH
pub const fn out_conf1_ch(&self, n: usize) -> &OUT_CONF1_CH
0xd4 - DMA_OUT_CONF1_CH%s_REG.
sourcepub fn out_conf1_ch_iter(&self) -> impl Iterator<Item = &OUT_CONF1_CH>
pub fn out_conf1_ch_iter(&self) -> impl Iterator<Item = &OUT_CONF1_CH>
Iterator for array of: 0xd4 - DMA_OUT_CONF1_CH%s_REG.
sourcepub const fn outfifo_status_ch0(&self) -> &OUTFIFO_STATUS_CH0
pub const fn outfifo_status_ch0(&self) -> &OUTFIFO_STATUS_CH0
0xd8 - DMA_OUTFIFO_STATUS_CH0_REG.
sourcepub const fn out_push_ch0(&self) -> &OUT_PUSH_CH0
pub const fn out_push_ch0(&self) -> &OUT_PUSH_CH0
0xdc - DMA_OUT_PUSH_CH0_REG.
sourcepub const fn out_link_ch(&self, n: usize) -> &OUT_LINK_CH
pub const fn out_link_ch(&self, n: usize) -> &OUT_LINK_CH
0xe0 - DMA_OUT_LINK_CH%s_REG.
sourcepub fn out_link_ch_iter(&self) -> impl Iterator<Item = &OUT_LINK_CH>
pub fn out_link_ch_iter(&self) -> impl Iterator<Item = &OUT_LINK_CH>
Iterator for array of: 0xe0 - DMA_OUT_LINK_CH%s_REG.
sourcepub const fn out_state_ch0(&self) -> &OUT_STATE_CH0
pub const fn out_state_ch0(&self) -> &OUT_STATE_CH0
0xe4 - DMA_OUT_STATE_CH0_REG.
sourcepub const fn out_eof_des_addr_ch(&self, n: usize) -> &OUT_EOF_DES_ADDR_CH
pub const fn out_eof_des_addr_ch(&self, n: usize) -> &OUT_EOF_DES_ADDR_CH
0xe8 - DMA_OUT_EOF_DES_ADDR_CH%s_REG.
sourcepub fn out_eof_des_addr_ch_iter(
&self
) -> impl Iterator<Item = &OUT_EOF_DES_ADDR_CH>
pub fn out_eof_des_addr_ch_iter( &self ) -> impl Iterator<Item = &OUT_EOF_DES_ADDR_CH>
Iterator for array of: 0xe8 - DMA_OUT_EOF_DES_ADDR_CH%s_REG.
sourcepub const fn out_eof_bfr_des_addr_ch0(&self) -> &OUT_EOF_BFR_DES_ADDR_CH0
pub const fn out_eof_bfr_des_addr_ch0(&self) -> &OUT_EOF_BFR_DES_ADDR_CH0
0xec - DMA_OUT_EOF_BFR_DES_ADDR_CH0_REG.
sourcepub const fn out_dscr_ch0(&self) -> &OUT_DSCR_CH0
pub const fn out_dscr_ch0(&self) -> &OUT_DSCR_CH0
0xf0 - DMA_OUT_DSCR_CH0_REG.
sourcepub const fn out_dscr_bf0_ch0(&self) -> &OUT_DSCR_BF0_CH0
pub const fn out_dscr_bf0_ch0(&self) -> &OUT_DSCR_BF0_CH0
0xf4 - DMA_OUT_DSCR_BF0_CH0_REG.
sourcepub const fn out_dscr_bf1_ch0(&self) -> &OUT_DSCR_BF1_CH0
pub const fn out_dscr_bf1_ch0(&self) -> &OUT_DSCR_BF1_CH0
0xf8 - DMA_OUT_DSCR_BF1_CH0_REG.
sourcepub const fn out_pri_ch(&self, n: usize) -> &OUT_PRI_CH
pub const fn out_pri_ch(&self, n: usize) -> &OUT_PRI_CH
0xfc - DMA_OUT_PRI_CH%s_REG.
sourcepub fn out_pri_ch_iter(&self) -> impl Iterator<Item = &OUT_PRI_CH>
pub fn out_pri_ch_iter(&self) -> impl Iterator<Item = &OUT_PRI_CH>
Iterator for array of: 0xfc - DMA_OUT_PRI_CH%s_REG.
sourcepub const fn out_peri_sel_ch(&self, n: usize) -> &OUT_PERI_SEL_CH
pub const fn out_peri_sel_ch(&self, n: usize) -> &OUT_PERI_SEL_CH
0x100 - DMA_OUT_PERI_SEL_CH%s_REG.
sourcepub fn out_peri_sel_ch_iter(&self) -> impl Iterator<Item = &OUT_PERI_SEL_CH>
pub fn out_peri_sel_ch_iter(&self) -> impl Iterator<Item = &OUT_PERI_SEL_CH>
Iterator for array of: 0x100 - DMA_OUT_PERI_SEL_CH%s_REG.