#[repr(u8)]pub enum Ctrl2Length {
UNTIL_ROLLOVER = 0,
UNTIL_COMPARE = 1,
}Variants§
UNTIL_ROLLOVER = 0
Count until roll over at $FFFF and continue from $0000.
UNTIL_COMPARE = 1
Count until compare, then re-initialize. If counting up, a successful compare occurs when the counter reaches a COMP1 value. If counting down, a successful compare occurs when the counter reaches a COMP2 value. When output mode $4 is used, alternating values of COMP1 and COMP2 are used to generate successful comparisons. For example, the counter counts until a COMP1 value is reached, re-initializes, counts until COMP2 value is reached, re-initializes, counts until COMP1 value is reached, and so on.
Implementations§
Source§impl Ctrl2Length
impl Ctrl2Length
Trait Implementations§
Source§impl Clone for Ctrl2Length
impl Clone for Ctrl2Length
Source§fn clone(&self) -> Ctrl2Length
fn clone(&self) -> Ctrl2Length
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Ctrl2Length
impl Debug for Ctrl2Length
Source§impl From<Ctrl2Length> for u8
impl From<Ctrl2Length> for u8
Source§fn from(val: Ctrl2Length) -> u8
fn from(val: Ctrl2Length) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Ctrl2Length
impl From<u8> for Ctrl2Length
Source§fn from(val: u8) -> Ctrl2Length
fn from(val: u8) -> Ctrl2Length
Converts to this type from the input type.
Source§impl Ord for Ctrl2Length
impl Ord for Ctrl2Length
Source§fn cmp(&self, other: &Ctrl2Length) -> Ordering
fn cmp(&self, other: &Ctrl2Length) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Ctrl2Length
impl PartialEq for Ctrl2Length
Source§impl PartialOrd for Ctrl2Length
impl PartialOrd for Ctrl2Length
impl Copy for Ctrl2Length
impl Eq for Ctrl2Length
impl StructuralPartialEq for Ctrl2Length
Auto Trait Implementations§
impl Freeze for Ctrl2Length
impl RefUnwindSafe for Ctrl2Length
impl Send for Ctrl2Length
impl Sync for Ctrl2Length
impl Unpin for Ctrl2Length
impl UnwindSafe for Ctrl2Length
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