pub struct W(/* private fields */);
Expand description
Register CR
writer
Implementations§
Source§impl W
impl W
Sourcepub fn dmaudrie2(
&mut self,
) -> BitWriterRaw<'_, u32, CR_SPEC, DMAUDRIE1_A, BitM, 29>
pub fn dmaudrie2( &mut self, ) -> BitWriterRaw<'_, u32, CR_SPEC, DMAUDRIE1_A, BitM, 29>
Bit 29 - DAC channel2 DMA underrun interrupt enable
Sourcepub fn dmaen2(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, DMAEN1_A, BitM, 28>
pub fn dmaen2(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, DMAEN1_A, BitM, 28>
Bit 28 - DAC channel2 DMA 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
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 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 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 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 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 dmaudrie1(
&mut self,
) -> BitWriterRaw<'_, u32, CR_SPEC, DMAUDRIE1_A, BitM, 13>
pub fn dmaudrie1( &mut self, ) -> BitWriterRaw<'_, u32, CR_SPEC, DMAUDRIE1_A, BitM, 13>
Bit 13 - DAC channel1 DMA Underrun Interrupt enable
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 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 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 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 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 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
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more