pub struct W(_);
Expand description
Register CR
writer
Implementations§
source§impl W
impl W
sourcepub fn en1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, EN1_A, BitM, 0>
pub fn en1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, EN1_A, BitM, 0>
Bit 0 - DAC channel1 enable
sourcepub fn boff1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, BOFF1_A, BitM, 1>
pub fn boff1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, BOFF1_A, BitM, 1>
Bit 1 - DAC channel1 output buffer disable
sourcepub fn ten1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TEN1_A, BitM, 2>
pub fn ten1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TEN1_A, BitM, 2>
Bit 2 - DAC channel1 trigger enable
sourcepub fn tsel1(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, TSEL1_A, Unsafe, 3, 3>
pub fn tsel1(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, TSEL1_A, Unsafe, 3, 3>
Bits 3:5 - DAC channel1 trigger selection
sourcepub fn wave1(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, WAVE1_A, Unsafe, 2, 6>
pub fn wave1(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, WAVE1_A, Unsafe, 2, 6>
Bits 6:7 - DAC channel1 noise/triangle wave generation enable
sourcepub fn mamp1(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Safe, 4, 8>
pub fn mamp1(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Safe, 4, 8>
Bits 8:11 - DAC channel1 mask/amplitude selector
sourcepub fn dmaen1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, DMAEN1_A, BitM, 12>
pub fn dmaen1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, DMAEN1_A, BitM, 12>
Bit 12 - DAC channel1 DMA enable
sourcepub fn en2(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, EN1_A, BitM, 16>
pub fn en2(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, EN1_A, BitM, 16>
Bit 16 - DAC channel2 enable
sourcepub fn boff2(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, BOFF1_A, BitM, 17>
pub fn boff2(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, BOFF1_A, BitM, 17>
Bit 17 - DAC channel2 output buffer disable
sourcepub fn ten2(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TEN1_A, BitM, 18>
pub fn ten2(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TEN1_A, BitM, 18>
Bit 18 - DAC channel2 trigger enable
sourcepub fn tsel2(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, TSEL2_A, Safe, 3, 19>
pub fn tsel2(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, TSEL2_A, Safe, 3, 19>
Bits 19:21 - DAC channel2 trigger selection
sourcepub fn wave2(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, WAVE2_A, Unsafe, 2, 22>
pub fn wave2(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, WAVE2_A, Unsafe, 2, 22>
Bits 22:23 - DAC channel2 noise/triangle wave generation enable
sourcepub fn mamp2(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Safe, 4, 24>
pub fn mamp2(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Safe, 4, 24>
Bits 24:27 - DAC channel2 mask/amplitude selector
Methods from Deref<Target = W<CR_SPEC>>§
sourcepub 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.