Struct stm32wlxx_hal::pac::dmamux::rg2cr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register RG2CR
writer
Implementations§
§impl W
impl W
pub fn gnbreq(
&mut self
) -> FieldWriterRaw<'_, u32, RG2CR_SPEC, u8, u8, Safe, 5, 19>
pub fn gnbreq( &mut self ) -> FieldWriterRaw<'_, u32, RG2CR_SPEC, u8, u8, Safe, 5, 19>
Bits 19:23 - Number of DMA requests to be generated (minus 1)
pub fn gpol(
&mut self
) -> FieldWriterRaw<'_, u32, RG2CR_SPEC, u8, GPOL_A, Safe, 2, 17>
pub fn gpol( &mut self ) -> FieldWriterRaw<'_, u32, RG2CR_SPEC, u8, GPOL_A, Safe, 2, 17>
Bits 17:18 - DMA request generator trigger polarity
pub fn ge(&mut self) -> BitWriterRaw<'_, u32, RG2CR_SPEC, GE_A, BitM, 16>
pub fn ge(&mut self) -> BitWriterRaw<'_, u32, RG2CR_SPEC, GE_A, BitM, 16>
Bit 16 - DMA request generator channel x enable
pub fn oie(&mut self) -> BitWriterRaw<'_, u32, RG2CR_SPEC, OIE_A, BitM, 8>
pub fn oie(&mut self) -> BitWriterRaw<'_, u32, RG2CR_SPEC, OIE_A, BitM, 8>
Bit 8 - Trigger overrun interrupt enable
pub fn sig_id(
&mut self
) -> FieldWriterRaw<'_, u32, RG2CR_SPEC, u8, SIG_ID_A, Unsafe, 5, 0>
pub fn sig_id( &mut self ) -> FieldWriterRaw<'_, u32, RG2CR_SPEC, u8, SIG_ID_A, Unsafe, 5, 0>
Bits 0:4 - Signal identification
Methods from Deref<Target = W<RG2CR_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§
§impl From<W<RG2CR_SPEC>> for W
impl From<W<RG2CR_SPEC>> for W
§fn from(writer: W<RG2CR_SPEC>) -> W
fn from(writer: W<RG2CR_SPEC>) -> W
Converts to this type from the input type.
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