Struct Ocm
#[repr(transparent)]pub struct Ocm(pub u8);
Tuple Fields§
§0: u8
Implementations§
§impl Ocm
impl Ocm
pub const FROZEN: Self
pub const FROZEN: Self
The comparison between the output compare register TIMx_CCRy and the counter TIMx_CNT has no effect on the outputs
pub const ACTIVEONMATCH: Self
pub const ACTIVEONMATCH: Self
Set channel to active level on match. OCyREF signal is forced high when the counter matches the capture/compare register
pub const INACTIVEONMATCH: Self
pub const INACTIVEONMATCH: Self
Set channel to inactive level on match. OCyREF signal is forced low when the counter matches the capture/compare register
pub const TOGGLE: Self
pub const TOGGLE: Self
OCyREF toggles when TIMx_CNT=TIMx_CCRy
pub const FORCEINACTIVE: Self
pub const FORCEINACTIVE: Self
OCyREF is forced low
pub const FORCEACTIVE: Self
pub const FORCEACTIVE: Self
OCyREF is forced high
pub const PWMMODE1: Self
pub const PWMMODE1: Self
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
pub const PWMMODE2: Self
pub const PWMMODE2: Self
Inversely to PwmMode1
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