Struct esp32_hal::pac::apb_ctrl::apb_saradc_ctrl::R
pub struct R(_);
Expand description
Register APB_SARADC_CTRL
reader
Implementations§
§impl R
impl R
pub fn saradc_start_force(&self) -> BitReaderRaw<bool>
pub fn saradc_start_force(&self) -> BitReaderRaw<bool>
Bit 0
pub fn saradc_start(&self) -> BitReaderRaw<bool>
pub fn saradc_start(&self) -> BitReaderRaw<bool>
Bit 1
pub fn saradc_sar2_mux(&self) -> BitReaderRaw<bool>
pub fn saradc_sar2_mux(&self) -> BitReaderRaw<bool>
Bit 2 - 1: SAR ADC2 is controlled by DIG ADC2 CTRL 0: SAR ADC2 is controlled by PWDET CTRL
pub fn saradc_work_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn saradc_work_mode(&self) -> FieldReaderRaw<u8, u8>
Bits 3:4 - 0: single mode 1: double mode 2: alternate mode
pub fn saradc_sar_sel(&self) -> BitReaderRaw<bool>
pub fn saradc_sar_sel(&self) -> BitReaderRaw<bool>
Bit 5 - 0: SAR1 1: SAR2 only work for single SAR mode
pub fn saradc_sar_clk_gated(&self) -> BitReaderRaw<bool>
pub fn saradc_sar_clk_gated(&self) -> BitReaderRaw<bool>
Bit 6
pub fn saradc_sar_clk_div(&self) -> FieldReaderRaw<u8, u8>
pub fn saradc_sar_clk_div(&self) -> FieldReaderRaw<u8, u8>
Bits 7:14 - SAR clock divider
pub fn saradc_sar1_patt_len(&self) -> FieldReaderRaw<u8, u8>
pub fn saradc_sar1_patt_len(&self) -> FieldReaderRaw<u8, u8>
Bits 15:18 - 0 ~ 15 means length 1 ~ 16
pub fn saradc_sar2_patt_len(&self) -> FieldReaderRaw<u8, u8>
pub fn saradc_sar2_patt_len(&self) -> FieldReaderRaw<u8, u8>
Bits 19:22 - 0 ~ 15 means length 1 ~ 16
pub fn saradc_sar1_patt_p_clear(&self) -> BitReaderRaw<bool>
pub fn saradc_sar1_patt_p_clear(&self) -> BitReaderRaw<bool>
Bit 23 - clear the pointer of pattern table for DIG ADC1 CTRL
pub fn saradc_sar2_patt_p_clear(&self) -> BitReaderRaw<bool>
pub fn saradc_sar2_patt_p_clear(&self) -> BitReaderRaw<bool>
Bit 24 - clear the pointer of pattern table for DIG ADC2 CTRL
pub fn saradc_data_sar_sel(&self) -> BitReaderRaw<bool>
pub fn saradc_data_sar_sel(&self) -> BitReaderRaw<bool>
Bit 25 - 1: sar_sel will be coded by the MSB of the 16-bit output data in this case the resolution should not be larger than 11 bits.
pub fn saradc_data_to_i2s(&self) -> BitReaderRaw<bool>
pub fn saradc_data_to_i2s(&self) -> BitReaderRaw<bool>
Bit 26 - 1: I2S input data is from SAR ADC (for DMA) 0: I2S input data is from GPIO matrix
Methods from Deref<Target = R<APB_SARADC_CTRL_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<APB_SARADC_CTRL_SPEC>> for R
impl From<R<APB_SARADC_CTRL_SPEC>> for R
§fn from(reader: R<APB_SARADC_CTRL_SPEC>) -> R
fn from(reader: R<APB_SARADC_CTRL_SPEC>) -> R
Converts to this type from the input type.