pub struct QeiOptions {
pub slave_mode: SlaveMode,
pub auto_reload_value: u16,
}
Expand description
Quadrature Encoder Interface (QEI) options
The Default
implementation provides a configuration for a 4-count pulse which counts from
0-65535. The counter wraps back to 0 on overflow.
Fields§
§slave_mode: SlaveMode
Encoder slave mode
auto_reload_value: u16
Autoreload value
This value allows the maximum count to be configured, up to 65535. Setting a lower value will overflow the counter to 0 sooner.
Trait Implementations§
Source§impl Clone for QeiOptions
impl Clone for QeiOptions
Source§fn clone(&self) -> QeiOptions
fn clone(&self) -> QeiOptions
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 QeiOptions
impl Debug for QeiOptions
Source§impl Default for QeiOptions
impl Default for QeiOptions
impl Copy for QeiOptions
Auto Trait Implementations§
impl Freeze for QeiOptions
impl RefUnwindSafe for QeiOptions
impl Send for QeiOptions
impl Sync for QeiOptions
impl Unpin for QeiOptions
impl UnwindSafe for QeiOptions
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