Struct Ctrl
#[repr(transparent)]pub struct Ctrl(pub u32);Expand description
Aditional PDM configurability
Tuple Fields§
§0: u32Implementations§
§impl Ctrl
impl Ctrl
pub const fn overriderightsoftmute(&self) -> bool
pub const fn overriderightsoftmute(&self) -> bool
Override soft mute enable for right channel
pub const fn set_overriderightsoftmute(&mut self, val: bool)
pub const fn set_overriderightsoftmute(&mut self, val: bool)
Override soft mute enable for right channel
pub const fn overrideleftsoftmute(&self) -> bool
pub const fn overrideleftsoftmute(&self) -> bool
Override soft mute enable for left channel
pub const fn set_overrideleftsoftmute(&mut self, val: bool)
pub const fn set_overrideleftsoftmute(&mut self, val: bool)
Override soft mute enable for left channel
pub const fn gainadd0p25(&self) -> bool
pub const fn gainadd0p25(&self) -> bool
Add +0.25dB to the gain stage
pub const fn set_gainadd0p25(&mut self, val: bool)
pub const fn set_gainadd0p25(&mut self, val: bool)
Add +0.25dB to the gain stage
pub const fn minorstep025custom(&self) -> bool
pub const fn minorstep025custom(&self) -> bool
Compensates Gain with +0.25dB
pub const fn set_minorstep025custom(&mut self, val: bool)
pub const fn set_minorstep025custom(&mut self, val: bool)
Compensates Gain with +0.25dB
pub const fn minorstep050custom(&self) -> u8
pub const fn minorstep050custom(&self) -> u8
Compensates Gain with +0.5dB steps
pub const fn set_minorstep050custom(&mut self, val: u8)
pub const fn set_minorstep050custom(&mut self, val: u8)
Compensates Gain with +0.5dB steps
pub const fn softcycles(&self) -> u8
pub const fn softcycles(&self) -> u8
Custom number of cycles for soft gain/mute function 32*(Multiplication+1) steps
pub const fn set_softcycles(&mut self, val: u8)
pub const fn set_softcycles(&mut self, val: u8)
Custom number of cycles for soft gain/mute function 32*(Multiplication+1) steps
pub const fn datasampledelay(&self) -> Datasampledelay
pub const fn datasampledelay(&self) -> Datasampledelay
Input data sampling point delay in PDM_CLK cycels
pub const fn set_datasampledelay(&mut self, val: Datasampledelay)
pub const fn set_datasampledelay(&mut self, val: Datasampledelay)
Input data sampling point delay in PDM_CLK cycels
pub const fn cicfiltermsbcustom(&self) -> Cicfiltermsbcustom
pub const fn cicfiltermsbcustom(&self) -> Cicfiltermsbcustom
Defines MSB for CIC fliter when RATIO is set to ‘custom’
pub const fn set_cicfiltermsbcustom(&mut self, val: Cicfiltermsbcustom)
pub const fn set_cicfiltermsbcustom(&mut self, val: Cicfiltermsbcustom)
Defines MSB for CIC fliter when RATIO is set to ‘custom’
pub const fn set_decratio(&mut self, val: u8)
pub const fn set_decratio(&mut self, val: u8)
Configures decimation ratio to any even number between 6 and 256