Enum nrf52832_pac::gpiote::config::POLARITYR
source · pub enum POLARITYR {
NONE,
LOTOHI,
HITOLO,
TOGGLE,
}
Expand description
Possible values of the field POLARITY
Variants§
NONE
Task mode: No effect on pin from OUT[n] task. Event mode: no IN[n] event generated on pin activity.
LOTOHI
Task mode: Set pin from OUT[n] task. Event mode: Generate IN[n] event when rising edge on pin.
HITOLO
Task mode: Clear pin from OUT[n] task. Event mode: Generate IN[n] event when falling edge on pin.
TOGGLE
Task mode: Toggle pin from OUT[n]. Event mode: Generate IN[n] when any change on pin.
Implementations§
source§impl POLARITYR
impl POLARITYR
sourcepub fn is_lo_to_hi(&self) -> bool
pub fn is_lo_to_hi(&self) -> bool
Checks if the value of the field is LOTOHI
sourcepub fn is_hi_to_lo(&self) -> bool
pub fn is_hi_to_lo(&self) -> bool
Checks if the value of the field is HITOLO