[][src]Struct nrf52840_hal::gpiote::Gpiote

pub struct Gpiote { /* fields omitted */ }

A safe wrapper around the GPIOTE peripheral.

Implementations

impl Gpiote[src]

pub fn new(gpiote: GPIOTE) -> Gpiote[src]

Takes ownership of the GPIOTE peripheral, returning a safe wrapper.

pub fn channel0(&self) -> GpioteChannel<'_>[src]

pub fn channel1(&self) -> GpioteChannel<'_>[src]

pub fn channel2(&self) -> GpioteChannel<'_>[src]

pub fn channel3(&self) -> GpioteChannel<'_>[src]

pub fn channel4(&self) -> GpioteChannel<'_>[src]

pub fn channel5(&self) -> GpioteChannel<'_>[src]

pub fn channel6(&self) -> GpioteChannel<'_>[src]

pub fn channel7(&self) -> GpioteChannel<'_>[src]

pub fn port(&self) -> GpiotePort<'_>[src]

pub fn reset_events(&self)[src]

Marks all GPIOTE events as handled

pub fn free(self) -> GPIOTE[src]

Consumes self and return back the raw GPIOTE peripheral.

Auto Trait Implementations

impl Send for Gpiote

impl !Sync for Gpiote

impl Unpin for Gpiote

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.