Enum stm32_metapac::timer::vals::Ocm
#[repr(u8)]pub enum Ocm {
FROZEN = 0,
ACTIVEONMATCH = 1,
INACTIVEONMATCH = 2,
TOGGLE = 3,
FORCEINACTIVE = 4,
FORCEACTIVE = 5,
PWMMODE1 = 6,
PWMMODE2 = 7,
}
Variants§
FROZEN = 0
The comparison between the output compare register TIMx_CCRy and the counter TIMx_CNT has no effect on the outputs
ACTIVEONMATCH = 1
Set channel to active level on match. OCyREF signal is forced high when the counter matches the capture/compare register
INACTIVEONMATCH = 2
Set channel to inactive level on match. OCyREF signal is forced low when the counter matches the capture/compare register
TOGGLE = 3
OCyREF toggles when TIMx_CNT=TIMx_CCRy
FORCEINACTIVE = 4
OCyREF is forced low
FORCEACTIVE = 5
OCyREF is forced high
PWMMODE1 = 6
In upcounting, channel is active as long as TIMx_CNT<TIMx_CCRy else inactive. In downcounting, channel is inactive as long as TIMx_CNT>TIMx_CCRy else active
PWMMODE2 = 7
Inversely to PwmMode1
Implementations§
Trait Implementations§
§impl Ord for Ocm
impl Ord for Ocm
§impl PartialOrd for Ocm
impl PartialOrd for Ocm
impl Copy for Ocm
impl Eq for Ocm
impl StructuralPartialEq for Ocm
Auto Trait Implementations§
impl Freeze for Ocm
impl RefUnwindSafe for Ocm
impl Send for Ocm
impl Sync for Ocm
impl Unpin for Ocm
impl UnwindSafe for Ocm
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)