pub struct W(_);
Expand description
Register PAD_DAC1
writer
Implementations§
§impl W
impl W
pub fn pdac1_dac_xpd_force(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 10>
pub fn pdac1_dac_xpd_force(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 10>
Bit 10 - Power on DAC1. Usually we need to tristate PDAC1 if we power on the DAC i.e. IE=0 OE=0 RDE=0 RUE=0
pub fn pdac1_fun_ie(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 11>
pub fn pdac1_fun_ie(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 11>
Bit 11 - the input enable of the pad
pub fn pdac1_slp_oe(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 12>
pub fn pdac1_slp_oe(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 12>
Bit 12 - the output enable of the pad in sleep status
pub fn pdac1_slp_ie(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 13>
pub fn pdac1_slp_ie(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 13>
Bit 13 - the input enable of the pad in sleep status
pub fn pdac1_slp_sel(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 14>
pub fn pdac1_slp_sel(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 14>
Bit 14 - the sleep status selection signal of the pad
pub fn pdac1_fun_sel(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 2, 15>
pub fn pdac1_fun_sel(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 2, 15>
Bits 15:16 - the functional selection signal of the pad
pub fn pdac1_mux_sel(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 17>
pub fn pdac1_mux_sel(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 17>
Bit 17 - Ò1Ó select the digital function Ó0Óslection the rtc function
pub fn pdac1_xpd_dac(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 18>
pub fn pdac1_xpd_dac(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 18>
Bit 18 - Power on DAC1. Usually we need to tristate PDAC1 if we power on the DAC i.e. IE=0 OE=0 RDE=0 RUE=0
pub fn pdac1_dac(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 8, 19>
pub fn pdac1_dac(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 8, 19>
Bits 19:26 - PAD DAC1 control code.
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 - the pull up enable of the pad
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 - the pull down enable of the pad
pub fn pdac1_hold(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 29>
pub fn pdac1_hold(
&mut self
) -> BitWriterRaw<'_, u32, PAD_DAC1_SPEC, bool, BitM, 29>
Bit 29 - hold the current value of the output when setting the hold to Ò1Ó
pub fn pdac1_drv(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 2, 30>
pub fn pdac1_drv(
&mut self
) -> FieldWriterRaw<'_, u32, PAD_DAC1_SPEC, u8, u8, Unsafe, 2, 30>
Bits 30:31 - the driver strength of the pad
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.