#[repr(transparent)]pub struct Ctrl(pub u32);Expand description
Aditional PDM configurability
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn overriderightsoftmute(&self) -> bool
pub const fn overriderightsoftmute(&self) -> bool
Override soft mute enable for right channel
Sourcepub const fn set_overriderightsoftmute(&mut self, val: bool)
pub const fn set_overriderightsoftmute(&mut self, val: bool)
Override soft mute enable for right channel
Sourcepub const fn overrideleftsoftmute(&self) -> bool
pub const fn overrideleftsoftmute(&self) -> bool
Override soft mute enable for left channel
Sourcepub const fn set_overrideleftsoftmute(&mut self, val: bool)
pub const fn set_overrideleftsoftmute(&mut self, val: bool)
Override soft mute enable for left channel
Sourcepub const fn gainadd0p25(&self) -> bool
pub const fn gainadd0p25(&self) -> bool
Add +0.25dB to the gain stage
Sourcepub const fn set_gainadd0p25(&mut self, val: bool)
pub const fn set_gainadd0p25(&mut self, val: bool)
Add +0.25dB to the gain stage
Sourcepub const fn minorstep025custom(&self) -> bool
pub const fn minorstep025custom(&self) -> bool
Compensates Gain with +0.25dB
Sourcepub const fn set_minorstep025custom(&mut self, val: bool)
pub const fn set_minorstep025custom(&mut self, val: bool)
Compensates Gain with +0.25dB
Sourcepub const fn minorstep050custom(&self) -> u8
pub const fn minorstep050custom(&self) -> u8
Compensates Gain with +0.5dB steps
Sourcepub const fn set_minorstep050custom(&mut self, val: u8)
pub const fn set_minorstep050custom(&mut self, val: u8)
Compensates Gain with +0.5dB steps
Sourcepub const fn softcycles(&self) -> u8
pub const fn softcycles(&self) -> u8
Custom number of cycles for soft gain/mute function 32*(Multiplication+1) steps
Sourcepub 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
Sourcepub const fn datasampledelay(&self) -> Datasampledelay
pub const fn datasampledelay(&self) -> Datasampledelay
Input data sampling point delay in PDM_CLK cycels
Sourcepub 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
Sourcepub const fn cicfiltermsbcustom(&self) -> Cicfiltermsbcustom
pub const fn cicfiltermsbcustom(&self) -> Cicfiltermsbcustom
Defines MSB for CIC fliter when RATIO is set to ‘custom’
Sourcepub 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’
Sourcepub const fn decratio(&self) -> u8
pub const fn decratio(&self) -> u8
Configures decimation ratio to any even number between 6 and 256
Sourcepub 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
Trait Implementations§
impl Copy for Ctrl
impl Eq for Ctrl
impl StructuralPartialEq for Ctrl
Auto Trait Implementations§
impl Freeze for Ctrl
impl RefUnwindSafe for Ctrl
impl Send for Ctrl
impl Sync for Ctrl
impl Unpin for Ctrl
impl UnwindSafe for Ctrl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)