pub struct DMIC { /* private fields */ }Expand description
DMIC
Implementations§
Source§impl DMIC
impl DMIC
Sourcepub const PTR: *const RegisterBlock = {0x2031000 as *const dmic::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2031000 as *const dmic::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 dmic_rxfifo_ctr(&self) -> &DMIC_RXFIFO_CTR
pub fn dmic_rxfifo_ctr(&self) -> &DMIC_RXFIFO_CTR
0x1c - DMIC RXFIFO Control Register
Sourcepub fn dmic_rxfifo_sta(&self) -> &DMIC_RXFIFO_STA
pub fn dmic_rxfifo_sta(&self) -> &DMIC_RXFIFO_STA
0x20 - DMIC RXFIFO Status Register
Sourcepub fn dmic_ch_num(&self) -> &DMIC_CH_NUM
pub fn dmic_ch_num(&self) -> &DMIC_CH_NUM
0x24 - DMIC Channel Numbers Register
Sourcepub fn dmic_ch_map(&self) -> &DMIC_CH_MAP
pub fn dmic_ch_map(&self) -> &DMIC_CH_MAP
0x28 - DMIC Channel Mapping Register
Sourcepub fn data0_data1_vol_ctr(&self) -> &DATA0_DATA1_VOL_CTR
pub fn data0_data1_vol_ctr(&self) -> &DATA0_DATA1_VOL_CTR
0x30 - Data0 and Data1 Volume Control Register
Sourcepub fn data2_data3_vol_ctr(&self) -> &DATA2_DATA3_VOL_CTR
pub fn data2_data3_vol_ctr(&self) -> &DATA2_DATA3_VOL_CTR
0x34 - Data2 And Data3 Volume Control Register
Sourcepub fn hpf_en_ctr(&self) -> &HPF_EN_CTR
pub fn hpf_en_ctr(&self) -> &HPF_EN_CTR
0x38 - High Pass Filter Enable Control Register