Enum nrf52811_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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.