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