Struct nrf9160_hal::gpiote::GpioteChannelEvent
source · pub struct GpioteChannelEvent<'a, P>where
P: GpioteInputPin,{ /* private fields */ }
Implementations§
source§impl<'a, P> GpioteChannelEvent<'_, P>where
P: GpioteInputPin,
impl<'a, P> GpioteChannelEvent<'_, P>where
P: GpioteInputPin,
sourcepub fn hi_to_lo(&self) -> &GpioteChannelEvent<'_, P>
pub fn hi_to_lo(&self) -> &GpioteChannelEvent<'_, P>
Generates event on falling edge.
sourcepub fn lo_to_hi(&self) -> &GpioteChannelEvent<'_, P>
pub fn lo_to_hi(&self) -> &GpioteChannelEvent<'_, P>
Generates event on rising edge.
sourcepub fn toggle(&self) -> &GpioteChannelEvent<'_, P>
pub fn toggle(&self) -> &GpioteChannelEvent<'_, P>
Generates event on any pin activity.
sourcepub fn none(&self) -> &GpioteChannelEvent<'_, P>
pub fn none(&self) -> &GpioteChannelEvent<'_, P>
No event is generated on pin activity.
sourcepub fn enable_interrupt(&self) -> &GpioteChannelEvent<'_, P>
pub fn enable_interrupt(&self) -> &GpioteChannelEvent<'_, P>
Enables GPIOTE interrupt for channel.
sourcepub fn disable_interrupt(&self) -> &GpioteChannelEvent<'_, P>
pub fn disable_interrupt(&self) -> &GpioteChannelEvent<'_, P>
Disables GPIOTE interrupt for channel.
Auto Trait Implementations§
impl<'a, P> Freeze for GpioteChannelEvent<'a, P>
impl<'a, P> RefUnwindSafe for GpioteChannelEvent<'a, P>where
P: RefUnwindSafe,
impl<'a, P> !Send for GpioteChannelEvent<'a, P>
impl<'a, P> !Sync for GpioteChannelEvent<'a, P>
impl<'a, P> Unpin for GpioteChannelEvent<'a, P>
impl<'a, P> UnwindSafe for GpioteChannelEvent<'a, P>where
P: RefUnwindSafe,
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