#[repr(transparent)]pub struct Config(pub u32);
Expand description
Channel configuration registers.
Tuple Fields§
§0: u32
Implementations§
Source§impl Config
impl Config
Sourcepub const fn polarity(&self) -> Polarity
pub const fn polarity(&self) -> Polarity
Effects on output when in Task mode, or events on input that generates an event.
Sourcepub fn set_polarity(&mut self, val: Polarity)
pub fn set_polarity(&mut self, val: Polarity)
Effects on output when in Task mode, or events on input that generates an event.
Sourcepub const fn outinit(&self) -> Outinit
pub const fn outinit(&self) -> Outinit
Initial value of the output when the GPIOTE channel is configured as a Task.
Sourcepub fn set_outinit(&mut self, val: Outinit)
pub fn set_outinit(&mut self, val: Outinit)
Initial value of the output when the GPIOTE channel is configured as a Task.
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)