#[repr(u8)]pub enum Ctrl3Length {
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 Ctrl3Length
impl Ctrl3Length
Trait Implementations§
Source§impl Clone for Ctrl3Length
impl Clone for Ctrl3Length
Source§fn clone(&self) -> Ctrl3Length
fn clone(&self) -> Ctrl3Length
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 Ctrl3Length
impl Debug for Ctrl3Length
Source§impl From<Ctrl3Length> for u8
impl From<Ctrl3Length> for u8
Source§fn from(val: Ctrl3Length) -> u8
fn from(val: Ctrl3Length) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Ctrl3Length
impl From<u8> for Ctrl3Length
Source§fn from(val: u8) -> Ctrl3Length
fn from(val: u8) -> Ctrl3Length
Converts to this type from the input type.
Source§impl Ord for Ctrl3Length
impl Ord for Ctrl3Length
Source§fn cmp(&self, other: &Ctrl3Length) -> Ordering
fn cmp(&self, other: &Ctrl3Length) -> 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 Ctrl3Length
impl PartialEq for Ctrl3Length
Source§impl PartialOrd for Ctrl3Length
impl PartialOrd for Ctrl3Length
impl Copy for Ctrl3Length
impl Eq for Ctrl3Length
impl StructuralPartialEq for Ctrl3Length
Auto Trait Implementations§
impl Freeze for Ctrl3Length
impl RefUnwindSafe for Ctrl3Length
impl Send for Ctrl3Length
impl Sync for Ctrl3Length
impl Unpin for Ctrl3Length
impl UnwindSafe for Ctrl3Length
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