pub struct I2S1 { /* private fields */ }
Expand description
I2S (Inter-IC Sound) Controller 1
Implementations§
source§impl I2S1
impl I2S1
sourcepub const PTR: *const RegisterBlock = {0x3ff6d000 as *const i2s0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3ff6d000 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 -
sourcepub fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
pub fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
0x38 -
sourcepub fn in_eof_des_addr(&self) -> &IN_EOF_DES_ADDR
pub fn in_eof_des_addr(&self) -> &IN_EOF_DES_ADDR
0x3c -
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 -
sourcepub fn inlink_dscr(&self) -> &INLINK_DSCR
pub fn inlink_dscr(&self) -> &INLINK_DSCR
0x48 -
sourcepub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
pub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
0x4c -
sourcepub fn inlink_dscr_bf1(&self) -> &INLINK_DSCR_BF1
pub fn inlink_dscr_bf1(&self) -> &INLINK_DSCR_BF1
0x50 -
sourcepub fn outlink_dscr(&self) -> &OUTLINK_DSCR
pub fn outlink_dscr(&self) -> &OUTLINK_DSCR
0x54 -
sourcepub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
pub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
0x58 -
sourcepub fn outlink_dscr_bf1(&self) -> &OUTLINK_DSCR_BF1
pub fn outlink_dscr_bf1(&self) -> &OUTLINK_DSCR_BF1
0x5c -
sourcepub fn outfifo_push(&self) -> &OUTFIFO_PUSH
pub fn outfifo_push(&self) -> &OUTFIFO_PUSH
0x64 -
sourcepub fn infifo_pop(&self) -> &INFIFO_POP
pub fn infifo_pop(&self) -> &INFIFO_POP
0x68 -
sourcepub fn lc_hung_conf(&self) -> &LC_HUNG_CONF
pub fn lc_hung_conf(&self) -> &LC_HUNG_CONF
0x74 -
sourcepub fn cvsd_conf0(&self) -> &CVSD_CONF0
pub fn cvsd_conf0(&self) -> &CVSD_CONF0
0x80 -
sourcepub fn cvsd_conf1(&self) -> &CVSD_CONF1
pub fn cvsd_conf1(&self) -> &CVSD_CONF1
0x84 -
sourcepub fn cvsd_conf2(&self) -> &CVSD_CONF2
pub fn cvsd_conf2(&self) -> &CVSD_CONF2
0x88 -
sourcepub fn esco_conf0(&self) -> &ESCO_CONF0
pub fn esco_conf0(&self) -> &ESCO_CONF0
0x98 -
sourcepub fn sample_rate_conf(&self) -> &SAMPLE_RATE_CONF
pub fn sample_rate_conf(&self) -> &SAMPLE_RATE_CONF
0xb0 -
sourcepub fn pdm_freq_conf(&self) -> &PDM_FREQ_CONF
pub fn pdm_freq_conf(&self) -> &PDM_FREQ_CONF
0xb8 -
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more