Struct esp32_hal::pac::sens::sar_dac_ctrl2::R

pub struct R(_);
Expand description

Register SAR_DAC_CTRL2 reader

Implementations§

Bits 0:7 - DC offset for DAC1 CW generator

Bits 8:15 - DC offset for DAC2 CW generator

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

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

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

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

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]

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>>§

Reads raw bits from register.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.