pub struct FastEncoderOptions {
pub disable_4x_sampling: bool,
pub invert_direction_1: bool,
pub invert_direction_2: bool,
pub invert_direction_3: bool,
}Expand description
Per-encoder options for the fast encoders (protocol command 0xCE
byte 4 = “FastEncodersOptions”).
Bit layout matches the PoKeysLib C reference (ePK_FastEncoderOptions):
| Bit | Mask | Meaning |
|---|---|---|
| 4 | 0x10 | Disable 4x sampling (default is 4x on). |
| 5 | 0x20 | Invert direction of fast encoder 1. |
| 6 | 0x40 | Invert direction of fast encoder 2. |
| 7 | 0x80 | Invert direction of fast encoder 3. |
Bits 0-3 are reserved (the low nibble carries nothing — the configuration
selector lives in a separate byte, see FastEncoderConfiguration).
Fields§
§disable_4x_sampling: boolDisable 4x sampling for the fast encoders (default is 4x enabled).
invert_direction_1: boolInvert direction of fast encoder 1.
invert_direction_2: boolInvert direction of fast encoder 2.
invert_direction_3: boolInvert direction of fast encoder 3.
Implementations§
Trait Implementations§
Source§impl Clone for FastEncoderOptions
impl Clone for FastEncoderOptions
Source§fn clone(&self) -> FastEncoderOptions
fn clone(&self) -> FastEncoderOptions
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 FastEncoderOptions
impl Debug for FastEncoderOptions
Source§impl Default for FastEncoderOptions
impl Default for FastEncoderOptions
Source§fn default() -> FastEncoderOptions
fn default() -> FastEncoderOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for FastEncoderOptions
impl PartialEq for FastEncoderOptions
impl Copy for FastEncoderOptions
impl Eq for FastEncoderOptions
impl StructuralPartialEq for FastEncoderOptions
Auto Trait Implementations§
impl Freeze for FastEncoderOptions
impl RefUnwindSafe for FastEncoderOptions
impl Send for FastEncoderOptions
impl Sync for FastEncoderOptions
impl Unpin for FastEncoderOptions
impl UnsafeUnpin for FastEncoderOptions
impl UnwindSafe for FastEncoderOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.