Struct esp32_hal::pac::sens::sar_start_force::W
pub struct W(_);
Expand description
Register SAR_START_FORCE
writer
Implementations§
§impl W
impl W
pub fn sar1_bit_width(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_START_FORCE_SPEC, u8, u8, Unsafe, 2, 0>
pub fn sar1_bit_width(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_START_FORCE_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - 00: 9 bit 01: 10 bits 10: 11bits 11: 12bits
pub fn sar2_bit_width(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_START_FORCE_SPEC, u8, u8, Unsafe, 2, 2>
pub fn sar2_bit_width(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_START_FORCE_SPEC, u8, u8, Unsafe, 2, 2>
Bits 2:3 - 00: 9 bit 01: 10 bits 10: 11bits 11: 12bits
pub fn sar2_en_test(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 4>
pub fn sar2_en_test(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 4>
Bit 4 - SAR2_EN_TEST only active when reg_sar2_dig_force = 0
pub fn sar2_pwdet_cct(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_START_FORCE_SPEC, u8, u8, Unsafe, 3, 5>
pub fn sar2_pwdet_cct(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_START_FORCE_SPEC, u8, u8, Unsafe, 3, 5>
Bits 5:7 - SAR2_PWDET_CCT PA power detector capacitance tuning.
pub fn ulp_cp_force_start_top(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 8>
pub fn ulp_cp_force_start_top(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 8>
Bit 8 - 1: ULP-coprocessor is started by SW 0: ULP-coprocessor is started by timer
pub fn ulp_cp_start_top(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 9>
pub fn ulp_cp_start_top(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 9>
Bit 9 - Write 1 to start ULP-coprocessor only active when reg_ulp_cp_force_start_top = 1
pub fn sarclk_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 10>
pub fn sarclk_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 10>
Bit 10
pub fn pc_init(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_START_FORCE_SPEC, u16, u16, Unsafe, 11, 11>
pub fn pc_init(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_START_FORCE_SPEC, u16, u16, Unsafe, 11, 11>
Bits 11:21 - initialized PC for ULP-coprocessor
pub fn sar2_stop(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 22>
pub fn sar2_stop(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 22>
Bit 22 - stop SAR ADC2 conversion
pub fn sar1_stop(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 23>
pub fn sar1_stop(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 23>
Bit 23 - stop SAR ADC1 conversion
pub fn sar2_pwdet_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 24>
pub fn sar2_pwdet_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_START_FORCE_SPEC, bool, BitM, 24>
Bit 24 - N/A
Methods from Deref<Target = W<SAR_START_FORCE_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_START_FORCE_SPEC>> for W
impl From<W<SAR_START_FORCE_SPEC>> for W
§fn from(writer: W<SAR_START_FORCE_SPEC>) -> W
fn from(writer: W<SAR_START_FORCE_SPEC>) -> W
Converts to this type from the input type.