Struct d1_pac::audio_codec::ramp::R
source · pub struct R(/* private fields */);
Expand description
Register ramp
reader
Implementations§
source§impl R
impl R
sourcepub fn ramp_step(&self) -> RAMP_STEP_R
pub fn ramp_step(&self) -> RAMP_STEP_R
Bits 4:6 - RK Frequency Gear, Control Ramp Rise/Fall Total Time
Ramp Rise/Fall Total Time = (Ramp Step/Ramp Clk Freq)*4096
sourcepub fn gap_step(&self) -> GAP_STEP_R
pub fn gap_step(&self) -> GAP_STEP_R
Bits 8:9 - Gap Step
sourcepub fn ramp_hold_step(&self) -> RAMP_HOLD_STEP_R
pub fn ramp_hold_step(&self) -> RAMP_HOLD_STEP_R
Bits 12:14 - Ramp Hold Step
Ramp Hold Time = Ramp Hold Step/Ramp Clk Freq
sourcepub fn hp_pull_out_en(&self) -> HP_PULL_OUT_EN_R
pub fn hp_pull_out_en(&self) -> HP_PULL_OUT_EN_R
Bit 15 - Headphone Pullout Enable
sourcepub fn ramp_clk_div_m(&self) -> RAMP_CLK_DIV_M_R
pub fn ramp_clk_div_m(&self) -> RAMP_CLK_DIV_M_R
Bits 16:20 - Analog Ramp Clk Div Freq Value : M (from 0 to 31, Default: 24).
Ana_Ramp_Clk= 24MHz/(M+1)
Default Ramp Clk Freq: 24MHz/(24+1)=960 kHz
sourcepub fn ramp_srst(&self) -> RAMP_SRST_R
pub fn ramp_srst(&self) -> RAMP_SRST_R
Bit 24 - Ramp Soft Reset
sourcepub fn ramp_fall_int(&self) -> RAMP_FALL_INT_R
pub fn ramp_fall_int(&self) -> RAMP_FALL_INT_R
Bit 28 - RK Downward Decrease Finish and Rampen Pull Down Instruction
sourcepub fn ramp_fall_int_en(&self) -> RAMP_FALL_INT_EN_R
pub fn ramp_fall_int_en(&self) -> RAMP_FALL_INT_EN_R
Bit 29 - RAMP Fall Int Enable
sourcepub fn ramp_rise_int(&self) -> RAMP_RISE_INT_R
pub fn ramp_rise_int(&self) -> RAMP_RISE_INT_R
Bit 30 - RK Increase Upward Finish and Rampen Pull Down Instruction
sourcepub fn ramp_rise_int_en(&self) -> RAMP_RISE_INT_EN_R
pub fn ramp_rise_int_en(&self) -> RAMP_RISE_INT_EN_R
Bit 31 - RAMP Rise Interrupt Enable
Methods from Deref<Target = R<RAMP_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for R
impl RefUnwindSafe for R
impl Send for R
impl Sync for R
impl Unpin for R
impl UnwindSafe for R
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