Struct Config
#[repr(transparent)]pub struct Config(pub u32);
Expand description
Description collection: Configuration for OUT[n], SET[n], and CLR[n] tasks and IN[n] event
Tuple Fields§
§0: u32
Implementations§
§impl Config
impl Config
pub const fn psel(&self) -> u8
pub const fn psel(&self) -> u8
GPIO number associated with SET[n], CLR[n], and OUT[n] tasks and IN[n] event
pub fn set_psel(&mut self, val: u8)
pub fn set_psel(&mut self, val: u8)
GPIO number associated with SET[n], CLR[n], and OUT[n] tasks and IN[n] event
pub const fn polarity(&self) -> Polarity
pub const fn polarity(&self) -> Polarity
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.
pub fn set_polarity(&mut self, val: Polarity)
pub fn set_polarity(&mut self, val: Polarity)
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.
pub const fn outinit(&self) -> Outinit
pub const fn outinit(&self) -> Outinit
When in task mode: Initial value of the output when the GPIOTE channel is configured. When in event mode: No effect.
pub fn set_outinit(&mut self, val: Outinit)
pub fn set_outinit(&mut self, val: Outinit)
When in task mode: Initial value of the output when the GPIOTE channel is configured. When in event mode: No effect.