Struct esp32_hal::pac::sens::sar_read_ctrl2::R
pub struct R(_);
Expand description
Register SAR_READ_CTRL2
reader
Implementations§
§impl R
impl R
pub fn sar2_clk_div(&self) -> FieldReaderRaw<u8, u8>
pub fn sar2_clk_div(&self) -> FieldReaderRaw<u8, u8>
Bits 0:7 - clock divider
pub fn sar2_sample_cycle(&self) -> FieldReaderRaw<u8, u8>
pub fn sar2_sample_cycle(&self) -> FieldReaderRaw<u8, u8>
Bits 8:15 - sample cycles for SAR ADC2
pub fn sar2_sample_bit(&self) -> FieldReaderRaw<u8, u8>
pub fn sar2_sample_bit(&self) -> FieldReaderRaw<u8, u8>
Bits 16:17 - 00: for 9-bit width 01: for 10-bit width 10: for 11-bit width 11: for 12-bit width
pub fn sar2_clk_gated(&self) -> BitReaderRaw<bool>
pub fn sar2_clk_gated(&self) -> BitReaderRaw<bool>
Bit 18
pub fn sar2_sample_num(&self) -> FieldReaderRaw<u8, u8>
pub fn sar2_sample_num(&self) -> FieldReaderRaw<u8, u8>
Bits 19:26
pub fn sar2_pwdet_force(&self) -> BitReaderRaw<bool>
pub fn sar2_pwdet_force(&self) -> BitReaderRaw<bool>
Bit 27
pub fn sar2_dig_force(&self) -> BitReaderRaw<bool>
pub fn sar2_dig_force(&self) -> BitReaderRaw<bool>
Bit 28 - 1: SAR ADC2 controlled by DIG ADC2 CTRL or PWDET CTRL 0: SAR ADC2 controlled by RTC ADC2 CTRL
pub fn sar2_data_inv(&self) -> BitReaderRaw<bool>
pub fn sar2_data_inv(&self) -> BitReaderRaw<bool>
Bit 29 - Invert SAR ADC2 data
Methods from Deref<Target = R<SAR_READ_CTRL2_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations§
§impl From<R<SAR_READ_CTRL2_SPEC>> for R
impl From<R<SAR_READ_CTRL2_SPEC>> for R
§fn from(reader: R<SAR_READ_CTRL2_SPEC>) -> R
fn from(reader: R<SAR_READ_CTRL2_SPEC>) -> R
Converts to this type from the input type.