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.
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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
)