[][src]Struct dwm1001::DW_IRQ

pub struct DW_IRQ(_);

The DW_IRQ pin (P0.19 on the nRF52)

Can be used to wait for DW1000 interrupts.

Methods

impl DW_IRQ[src]

pub fn new<Mode>(p0_19: P0_19<Mode>) -> Self[src]

Create a new instance of the DW1000 interrupt pin

pub fn wait_for_interrupts<T>(
    &mut self,
    nvic: &mut NVIC,
    gpiote: &mut GPIOTE,
    timer: &mut Timer<T>
) where
    T: TimerExt
[src]

Sets up DW1000 interrupt and goes to sleep until an interrupt occurs

This method sets up the interrupt of the pin connected to DW_IRQ on the DW1000 and goes to sleep, waiting for interrupts.

There are two gotchas that must be kept in mind when using this method:

  • This method returns on any interrupt, even those unrelated to the DW1000.
  • This method disables interrupt handlers. No interrupt handler will be called while this method is active.

Auto Trait Implementations

impl Send for DW_IRQ

impl Sync for DW_IRQ

impl Unpin for DW_IRQ

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<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.