Struct stm32f1xx_hal::qei::QeiOptions
source · 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 copy 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 more