pub struct Config<T: CoreInstance> {
pub ch1_pull: Pull,
pub ch2_pull: Pull,
pub mode: QeiMode,
pub auto_reload: T::Word,
}Expand description
Qei driver config.
T is the timer instance.
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: T::WordSets the auto-reload value for the counter.
Trait Implementations§
Source§impl<T: CoreInstance> Default for Config<T>
impl<T: CoreInstance> Default for Config<T>
Source§impl<T: CoreInstance> Format for Config<T>
impl<T: CoreInstance> Format for Config<T>
Source§impl<T: CoreInstance> From<Config<T>> for AdvancedConfig<T>
impl<T: CoreInstance> From<Config<T>> for AdvancedConfig<T>
impl<T: Copy + CoreInstance> Copy for Config<T>
Auto Trait Implementations§
impl<T> Freeze for Config<T>
impl<T> RefUnwindSafe for Config<T>
impl<T> Send for Config<T>
impl<T> Sync for Config<T>
impl<T> Unpin for Config<T>
impl<T> UnwindSafe for Config<T>
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