pub struct OC2M_W<'a> { /* private fields */ }Expand description
Write proxy for field OC2M
Implementations§
Source§impl<'a> OC2M_W<'a>
impl<'a> OC2M_W<'a>
Sourcepub fn variant(self, variant: OC2M_A) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
pub fn variant(self, variant: OC2M_A) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
Writes variant to the field
Sourcepub fn frozen(self) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
pub fn frozen(self) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
The comparison between the output compare register TIMx_CCRy and the counter TIMx_CNT has no effect on the outputs
Sourcepub fn active_on_match(self) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
pub fn active_on_match(self) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
Set channel to active level on match. OCyREF signal is forced high when the counter matches the capture/compare register
Sourcepub fn inactive_on_match(self) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
pub fn inactive_on_match(self) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
Set channel to inactive level on match. OCyREF signal is forced low when the counter matches the capture/compare register
Sourcepub fn toggle(self) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
pub fn toggle(self) -> &'a mut W<u32, Reg<u32, _CCMR1_OUTPUT>>
OCyREF toggles when TIMx_CNT=TIMx_CCRy
Auto Trait Implementations§
impl<'a> Freeze for OC2M_W<'a>
impl<'a> !RefUnwindSafe for OC2M_W<'a>
impl<'a> Send for OC2M_W<'a>
impl<'a> !Sync for OC2M_W<'a>
impl<'a> Unpin for OC2M_W<'a>
impl<'a> !UnwindSafe for OC2M_W<'a>
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