Type Alias nrf52840_pac::gpiote::config::MODE_W

source ·
pub type MODE_W<'a, const O: u8> = FieldWriter<'a, u32, CONFIG_SPEC, u8, MODE_A, 2, O>;
Expand description

Field MODE writer - Mode

Aliased Type§

struct MODE_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> MODE_W<'a, O>

source

pub fn disabled(self) -> &'a mut W

Disabled. Pin specified by PSEL will not be acquired by the GPIOTE module.

source

pub fn event(self) -> &'a mut W

Event mode

source

pub fn task(self) -> &'a mut W

Task mode