Enum gd32f1x0_hal::pac::timer15::chctl0_output::CH0COMCTL_A
source · [−]#[repr(u8)]
pub enum CH0COMCTL_A {
FROZEN,
ACTIVEONMATCH,
INACTIVEONMATCH,
TOGGLE,
FORCEINACTIVE,
FORCEACTIVE,
PWMMODE0,
PWMMODE1,
}
Expand description
Channel 0 compare output control
Value on reset: 0
Variants
FROZEN
0: The comparison between the output compare register CHyCV and the counter CNT has no effect on the outputs
ACTIVEONMATCH
1: Set channel to active level on match. OxCPRE signal is forced high when the counter matches the capture/compare register CHyCV
INACTIVEONMATCH
2: Set channel to inactive level on match. OxCPRE signal is forced low when the counter matches the capture/compare register CHyCV
TOGGLE
3: OxCPRE toggles when CNT=CHyCV
FORCEINACTIVE
4: OxCPRE is forced low
FORCEACTIVE
5: OxCPRE is forced high
PWMMODE0
6: In upcounting, channel is active as long as CNT<CHyCV else inactive. In downcounting, channel is inactive as long as CNT>CHyCV else active
PWMMODE1
7: Inversely to PwmMode0
Trait Implementations
sourceimpl Clone for CH0COMCTL_A
impl Clone for CH0COMCTL_A
sourcefn clone(&self) -> CH0COMCTL_A
fn clone(&self) -> CH0COMCTL_A
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CH0COMCTL_A
impl Debug for CH0COMCTL_A
sourceimpl PartialEq<CH0COMCTL_A> for CH0COMCTL_A
impl PartialEq<CH0COMCTL_A> for CH0COMCTL_A
impl Copy for CH0COMCTL_A
impl StructuralPartialEq for CH0COMCTL_A
Auto Trait Implementations
impl RefUnwindSafe for CH0COMCTL_A
impl Send for CH0COMCTL_A
impl Sync for CH0COMCTL_A
impl Unpin for CH0COMCTL_A
impl UnwindSafe for CH0COMCTL_A
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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