Struct stm32wlxx_hal::pac::tim2::ccmr2_output::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register CCMR2_Output
writer
Implementations§
§impl W
impl W
pub fn oc4m_3(
&mut self
) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3M_3_A, BitM, 24>
pub fn oc4m_3( &mut self ) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3M_3_A, BitM, 24>
Bit 24 - Output Compare 4 mode - bit 3
pub fn oc3m_3(
&mut self
) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3M_3_A, BitM, 16>
pub fn oc3m_3( &mut self ) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3M_3_A, BitM, 16>
Bit 16 - Output Compare 3 mode - bit 3
pub fn oc4ce(
&mut self
) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3CE_A, BitM, 15>
pub fn oc4ce( &mut self ) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3CE_A, BitM, 15>
Bit 15 - Output compare 4 clear enable
pub fn oc4m(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, u8, OC3M_A, Safe, 3, 12>
pub fn oc4m( &mut self ) -> FieldWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, u8, OC3M_A, Safe, 3, 12>
Bits 12:14 - Output compare 4 mode
pub fn oc4pe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3PE_A, BitM, 11>
pub fn oc4pe( &mut self ) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3PE_A, BitM, 11>
Bit 11 - Output compare 4 preload enable
pub fn oc4fe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3FE_A, BitM, 10>
pub fn oc4fe( &mut self ) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3FE_A, BitM, 10>
Bit 10 - Output compare 4 fast enable
pub fn cc4s(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, u8, CC3S_A, Safe, 2, 8>
pub fn cc4s( &mut self ) -> FieldWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, u8, CC3S_A, Safe, 2, 8>
Bits 8:9 - Capture/Compare 4 selection
pub fn oc3ce(
&mut self
) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3CE_A, BitM, 7>
pub fn oc3ce( &mut self ) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3CE_A, BitM, 7>
Bit 7 - Output compare 3 clear enable
pub fn oc3m(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, u8, OC3M_A, Safe, 3, 4>
pub fn oc3m( &mut self ) -> FieldWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, u8, OC3M_A, Safe, 3, 4>
Bits 4:6 - Output compare 3 mode
pub fn oc3pe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3PE_A, BitM, 3>
pub fn oc3pe( &mut self ) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3PE_A, BitM, 3>
Bit 3 - Output compare 3 preload enable
pub fn oc3fe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3FE_A, BitM, 2>
pub fn oc3fe( &mut self ) -> BitWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, OC3FE_A, BitM, 2>
Bit 2 - Output compare 3 fast enable
pub fn cc3s(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, u8, CC3S_A, Safe, 2, 0>
pub fn cc3s( &mut self ) -> FieldWriterRaw<'_, u32, CCMR2_OUTPUT_SPEC, u8, CC3S_A, Safe, 2, 0>
Bits 0:1 - Capture/Compare 3 selection
Methods from Deref<Target = W<CCMR2_OUTPUT_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<CCMR2_OUTPUT_SPEC>> for W
impl From<W<CCMR2_OUTPUT_SPEC>> for W
§fn from(writer: W<CCMR2_OUTPUT_SPEC>) -> W
fn from(writer: W<CCMR2_OUTPUT_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