pub struct LP_I2S0 { /* private fields */ }
Expand description
Low-power I2S (Inter-IC Sound) Controller 0
Implementations§
source§impl LP_I2S0
impl LP_I2S0
sourcepub const PTR: *const RegisterBlock = {0x50125000 as *const lp_i2s0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x50125000 as *const lp_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 vad_result(&self) -> &VAD_RESULT
pub fn vad_result(&self) -> &VAD_RESULT
0x04 - I2S VAD Result register
sourcepub fn rx_mem_conf(&self) -> &RX_MEM_CONF
pub fn rx_mem_conf(&self) -> &RX_MEM_CONF
0x08 - I2S VAD Observe 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 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
sourcepub fn rx_pdm_conf(&self) -> &RX_PDM_CONF
pub fn rx_pdm_conf(&self) -> &RX_PDM_CONF
0x70 - I2S RX configure register
sourcepub fn vad_param0(&self) -> &VAD_PARAM0
pub fn vad_param0(&self) -> &VAD_PARAM0
0x80 - I2S VAD Parameter register
sourcepub fn vad_param1(&self) -> &VAD_PARAM1
pub fn vad_param1(&self) -> &VAD_PARAM1
0x84 - I2S VAD Parameter register
sourcepub fn vad_param2(&self) -> &VAD_PARAM2
pub fn vad_param2(&self) -> &VAD_PARAM2
0x88 - I2S VAD Parameter register
sourcepub fn vad_param3(&self) -> &VAD_PARAM3
pub fn vad_param3(&self) -> &VAD_PARAM3
0x8c - I2S VAD Parameter register
sourcepub fn vad_param4(&self) -> &VAD_PARAM4
pub fn vad_param4(&self) -> &VAD_PARAM4
0x90 - I2S VAD Parameter register
sourcepub fn vad_param5(&self) -> &VAD_PARAM5
pub fn vad_param5(&self) -> &VAD_PARAM5
0x94 - I2S VAD Parameter register
sourcepub fn vad_param6(&self) -> &VAD_PARAM6
pub fn vad_param6(&self) -> &VAD_PARAM6
0x98 - I2S VAD Parameter register
sourcepub fn vad_param7(&self) -> &VAD_PARAM7
pub fn vad_param7(&self) -> &VAD_PARAM7
0x9c - I2S VAD Parameter register
sourcepub fn vad_param8(&self) -> &VAD_PARAM8
pub fn vad_param8(&self) -> &VAD_PARAM8
0xa0 - I2S VAD Parameter register