Struct esp32_hal::pac::apb_ctrl::apb_saradc_ctrl2::W
pub struct W(_);
Expand description
Register APB_SARADC_CTRL2
writer
Implementations§
§impl W
impl W
pub fn saradc_meas_num_limit(
&mut self
) -> BitWriterRaw<'_, u32, APB_SARADC_CTRL2_SPEC, bool, BitM, 0>
pub fn saradc_meas_num_limit(
&mut self
) -> BitWriterRaw<'_, u32, APB_SARADC_CTRL2_SPEC, bool, BitM, 0>
Bit 0
pub fn saradc_max_meas_num(
&mut self
) -> FieldWriterRaw<'_, u32, APB_SARADC_CTRL2_SPEC, u8, u8, Unsafe, 8, 1>
pub fn saradc_max_meas_num(
&mut self
) -> FieldWriterRaw<'_, u32, APB_SARADC_CTRL2_SPEC, u8, u8, Unsafe, 8, 1>
Bits 1:8 - max conversion number
pub fn saradc_sar1_inv(
&mut self
) -> BitWriterRaw<'_, u32, APB_SARADC_CTRL2_SPEC, bool, BitM, 9>
pub fn saradc_sar1_inv(
&mut self
) -> BitWriterRaw<'_, u32, APB_SARADC_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, APB_SARADC_CTRL2_SPEC, bool, BitM, 10>
pub fn saradc_sar2_inv(
&mut self
) -> BitWriterRaw<'_, u32, APB_SARADC_CTRL2_SPEC, bool, BitM, 10>
Bit 10 - 1: data to DIG ADC2 CTRL is inverted otherwise not
Methods from Deref<Target = W<APB_SARADC_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<APB_SARADC_CTRL2_SPEC>> for W
impl From<W<APB_SARADC_CTRL2_SPEC>> for W
§fn from(writer: W<APB_SARADC_CTRL2_SPEC>) -> W
fn from(writer: W<APB_SARADC_CTRL2_SPEC>) -> W
Converts to this type from the input type.