pub struct I2s2 { /* private fields */ }
Expand description
LPC-Next0 I2S interface
Implementations§
Source§impl I2s2
impl I2s2
Sourcepub const PTR: *const RegisterBlock = {0x40108000 as *const i2s0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40108000 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 secchannel(&self, n: usize) -> &Secchannel
pub fn secchannel(&self, n: usize) -> &Secchannel
0xc20..0xc44 - Array of registers: PCFG1, PCFG2, PSTAT
Sourcepub fn secchannel_iter(&self) -> impl Iterator<Item = &Secchannel>
pub fn secchannel_iter(&self) -> impl Iterator<Item = &Secchannel>
Iterator for array of: 0xc20..0xc44 - Array of registers: PCFG1, PCFG2, PSTAT
Sourcepub fn fifotrig(&self) -> &Fifotrig
pub fn fifotrig(&self) -> &Fifotrig
0xe08 - FIFO trigger settings for interrupt and DMA request.
Sourcepub fn fifointenset(&self) -> &Fifointenset
pub fn fifointenset(&self) -> &Fifointenset
0xe10 - FIFO interrupt enable set (enable) and read register.
Sourcepub fn fifointenclr(&self) -> &Fifointenclr
pub fn fifointenclr(&self) -> &Fifointenclr
0xe14 - FIFO interrupt enable clear (disable) and read register.
Sourcepub fn fifointstat(&self) -> &Fifointstat
pub fn fifointstat(&self) -> &Fifointstat
0xe18 - FIFO interrupt status register.
Sourcepub fn fifowr48h(&self) -> &Fifowr48h
pub fn fifowr48h(&self) -> &Fifowr48h
0xe24 - FIFO write data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data and not using DMA.
Sourcepub fn fiford48h(&self) -> &Fiford48h
pub fn fiford48h(&self) -> &Fiford48h
0xe34 - FIFO read data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data and not using DMA.
Sourcepub fn fifordnopop(&self) -> &Fifordnopop
pub fn fifordnopop(&self) -> &Fifordnopop
0xe40 - FIFO data read with no FIFO pop.
Sourcepub fn fiford48hnopop(&self) -> &Fiford48hnopop
pub fn fiford48hnopop(&self) -> &Fiford48hnopop
0xe44 - FIFO data read for upper data bits with no FIFO pop. May only be used if the I2S is configured for 2x 24-bit data and not using DMA.