Type Alias esp32s2::sens::sar_dac_ctrl2::R

source ·
pub type R = R<SAR_DAC_CTRL2_SPEC>;
Expand description

Register SAR_DAC_CTRL2 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn dac_dc1(&self) -> DAC_DC1_R

Bits 0:7 - DC offset for DAC1 CW generator.

source

pub fn dac_dc2(&self) -> DAC_DC2_R

Bits 8:15 - DC offset for DAC2 CW generator.

source

pub fn dac_scale1(&self) -> DAC_SCALE1_R

Bits 16:17 - DAC1 scaling. 00: no scale. 01: scale to 1/2. 10: scale to 1/4. 11: scale to 1/8.

source

pub fn dac_scale2(&self) -> DAC_SCALE2_R

Bits 18:19 - DAC2 scaling. 00: no scale. 01: scale to 1/2. 10: scale to 1/4. 11: scale to 1/8.

source

pub fn dac_inv1(&self) -> DAC_INV1_R

Bits 20:21 - Invert DAC1. 00: do not invert any bits. 01: invert all bits. 10: invert MSB. 11: invert all bits except MSB.

source

pub fn dac_inv2(&self) -> DAC_INV2_R

Bits 22:23 - Invert DAC2. 00: do not invert any bits. 01: invert all bits. 10: invert MSB. 11: invert all bits except MSB.

source

pub fn dac_cw_en1(&self) -> DAC_CW_EN1_R

Bit 24 - 1: select CW generator as source for PDAC1_DAC. 0: select register RT- CIO_PDAC1_DAC as source for PDAC1_DAC.

source

pub fn dac_cw_en2(&self) -> DAC_CW_EN2_R

Bit 25 - 1: select CW generator as source for PDAC2_DAC. 0: select register RT- CIO_PDAC2_DAC as source for PDAC2_DAC.