pub struct I2S0 { /* private fields */ }
Expand description
I2S (Inter-IC Sound) Controller 0
Implementations§
source§impl I2S0
impl I2S0
sourcepub const PTR: *const RegisterBlock = {0x6002d000 as *const i2s0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x6002d000 as *const i2s0::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
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>§
sourcepub fn rx_clkm_conf(&self) -> &RX_CLKM_CONF
pub fn rx_clkm_conf(&self) -> &RX_CLKM_CONF
0x30 - I2S RX clock configure register
sourcepub fn tx_clkm_conf(&self) -> &TX_CLKM_CONF
pub fn tx_clkm_conf(&self) -> &TX_CLKM_CONF
0x34 - I2S TX clock configure register
sourcepub fn rx_clkm_div_conf(&self) -> &RX_CLKM_DIV_CONF
pub fn rx_clkm_div_conf(&self) -> &RX_CLKM_DIV_CONF
0x38 - I2S RX module clock divider configure register
sourcepub fn tx_clkm_div_conf(&self) -> &TX_CLKM_DIV_CONF
pub fn tx_clkm_div_conf(&self) -> &TX_CLKM_DIV_CONF
0x3c - I2S TX module clock divider configure register
sourcepub fn tx_pcm2pdm_conf(&self) -> &TX_PCM2PDM_CONF
pub fn tx_pcm2pdm_conf(&self) -> &TX_PCM2PDM_CONF
0x40 - I2S TX PCM2PDM configuration register
sourcepub fn tx_pcm2pdm_conf1(&self) -> &TX_PCM2PDM_CONF1
pub fn tx_pcm2pdm_conf1(&self) -> &TX_PCM2PDM_CONF1
0x44 - I2S TX PCM2PDM configuration register
sourcepub fn rx_tdm_ctrl(&self) -> &RX_TDM_CTRL
pub fn rx_tdm_ctrl(&self) -> &RX_TDM_CTRL
0x50 - I2S TX TDM mode control register
sourcepub fn tx_tdm_ctrl(&self) -> &TX_TDM_CTRL
pub fn tx_tdm_ctrl(&self) -> &TX_TDM_CTRL
0x54 - I2S TX TDM mode control register
sourcepub fn lc_hung_conf(&self) -> &LC_HUNG_CONF
pub fn lc_hung_conf(&self) -> &LC_HUNG_CONF
0x60 - I2S HUNG configure register.
sourcepub fn conf_sigle_data(&self) -> &CONF_SIGLE_DATA
pub fn conf_sigle_data(&self) -> &CONF_SIGLE_DATA
0x68 - I2S signal data register