Struct stm32wlxx_hal::pac::dac::cr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register CR
writer
Implementations§
§impl W
impl W
pub fn cen1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, CEN1_A, BitM, 14>
pub fn cen1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, CEN1_A, BitM, 14>
Bit 14 - DAC Channel 1 calibration enable
pub 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
pub 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
pub fn mamp1(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, MAMP1_A, Unsafe, 4, 8>
pub fn mamp1( &mut self ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, MAMP1_A, Unsafe, 4, 8>
Bits 8:11 - DAC channel1 mask/amplitude selector
pub 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
pub fn ten1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TEN1_A, BitM, 1>
pub fn ten1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TEN1_A, BitM, 1>
Bit 1 - DAC channel1 trigger enable
Methods from Deref<Target = W<CR_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.
Trait Implementations§
Auto Trait Implementations§
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