pub struct I2S0 { /* private fields */ }
Expand description
I2S (Inter-IC Sound) Controller 0
Implementations§
Source§impl I2S0
impl I2S0
Sourcepub const PTR: *const RegisterBlock = {0x3f40f000 as *const i2s0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3f40f000 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 conf_sigle_data(&self) -> &CONF_SIGLE_DATA
pub fn conf_sigle_data(&self) -> &CONF_SIGLE_DATA
0x28 - Constant single channel data
Sourcepub fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
pub fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
0x38 - Address of outlink descriptor that produces EOF
Sourcepub fn in_eof_des_addr(&self) -> &IN_EOF_DES_ADDR
pub fn in_eof_des_addr(&self) -> &IN_EOF_DES_ADDR
0x3c - Address of inlink descriptor that produces EOF
Sourcepub fn out_eof_bfr_des_addr(&self) -> &OUT_EOF_BFR_DES_ADDR
pub fn out_eof_bfr_des_addr(&self) -> &OUT_EOF_BFR_DES_ADDR
0x40 - Address of buffer relative to the outlink descriptor that produces EOF
Sourcepub fn inlink_dscr(&self) -> &INLINK_DSCR
pub fn inlink_dscr(&self) -> &INLINK_DSCR
0x48 - Address of current inlink descriptor
Sourcepub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
pub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
0x4c - Address of next inlink descriptor
Sourcepub fn inlink_dscr_bf1(&self) -> &INLINK_DSCR_BF1
pub fn inlink_dscr_bf1(&self) -> &INLINK_DSCR_BF1
0x50 - Address of next inlink data buffer
Sourcepub fn outlink_dscr(&self) -> &OUTLINK_DSCR
pub fn outlink_dscr(&self) -> &OUTLINK_DSCR
0x54 - Address of current outlink descriptor
Sourcepub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
pub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
0x58 - Address of next outlink descriptor
Sourcepub fn outlink_dscr_bf1(&self) -> &OUTLINK_DSCR_BF1
pub fn outlink_dscr_bf1(&self) -> &OUTLINK_DSCR_BF1
0x5c - Address of next outlink data buffer
Sourcepub fn outfifo_push(&self) -> &OUTFIFO_PUSH
pub fn outfifo_push(&self) -> &OUTFIFO_PUSH
0x64 - APB out FIFO mode register
Sourcepub fn infifo_pop(&self) -> &INFIFO_POP
pub fn infifo_pop(&self) -> &INFIFO_POP
0x68 - APB in FIFO mode register
Sourcepub fn lc_hung_conf(&self) -> &LC_HUNG_CONF
pub fn lc_hung_conf(&self) -> &LC_HUNG_CONF
0x74 - I2S Hung configuration register
Sourcepub fn sample_rate_conf(&self) -> &SAMPLE_RATE_CONF
pub fn sample_rate_conf(&self) -> &SAMPLE_RATE_CONF
0xb0 - I2S sample rate register