pub enum HrCountingDirection {
Up,
UpDown,
}
Variants§
Up
Asymmetrical up counting mode
* *
Counting up * | * | * * * | * | * *
-
| * |
-
*
| *-------* *------
| | |
| | | |
| | |
----------* *------------------*
This is the most common mode with least amount of quirks
UpDown
Symmetrical up-down counting mode
Period--> * Counting *
Counting up * | * Counting Up * |
* * down *
* | * * |
* * *
* | * * |
0 -->* *
---------------------------------------------------------------------------
| *---------------* | *---------------*
| | | | | |
| | | | | |
| | | | | |
----------* *-------------------* *---
NOTE: This is incompatible with
- Auto-delay
- Balanced Idle
- Triggered-half mode
There is also differences in (including but not limited to) the following areas:
- Counter roll over event
- The events registered with
enable_set_event
will work as normal wen counting up, however when counting down, they will work as rst events. - The events registered with
enable_rst_event
will work as normal wen counting up, however when counting down, they will work as set events.
Trait Implementations§
Source§impl Clone for HrCountingDirection
impl Clone for HrCountingDirection
Source§fn clone(&self) -> HrCountingDirection
fn clone(&self) -> HrCountingDirection
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HrCountingDirection
impl Debug for HrCountingDirection
Source§impl PartialEq for HrCountingDirection
impl PartialEq for HrCountingDirection
impl Copy for HrCountingDirection
impl StructuralPartialEq for HrCountingDirection
Auto Trait Implementations§
impl Freeze for HrCountingDirection
impl RefUnwindSafe for HrCountingDirection
impl Send for HrCountingDirection
impl Sync for HrCountingDirection
impl Unpin for HrCountingDirection
impl UnwindSafe for HrCountingDirection
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