Type Alias nrf52840_pac::gpiote::config::POLARITY_R

source ·
pub type POLARITY_R = FieldReader<u8, POLARITY_A>;
Expand description

Field POLARITY reader - 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.

Aliased Type§

struct POLARITY_R { /* private fields */ }

Implementations§

source§

impl POLARITY_R

source

pub fn variant(&self) -> POLARITY_A

Get enumerated values variant

source

pub fn is_none(&self) -> bool

Checks if the value of the field is NONE

source

pub fn is_lo_to_hi(&self) -> bool

Checks if the value of the field is LO_TO_HI

source

pub fn is_hi_to_lo(&self) -> bool

Checks if the value of the field is HI_TO_LO

source

pub fn is_toggle(&self) -> bool

Checks if the value of the field is TOGGLE