pub struct W(_);
Expand description
Register SWEVG
writer
Implementations
sourceimpl W
impl W
sourcepub fn brkg(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, BRKG_AW, BitM, 7_u8>
pub fn brkg(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, BRKG_AW, BitM, 7_u8>
Bit 7 - Break event generation
sourcepub fn trgg(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, TRGG_AW, BitM, 6_u8>
pub fn trgg(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, TRGG_AW, BitM, 6_u8>
Bit 6 - Trigger event generation
sourcepub fn cmtg(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CMTG_AW, BitM, 5_u8>
pub fn cmtg(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CMTG_AW, BitM, 5_u8>
Bit 5 - Channel commutation event generation
sourcepub fn ch3g(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CH0G_AW, BitM, 1_u8>
pub fn ch3g(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CH0G_AW, BitM, 1_u8>
Bit 4 - Channel 3 capture or compare event generation
sourcepub fn ch2g(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CH0G_AW, BitM, 1_u8>
pub fn ch2g(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CH0G_AW, BitM, 1_u8>
Bit 3 - Channel 2 capture or compare event generation
sourcepub fn ch1g(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CH0G_AW, BitM, 1_u8>
pub fn ch1g(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CH0G_AW, BitM, 1_u8>
Bit 2 - Channel 1 capture or compare event generation
sourcepub fn ch0g(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CH0G_AW, BitM, 1_u8>
pub fn ch0g(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, CH0G_AW, BitM, 1_u8>
Bit 1 - Channel 0 capture or compare event generation
sourcepub fn upg(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, UPG_AW, BitM, 0_u8>
pub fn upg(&mut self) -> BitWriterRaw<'_, u16, SWEVG_SPEC, UPG_AW, BitM, 0_u8>
Bit 0 - Update generation
Methods from Deref<Target = W<SWEVG_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
sourceimpl From<W<SWEVG_SPEC>> for W
impl From<W<SWEVG_SPEC>> for W
sourcefn from(writer: W<SWEVG_SPEC>) -> W
fn from(writer: W<SWEVG_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more