pub enum InterruptMode {
None,
ActiveHigh,
ActiveLow,
BothEdges,
}
Expand description
Interrupt input trigger modes that every pin configured as Input
supports.
Variants§
None
Interrupts are disabled.
ActiveHigh
Interrupts are raised when the input is LOW
and so will typically
happen on the LOW
to HIGH
transition. If interrupts are
re-enabled while the input remains HIGH
, a new interrupt will be raised
without another transition being necessary.
ActiveLow
Interrupts are raised when the input is LOW
and so will typically
happen on the HIGH
to LOW
transition. If interrupts are
re-enabled while the input remains Low
, a new interrupt will be raised
without another transition being necessary.
BothEdges
Interrupts are enabled on both the HIGH
to LOW
transition
and the LOW
to HIGH
transition. If interrupts are
re-enabled while the input remains in the state that triggered the interrupt, a
new interrupt will not be raised until another transition to the opposite
state occurs.
Trait Implementations§
Source§impl Clone for InterruptMode
impl Clone for InterruptMode
Source§fn clone(&self) -> InterruptMode
fn clone(&self) -> InterruptMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more