pub enum InputSync {
Disabled = 0,
NegativeEdge = 1,
PositiveEdge = 2,
}Available on crate feature
unstable only.Expand description
Configures the clock edge used in one of the two input synchronization stages to synchronize the GPIO input signal to the system clock, reducing metastability.
See InputConfig::with_input_sync_stage1 and
InputConfig::with_input_sync_stage2.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Variants§
Disabled = 0
Stage is disabled; the signal passes through without latching (hardware default).
NegativeEdge = 1
Stage latches on the falling edge of the GPIO clock.
PositiveEdge = 2
Stage latches on the rising edge of the GPIO clock.
Trait Implementations§
impl Copy for InputSync
impl Eq for InputSync
impl StructuralPartialEq for InputSync
Auto Trait Implementations§
impl Freeze for InputSync
impl RefUnwindSafe for InputSync
impl Send for InputSync
impl Sync for InputSync
impl Unpin for InputSync
impl UnsafeUnpin for InputSync
impl UnwindSafe for InputSync
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)