Type Alias W

Source
pub type W = W<SAR_READ_CTRL_SPEC>;
Expand description

Register SAR_READ_CTRL writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn sar1_clk_div(&mut self) -> SAR1_CLK_DIV_W<'_, SAR_READ_CTRL_SPEC>

Bits 0:7 - clock divider

Source

pub fn sar1_sample_cycle( &mut self, ) -> SAR1_SAMPLE_CYCLE_W<'_, SAR_READ_CTRL_SPEC>

Bits 8:15 - sample cycles for SAR ADC1

Source

pub fn sar1_sample_bit(&mut self) -> SAR1_SAMPLE_BIT_W<'_, SAR_READ_CTRL_SPEC>

Bits 16:17 - 00: for 9-bit width 01: for 10-bit width 10: for 11-bit width 11: for 12-bit width

Source

pub fn sar1_clk_gated(&mut self) -> SAR1_CLK_GATED_W<'_, SAR_READ_CTRL_SPEC>

Bit 18

Source

pub fn sar1_sample_num(&mut self) -> SAR1_SAMPLE_NUM_W<'_, SAR_READ_CTRL_SPEC>

Bits 19:26

Source

pub fn sar1_dig_force(&mut self) -> SAR1_DIG_FORCE_W<'_, SAR_READ_CTRL_SPEC>

Bit 27 - 1: SAR ADC1 controlled by DIG ADC1 CTRL 0: SAR ADC1 controlled by RTC ADC1 CTRL

Source

pub fn sar1_data_inv(&mut self) -> SAR1_DATA_INV_W<'_, SAR_READ_CTRL_SPEC>

Bit 28 - Invert SAR ADC1 data