#[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§
Source§impl Config
impl Config
Sourcepub 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
Sourcepub 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
Sourcepub 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.
Sourcepub 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.
Sourcepub 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.
Sourcepub 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.
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)