Type Alias esp32h2::apb_saradc::ctrl2::W

source ·
pub type W = W<CTRL2_SPEC>;
Expand description

Register CTRL2 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn saradc_meas_num_limit( &mut self ) -> SARADC_MEAS_NUM_LIMIT_W<'_, CTRL2_SPEC>

Bit 0 - enable max meas num

source

pub fn saradc_max_meas_num(&mut self) -> SARADC_MAX_MEAS_NUM_W<'_, CTRL2_SPEC>

Bits 1:8 - max conversion number

source

pub fn saradc_sar1_inv(&mut self) -> SARADC_SAR1_INV_W<'_, CTRL2_SPEC>

Bit 9 - 1: data to DIG ADC1 CTRL is inverted, otherwise not

source

pub fn saradc_sar2_inv(&mut self) -> SARADC_SAR2_INV_W<'_, CTRL2_SPEC>

Bit 10 - 1: data to DIG ADC2 CTRL is inverted, otherwise not

source

pub fn saradc_timer_target(&mut self) -> SARADC_TIMER_TARGET_W<'_, CTRL2_SPEC>

Bits 12:23 - to set saradc timer target

source

pub fn saradc_timer_en(&mut self) -> SARADC_TIMER_EN_W<'_, CTRL2_SPEC>

Bit 24 - to enable saradc timer trigger

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual