Struct esp32_hal::pac::sens::sar_dac_ctrl1::W
pub struct W(_);
Expand description
Register SAR_DAC_CTRL1
writer
Implementations§
§impl W
impl W
pub fn sw_fstep(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, u16, u16, Unsafe, 16, 0>
pub fn sw_fstep(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, u16, u16, Unsafe, 16, 0>
Bits 0:15 - frequency step for CW generator can be used to adjust the frequency
pub fn sw_tone_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 16>
pub fn sw_tone_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 16>
Bit 16 - 1: enable CW generator 0: disable CW generator
pub fn debug_bit_sel(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, u8, u8, Unsafe, 5, 17>
pub fn debug_bit_sel(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, u8, u8, Unsafe, 5, 17>
Bits 17:21
pub fn dac_dig_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 22>
pub fn dac_dig_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 22>
Bit 22 - 1: DAC1 & DAC2 use DMA 0: DAC1 & DAC2 do not use DMA
pub fn dac_clk_force_low(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 23>
pub fn dac_clk_force_low(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 23>
Bit 23 - 1: force PDAC_CLK to low
pub fn dac_clk_force_high(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 24>
pub fn dac_clk_force_high(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 24>
Bit 24 - 1: force PDAC_CLK to high
pub fn dac_clk_inv(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 25>
pub fn dac_clk_inv(
&mut self
) -> BitWriterRaw<'_, u32, SAR_DAC_CTRL1_SPEC, bool, BitM, 25>
Bit 25 - 1: invert PDAC_CLK
Methods from Deref<Target = W<SAR_DAC_CTRL1_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations§
§impl From<W<SAR_DAC_CTRL1_SPEC>> for W
impl From<W<SAR_DAC_CTRL1_SPEC>> for W
§fn from(writer: W<SAR_DAC_CTRL1_SPEC>) -> W
fn from(writer: W<SAR_DAC_CTRL1_SPEC>) -> W
Converts to this type from the input type.