Struct esp32s2_hal::peripherals::I2S0
source · pub struct I2S0 { /* private fields */ }
Implementations§
source§impl I2S0
impl I2S0
sourcepub unsafe fn steal() -> I2S0
pub unsafe fn steal() -> I2S0
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 int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x0c - Raw interrupt status
sourcepub fn int_st(&self) -> &Reg<INT_ST_SPEC>
pub fn int_st(&self) -> &Reg<INT_ST_SPEC>
0x10 - Masked interrupt status
sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x14 - Interrupt enable bits
sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0x18 - Interrupt clear bits
sourcepub fn timing(&self) -> &Reg<TIMING_SPEC>
pub fn timing(&self) -> &Reg<TIMING_SPEC>
0x1c - I2S timing register
sourcepub fn fifo_conf(&self) -> &Reg<FIFO_CONF_SPEC>
pub fn fifo_conf(&self) -> &Reg<FIFO_CONF_SPEC>
0x20 - I2S FIFO configuration register
sourcepub fn rxeof_num(&self) -> &Reg<RXEOF_NUM_SPEC>
pub fn rxeof_num(&self) -> &Reg<RXEOF_NUM_SPEC>
0x24 - I2S DMA RX EOF data length
sourcepub fn conf_sigle_data(&self) -> &Reg<CONF_SIGLE_DATA_SPEC>
pub fn conf_sigle_data(&self) -> &Reg<CONF_SIGLE_DATA_SPEC>
0x28 - Constant single channel data
sourcepub fn conf_chan(&self) -> &Reg<CONF_CHAN_SPEC>
pub fn conf_chan(&self) -> &Reg<CONF_CHAN_SPEC>
0x2c - I2S channel configuration register
sourcepub fn out_link(&self) -> &Reg<OUT_LINK_SPEC>
pub fn out_link(&self) -> &Reg<OUT_LINK_SPEC>
0x30 - I2S DMA TX configuration register
sourcepub fn in_link(&self) -> &Reg<IN_LINK_SPEC>
pub fn in_link(&self) -> &Reg<IN_LINK_SPEC>
0x34 - I2S DMA RX configuration register
sourcepub fn out_eof_des_addr(&self) -> &Reg<OUT_EOF_DES_ADDR_SPEC>
pub fn out_eof_des_addr(&self) -> &Reg<OUT_EOF_DES_ADDR_SPEC>
0x38 - Address of outlink descriptor that produces EOF
sourcepub fn in_eof_des_addr(&self) -> &Reg<IN_EOF_DES_ADDR_SPEC>
pub fn in_eof_des_addr(&self) -> &Reg<IN_EOF_DES_ADDR_SPEC>
0x3c - Address of inlink descriptor that produces EOF
sourcepub fn out_eof_bfr_des_addr(&self) -> &Reg<OUT_EOF_BFR_DES_ADDR_SPEC>
pub fn out_eof_bfr_des_addr(&self) -> &Reg<OUT_EOF_BFR_DES_ADDR_SPEC>
0x40 - Address of buffer relative to the outlink descriptor that produces EOF
sourcepub fn inlink_dscr(&self) -> &Reg<INLINK_DSCR_SPEC>
pub fn inlink_dscr(&self) -> &Reg<INLINK_DSCR_SPEC>
0x48 - Address of current inlink descriptor
sourcepub fn inlink_dscr_bf0(&self) -> &Reg<INLINK_DSCR_BF0_SPEC>
pub fn inlink_dscr_bf0(&self) -> &Reg<INLINK_DSCR_BF0_SPEC>
0x4c - Address of next inlink descriptor
sourcepub fn inlink_dscr_bf1(&self) -> &Reg<INLINK_DSCR_BF1_SPEC>
pub fn inlink_dscr_bf1(&self) -> &Reg<INLINK_DSCR_BF1_SPEC>
0x50 - Address of next inlink data buffer
sourcepub fn outlink_dscr(&self) -> &Reg<OUTLINK_DSCR_SPEC>
pub fn outlink_dscr(&self) -> &Reg<OUTLINK_DSCR_SPEC>
0x54 - Address of current outlink descriptor
sourcepub fn outlink_dscr_bf0(&self) -> &Reg<OUTLINK_DSCR_BF0_SPEC>
pub fn outlink_dscr_bf0(&self) -> &Reg<OUTLINK_DSCR_BF0_SPEC>
0x58 - Address of next outlink descriptor
sourcepub fn outlink_dscr_bf1(&self) -> &Reg<OUTLINK_DSCR_BF1_SPEC>
pub fn outlink_dscr_bf1(&self) -> &Reg<OUTLINK_DSCR_BF1_SPEC>
0x5c - Address of next outlink data buffer
sourcepub fn lc_conf(&self) -> &Reg<LC_CONF_SPEC>
pub fn lc_conf(&self) -> &Reg<LC_CONF_SPEC>
0x60 - I2S DMA configuration register
sourcepub fn outfifo_push(&self) -> &Reg<OUTFIFO_PUSH_SPEC>
pub fn outfifo_push(&self) -> &Reg<OUTFIFO_PUSH_SPEC>
0x64 - APB out FIFO mode register
sourcepub fn infifo_pop(&self) -> &Reg<INFIFO_POP_SPEC>
pub fn infifo_pop(&self) -> &Reg<INFIFO_POP_SPEC>
0x68 - APB in FIFO mode register
sourcepub fn lc_state0(&self) -> &Reg<LC_STATE0_SPEC>
pub fn lc_state0(&self) -> &Reg<LC_STATE0_SPEC>
0x6c - I2S DMA TX status
sourcepub fn lc_state1(&self) -> &Reg<LC_STATE1_SPEC>
pub fn lc_state1(&self) -> &Reg<LC_STATE1_SPEC>
0x70 - I2S DMA RX status
sourcepub fn lc_hung_conf(&self) -> &Reg<LC_HUNG_CONF_SPEC>
pub fn lc_hung_conf(&self) -> &Reg<LC_HUNG_CONF_SPEC>
0x74 - I2S Hung configuration register
sourcepub fn conf1(&self) -> &Reg<CONF1_SPEC>
pub fn conf1(&self) -> &Reg<CONF1_SPEC>
0xa0 - I2S configuration register 1
sourcepub fn pd_conf(&self) -> &Reg<PD_CONF_SPEC>
pub fn pd_conf(&self) -> &Reg<PD_CONF_SPEC>
0xa4 - I2S power-down configuration register
sourcepub fn conf2(&self) -> &Reg<CONF2_SPEC>
pub fn conf2(&self) -> &Reg<CONF2_SPEC>
0xa8 - I2S configuration register 2
sourcepub fn clkm_conf(&self) -> &Reg<CLKM_CONF_SPEC>
pub fn clkm_conf(&self) -> &Reg<CLKM_CONF_SPEC>
0xac - I2S module clock configuration register
sourcepub fn sample_rate_conf(&self) -> &Reg<SAMPLE_RATE_CONF_SPEC>
pub fn sample_rate_conf(&self) -> &Reg<SAMPLE_RATE_CONF_SPEC>
0xb0 - I2S sample rate register
sourcepub fn state(&self) -> &Reg<STATE_SPEC>
pub fn state(&self) -> &Reg<STATE_SPEC>
0xbc - I2S TX status register