pub struct Config {
pub ch1_pull: Pull,
pub ch2_pull: Pull,
pub mode: QeiMode,
pub auto_reload: u16,
}Expand description
Qei driver config.
Fields§
§ch1_pull: PullConfigures the internal pull up/down resistor for Qei’s channel 1 pin.
ch2_pull: PullConfigures the internal pull up/down resistor for Qei’s channel 2 pin.
mode: QeiModeSpecifies the encoder mode to use for the Qei peripheral.
auto_reload: u16Sets the auto-reload value for the counter.
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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