Struct d1_pac::lradc::lradc_ctrl::W
source · pub struct W(/* private fields */);
Expand description
Register lradc_ctrl
writer
Implementations§
source§impl W
impl W
sourcepub fn lradc_en(&mut self) -> LRADC_EN_W<'_, 0>
pub fn lradc_en(&mut self) -> LRADC_EN_W<'_, 0>
Bit 0 - LRADC Enable
sourcepub fn lradc_sample_rate(&mut self) -> LRADC_SAMPLE_RATE_W<'_, 2>
pub fn lradc_sample_rate(&mut self) -> LRADC_SAMPLE_RATE_W<'_, 2>
Bits 2:3 - LRADC Sample Rate
sourcepub fn levelb_vol(&mut self) -> LEVELB_VOL_W<'_, 4>
pub fn levelb_vol(&mut self) -> LEVELB_VOL_W<'_, 4>
Bits 4:5 - Level B Corresponding Data Value Setting (the real voltage value)
sourcepub fn lradc_channel_en(&mut self) -> LRADC_CHANNEL_EN_W<'_, 6>
pub fn lradc_channel_en(&mut self) -> LRADC_CHANNEL_EN_W<'_, 6>
Bit 6 - LRADC Channel Enable
sourcepub fn lradc_hold_key_en(&mut self) -> LRADC_HOLD_KEY_EN_W<'_, 7>
pub fn lradc_hold_key_en(&mut self) -> LRADC_HOLD_KEY_EN_W<'_, 7>
Bit 7 - LRADC Hold Key Enable
sourcepub fn levela_b_cnt(&mut self) -> LEVELA_B_CNT_W<'_, 8>
pub fn levela_b_cnt(&mut self) -> LEVELA_B_CNT_W<'_, 8>
Bits 8:11 - Level A to B time threshold select
sourcepub fn key_mode_select(&mut self) -> KEY_MODE_SELECT_W<'_, 12>
pub fn key_mode_select(&mut self) -> KEY_MODE_SELECT_W<'_, 12>
Bits 12:13 - Key Mode Select
sourcepub fn continue_time_select(&mut self) -> CONTINUE_TIME_SELECT_W<'_, 16>
pub fn continue_time_select(&mut self) -> CONTINUE_TIME_SELECT_W<'_, 16>
Bits 16:19 - Continuous Mode Time Select
sourcepub fn first_convert_dly(&mut self) -> FIRST_CONVERT_DLY_W<'_, 24>
pub fn first_convert_dly(&mut self) -> FIRST_CONVERT_DLY_W<'_, 24>
Bits 24:31 - ADC First Convert Delay Setting
Methods from Deref<Target = W<LRADC_CTRL_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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