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