Enum nrf52832_hal::pac::gpiote::config::POLARITY_A [−][src]
#[repr(u8)]
pub enum POLARITY_A {
NONE,
LOTOHI,
HITOLO,
TOGGLE,
}
Expand description
When In task mode: Operation to be performed on output when OUT[n] task is triggered. When In event mode: Operation on input that shall trigger IN[n] event.
Value on reset: 0
Variants
NONE
0: Task mode: No effect on pin from OUT[n] task. Event mode: no IN[n] event generated on pin activity.
LOTOHI
1: Task mode: Set pin from OUT[n] task. Event mode: Generate IN[n] event when rising edge on pin.
HITOLO
2: Task mode: Clear pin from OUT[n] task. Event mode: Generate IN[n] event when falling edge on pin.
TOGGLE
3: Task mode: Toggle pin from OUT[n]. Event mode: Generate IN[n] when any change on pin.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for POLARITY_A
impl Send for POLARITY_A
impl Sync for POLARITY_A
impl Unpin for POLARITY_A
impl UnwindSafe for POLARITY_A
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.