Struct esp32c2_hal::pac::apb_saradc::ctrl::W
pub struct W(_);
Expand description
Register CTRL
writer
Implementations
impl W
impl W
pub fn saradc_start_force(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 0>
pub fn saradc_start_force(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 0>
Bit 0 - Need add description
pub fn saradc_start(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 1>
pub fn saradc_start(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 1>
Bit 1 - Need add description
pub fn saradc_sar_clk_gated(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 6>
pub fn saradc_sar_clk_gated(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 6>
Bit 6 - Need add description
pub fn saradc_sar_clk_div(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL_SPEC, u8, u8, Unsafe, 8, 7>
pub fn saradc_sar_clk_div(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL_SPEC, u8, u8, Unsafe, 8, 7>
Bits 7:14 - SAR clock divider
pub fn saradc_sar_patt_len(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL_SPEC, u8, u8, Unsafe, 3, 15>
pub fn saradc_sar_patt_len(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL_SPEC, u8, u8, Unsafe, 3, 15>
Bits 15:17 - 0 ~ 15 means length 1 ~ 16
pub fn saradc_sar_patt_p_clear(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 23>
pub fn saradc_sar_patt_p_clear(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 23>
Bit 23 - clear the pointer of pattern table for DIG ADC1 CTRL
pub fn saradc_xpd_sar_force(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL_SPEC, u8, u8, Unsafe, 2, 27>
pub fn saradc_xpd_sar_force(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL_SPEC, u8, u8, Unsafe, 2, 27>
Bits 27:28 - force option to xpd sar blocks
pub fn saradc_wait_arb_cycle(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL_SPEC, u8, u8, Unsafe, 2, 30>
pub fn saradc_wait_arb_cycle(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL_SPEC, u8, u8, Unsafe, 2, 30>
Bits 30:31 - wait arbit signal stable after sar_done
Methods from Deref<Target = W<CTRL_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
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more