Struct esp32::sens::sar_read_ctrl2::W
source · pub struct W(_);Expand description
Register SAR_READ_CTRL2 writer
Implementations§
source§impl W
impl W
sourcepub fn sar2_clk_div(&mut self) -> SAR2_CLK_DIV_W<'_, 0>
pub fn sar2_clk_div(&mut self) -> SAR2_CLK_DIV_W<'_, 0>
Bits 0:7 - clock divider
sourcepub fn sar2_sample_cycle(&mut self) -> SAR2_SAMPLE_CYCLE_W<'_, 8>
pub fn sar2_sample_cycle(&mut self) -> SAR2_SAMPLE_CYCLE_W<'_, 8>
Bits 8:15 - sample cycles for SAR ADC2
sourcepub fn sar2_sample_bit(&mut self) -> SAR2_SAMPLE_BIT_W<'_, 16>
pub fn sar2_sample_bit(&mut self) -> SAR2_SAMPLE_BIT_W<'_, 16>
Bits 16:17 - 00: for 9-bit width 01: for 10-bit width 10: for 11-bit width 11: for 12-bit width
sourcepub fn sar2_clk_gated(&mut self) -> SAR2_CLK_GATED_W<'_, 18>
pub fn sar2_clk_gated(&mut self) -> SAR2_CLK_GATED_W<'_, 18>
Bit 18
sourcepub fn sar2_sample_num(&mut self) -> SAR2_SAMPLE_NUM_W<'_, 19>
pub fn sar2_sample_num(&mut self) -> SAR2_SAMPLE_NUM_W<'_, 19>
Bits 19:26
sourcepub fn sar2_pwdet_force(&mut self) -> SAR2_PWDET_FORCE_W<'_, 27>
pub fn sar2_pwdet_force(&mut self) -> SAR2_PWDET_FORCE_W<'_, 27>
Bit 27
sourcepub fn sar2_dig_force(&mut self) -> SAR2_DIG_FORCE_W<'_, 28>
pub fn sar2_dig_force(&mut self) -> SAR2_DIG_FORCE_W<'_, 28>
Bit 28 - 1: SAR ADC2 controlled by DIG ADC2 CTRL or PWDET CTRL 0: SAR ADC2 controlled by RTC ADC2 CTRL
sourcepub fn sar2_data_inv(&mut self) -> SAR2_DATA_INV_W<'_, 29>
pub fn sar2_data_inv(&mut self) -> SAR2_DATA_INV_W<'_, 29>
Bit 29 - Invert SAR ADC2 data