Struct stm32_hal2::pac::tim3::ccmr1_output::W
source · [−]pub struct W(_);
Expand description
Register CCMR1_Output
writer
Implementations
sourceimpl W
impl W
sourcepub fn cc1s(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, CC1S_A, Unsafe, 2, 0>
pub fn cc1s(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, CC1S_A, Unsafe, 2, 0>
Bits 0:1 - CC1S
sourcepub fn oc1fe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, bool, BitM, 2>
pub fn oc1fe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, bool, BitM, 2>
Bit 2 - OC1FE
sourcepub 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 - OC1PE
sourcepub 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 - OC1M
sourcepub fn oc1ce(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, bool, BitM, 7>
pub fn oc1ce(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, bool, BitM, 7>
Bit 7 - OC1CE
sourcepub fn cc2s(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, CC2S_A, Unsafe, 2, 8>
pub fn cc2s(
&mut self
) -> FieldWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, u8, CC2S_A, Unsafe, 2, 8>
Bits 8:9 - CC2S
sourcepub fn oc2fe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, bool, BitM, 10>
pub fn oc2fe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, bool, BitM, 10>
Bit 10 - OC2FE
sourcepub fn oc2pe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC2PE_A, BitM, 11>
pub fn oc2pe(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, OC2PE_A, BitM, 11>
Bit 11 - OC2PE
sourcepub 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 - OC2M
sourcepub fn oc2ce(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, bool, BitM, 15>
pub fn oc2ce(
&mut self
) -> BitWriterRaw<'_, u32, CCMR1_OUTPUT_SPEC, bool, BitM, 15>
Bit 15 - OC2CE
sourcepub 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
sourcepub 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
Methods from Deref<Target = W<CCMR1_OUTPUT_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<CCMR1_OUTPUT_SPEC>> for W
impl From<W<CCMR1_OUTPUT_SPEC>> for W
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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