Struct nrf9160_hal::gpiote::Gpiote
source · pub struct Gpiote { /* private fields */ }
Expand description
A safe wrapper around the GPIOTE peripheral.
Implementations§
source§impl Gpiote
impl Gpiote
sourcepub fn new(gpiote: GPIOTE1_NS) -> Gpiote
pub fn new(gpiote: GPIOTE1_NS) -> Gpiote
Takes ownership of the GPIOTE
peripheral, returning a safe wrapper.
pub fn channel0(&self) -> GpioteChannel<'_>
pub fn channel1(&self) -> GpioteChannel<'_>
pub fn channel2(&self) -> GpioteChannel<'_>
pub fn channel3(&self) -> GpioteChannel<'_>
pub fn channel4(&self) -> GpioteChannel<'_>
pub fn channel5(&self) -> GpioteChannel<'_>
pub fn channel6(&self) -> GpioteChannel<'_>
pub fn channel7(&self) -> GpioteChannel<'_>
pub fn port(&self) -> GpiotePort<'_>
sourcepub fn reset_events(&self)
pub fn reset_events(&self)
Marks all GPIOTE events as handled
sourcepub fn free(self) -> GPIOTE1_NS
pub fn free(self) -> GPIOTE1_NS
Consumes self
and return back the raw GPIOTE
peripheral.
Auto Trait Implementations§
impl Freeze for Gpiote
impl RefUnwindSafe for Gpiote
impl Send for Gpiote
impl !Sync for Gpiote
impl Unpin for Gpiote
impl UnwindSafe for Gpiote
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