Struct esp32c2_hal::pac::apb_saradc::ctrl2::W
pub struct W(_);
Expand description
Register CTRL2
writer
Implementations§
§impl W
impl W
pub fn saradc_meas_num_limit(
&mut self
) -> BitWriterRaw<'_, u32, CTRL2_SPEC, bool, BitM, 0>
pub fn saradc_meas_num_limit(
&mut self
) -> BitWriterRaw<'_, u32, CTRL2_SPEC, bool, BitM, 0>
Bit 0 - Need add description
pub fn saradc_max_meas_num(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL2_SPEC, u8, u8, Unsafe, 8, 1>
pub fn saradc_max_meas_num(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL2_SPEC, u8, u8, Unsafe, 8, 1>
Bits 1:8 - max conversion number
pub fn saradc_sar1_inv(
&mut self
) -> BitWriterRaw<'_, u32, CTRL2_SPEC, bool, BitM, 9>
pub fn saradc_sar1_inv(
&mut self
) -> BitWriterRaw<'_, u32, CTRL2_SPEC, bool, BitM, 9>
Bit 9 - 1: data to DIG ADC1 CTRL is inverted, otherwise not
pub fn saradc_sar2_inv(
&mut self
) -> BitWriterRaw<'_, u32, CTRL2_SPEC, bool, BitM, 10>
pub fn saradc_sar2_inv(
&mut self
) -> BitWriterRaw<'_, u32, CTRL2_SPEC, bool, BitM, 10>
Bit 10 - 1: data to DIG ADC2 CTRL is inverted, otherwise not
pub fn saradc_timer_target(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL2_SPEC, u16, u16, Unsafe, 12, 12>
pub fn saradc_timer_target(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL2_SPEC, u16, u16, Unsafe, 12, 12>
Bits 12:23 - to set saradc timer target
pub fn saradc_timer_en(
&mut self
) -> BitWriterRaw<'_, u32, CTRL2_SPEC, bool, BitM, 24>
pub fn saradc_timer_en(
&mut self
) -> BitWriterRaw<'_, u32, CTRL2_SPEC, bool, BitM, 24>
Bit 24 - to enable saradc timer trigger
Methods from Deref<Target = W<CTRL2_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<CTRL2_SPEC>> for W
impl From<W<CTRL2_SPEC>> for W
§fn from(writer: W<CTRL2_SPEC>) -> W
fn from(writer: W<CTRL2_SPEC>) -> W
Converts to this type from the input type.