Struct esp32s3_hal::pac::rtcio::pad_dac1::W
pub struct W(_);
Expand description
Register PAD_DAC1
writer
Implementations
impl W
impl W
pub fn pdac1_dac(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 8, 3>
pub fn pdac1_dac(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 8, 3>
Bits 3:10 - PDAC1_DAC
pub fn pdac1_xpd_dac(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 11>
pub fn pdac1_xpd_dac(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 11>
Bit 11 - PDAC1_XPD_DAC
pub fn pdac1_dac_xpd_force(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 12>
pub fn pdac1_dac_xpd_force(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 12>
Bit 12 - 1: use reg_pdac1_xpd_dac to control PDAC1_XPD_DAC,0: use SAR ADC FSM to control PDAC1_XPD_DAC
pub fn pdac1_fun_ie(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 13>
pub fn pdac1_fun_ie(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 13>
Bit 13 - input enable in work mode
pub fn pdac1_slp_oe(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 14>
pub fn pdac1_slp_oe(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 14>
Bit 14 - output enable in sleep mode
pub fn pdac1_slp_ie(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 15>
pub fn pdac1_slp_ie(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 15>
Bit 15 - input enable in sleep mode
pub fn pdac1_slp_sel(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 16>
pub fn pdac1_slp_sel(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 16>
Bit 16 - 1: enable sleep mode during sleep,0: no sleep mode
pub fn pdac1_fun_sel(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 2, 17>
pub fn pdac1_fun_sel(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 2, 17>
Bits 17:18 - PDAC1 function sel
pub fn pdac1_mux_sel(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 19>
pub fn pdac1_mux_sel(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 19>
Bit 19 - 1: use RTC GPIO,0: use digital GPIO
pub fn pdac1_rue(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 27>
pub fn pdac1_rue(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 27>
Bit 27 - PDAC1_RUE
pub fn pdac1_rde(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 28>
pub fn pdac1_rde(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 28>
Bit 28 - PDAC1_RDE
pub fn pdac1_drv(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 2, 29>
pub fn pdac1_drv(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 2, 29>
Bits 29:30 - PDAC1_DRV
Methods from Deref<Target = W<PAD_DAC1_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<PAD_DAC1_SPEC>> for W
impl From<W<PAD_DAC1_SPEC>> for W
fn from(writer: W<PAD_DAC1_SPEC>) -> W
fn from(writer: W<PAD_DAC1_SPEC>) -> W
Converts to this type from the input type.
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