Struct esp32_hal::pac::sens::sar_dac_ctrl2::R
pub struct R(_);
Expand description
Register SAR_DAC_CTRL2
reader
Implementations§
§impl R
impl R
pub fn dac_scale1(&self) -> FieldReaderRaw<u8, u8>
pub fn dac_scale1(&self) -> FieldReaderRaw<u8, u8>
Bits 16:17 - 00: no scale 01: scale to 1/2 10: scale to 1/4 scale to 1/8
pub fn dac_scale2(&self) -> FieldReaderRaw<u8, u8>
pub fn dac_scale2(&self) -> FieldReaderRaw<u8, u8>
Bits 18:19 - 00: no scale 01: scale to 1/2 10: scale to 1/4 scale to 1/8
pub fn dac_inv1(&self) -> FieldReaderRaw<u8, u8>
pub fn dac_inv1(&self) -> FieldReaderRaw<u8, u8>
Bits 20:21 - 00: do not invert any bits 01: invert all bits 10: invert MSB 11: invert all bits except MSB
pub fn dac_inv2(&self) -> FieldReaderRaw<u8, u8>
pub fn dac_inv2(&self) -> FieldReaderRaw<u8, u8>
Bits 22:23 - 00: do not invert any bits 01: invert all bits 10: invert MSB 11: invert all bits except MSB
pub fn dac_cw_en1(&self) -> BitReaderRaw<bool>
pub fn dac_cw_en1(&self) -> BitReaderRaw<bool>
Bit 24 - 1: to select CW generator as source to PDAC1_DAC[7:0] 0: to select register reg_pdac1_dac[7:0] as source to PDAC1_DAC[7:0]
pub fn dac_cw_en2(&self) -> BitReaderRaw<bool>
pub fn dac_cw_en2(&self) -> BitReaderRaw<bool>
Bit 25 - 1: to select CW generator as source to PDAC2_DAC[7:0] 0: to select register reg_pdac2_dac[7:0] as source to PDAC2_DAC[7:0]
Methods from Deref<Target = R<SAR_DAC_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_DAC_CTRL2_SPEC>> for R
impl From<R<SAR_DAC_CTRL2_SPEC>> for R
§fn from(reader: R<SAR_DAC_CTRL2_SPEC>) -> R
fn from(reader: R<SAR_DAC_CTRL2_SPEC>) -> R
Converts to this type from the input type.