Struct esp32s3_hal::pac::sens::sar_reader2_ctrl::W
pub struct W(_);
Expand description
Register SAR_READER2_CTRL
writer
Implementations§
§impl W
impl W
pub fn sar_sar2_clk_div(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, u8, u8, Unsafe, 8, 0>
pub fn sar_sar2_clk_div(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, u8, u8, Unsafe, 8, 0>
Bits 0:7 - clock divider
pub fn sar_sar2_wait_arb_cycle(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, u8, u8, Unsafe, 2, 16>
pub fn sar_sar2_wait_arb_cycle(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, u8, u8, Unsafe, 2, 16>
Bits 16:17 - wait arbit stable after sar_done
pub fn sar_sar2_clk_gated(
&mut self
) -> BitWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, bool, BitM, 18>
pub fn sar_sar2_clk_gated(
&mut self
) -> BitWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, bool, BitM, 18>
Bit 18 - ******* Description ***********
pub fn sar_sar2_sample_num(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, u8, u8, Unsafe, 8, 19>
pub fn sar_sar2_sample_num(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, u8, u8, Unsafe, 8, 19>
Bits 19:26 - ******* Description ***********
pub fn sar_sar2_data_inv(
&mut self
) -> BitWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, bool, BitM, 29>
pub fn sar_sar2_data_inv(
&mut self
) -> BitWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, bool, BitM, 29>
Bit 29 - Invert SAR ADC2 data
pub fn sar_sar2_int_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, bool, BitM, 30>
pub fn sar_sar2_int_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_READER2_CTRL_SPEC, bool, BitM, 30>
Bit 30 - enable saradc2 to send out interrupt
Methods from Deref<Target = W<SAR_READER2_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§
§impl From<W<SAR_READER2_CTRL_SPEC>> for W
impl From<W<SAR_READER2_CTRL_SPEC>> for W
§fn from(writer: W<SAR_READER2_CTRL_SPEC>) -> W
fn from(writer: W<SAR_READER2_CTRL_SPEC>) -> W
Converts to this type from the input type.