Struct stm32wlxx_hal::pac::tim2::ccmr1_output::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register CCMR1_Output
writer
Implementations§
§impl W
impl W
pub fn oc2m_3(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1M_3_A, BitM, 24>
pub fn oc2m_3( &mut self ) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1M_3_A, BitM, 24>
Bit 24 - Output Compare 2 mode - bit 3
pub fn oc1m_3(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1M_3_A, BitM, 16>
pub fn oc1m_3( &mut self ) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1M_3_A, BitM, 16>
Bit 16 - Output Compare 1 mode - bit 3
pub fn oc2ce(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1CE_A, BitM, 15>
pub fn oc2ce( &mut self ) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1CE_A, BitM, 15>
Bit 15 - Output compare 2 clear enable
pub fn oc2m(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, OC1M_A, Safe, 3, 12>
pub fn oc2m( &mut self ) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, OC1M_A, Safe, 3, 12>
Bits 12:14 - Output compare 2 mode
pub fn oc2pe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1PE_A, BitM, 11>
pub fn oc2pe( &mut self ) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1PE_A, BitM, 11>
Bit 11 - Output compare 2 preload enable
pub fn oc2fe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1FE_A, BitM, 10>
pub fn oc2fe( &mut self ) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1FE_A, BitM, 10>
Bit 10 - Output compare 2 fast enable
pub fn cc2s(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, CC1S_A, Safe, 2, 8>
pub fn cc2s( &mut self ) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, CC1S_A, Safe, 2, 8>
Bits 8:9 - Capture/Compare 2 selection
pub fn oc1ce(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1CE_A, BitM, 7>
pub fn oc1ce( &mut self ) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1CE_A, BitM, 7>
Bit 7 - Output compare 1 clear enable
pub fn oc1m(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, OC1M_A, Safe, 3, 4>
pub fn oc1m( &mut self ) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, OC1M_A, Safe, 3, 4>
Bits 4:6 - Output compare 1 mode
pub fn oc1pe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1PE_A, BitM, 3>
pub fn oc1pe( &mut self ) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1PE_A, BitM, 3>
Bit 3 - Output compare 1 preload enable
pub fn oc1fe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1FE_A, BitM, 2>
pub fn oc1fe( &mut self ) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC1FE_A, BitM, 2>
Bit 2 - Output compare 1 fast enable
pub fn cc1s(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, CC1S_A, Safe, 2, 0>
pub fn cc1s( &mut self ) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, CC1S_A, Safe, 2, 0>
Bits 0:1 - Capture/Compare 1 selection
Methods from Deref<Target = W<CCMR1_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<CCMR1_OUTPUT_SPEC>> for W
impl From<W<CCMR1_OUTPUT_SPEC>> for W
§fn from(writer: W<CCMR1_OUTPUT_SPEC>) -> W
fn from(writer: W<CCMR1_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