[][src]Enum nrf52832_hal::pac::gpiote::config::POLARITY_A

#[repr(u8)]pub enum POLARITY_A {
    NONE,
    LOTOHI,
    HITOLO,
    TOGGLE,
}

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

impl Clone for POLARITY_A[src]

impl Copy for POLARITY_A[src]

impl Debug for POLARITY_A[src]

impl PartialEq<POLARITY_A> for POLARITY_A[src]

impl StructuralPartialEq for POLARITY_A[src]

Auto Trait Implementations

impl Send for POLARITY_A

impl Sync for POLARITY_A

impl Unpin for POLARITY_A

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.