Struct dwm1001::DW_IRQ [−][src]
pub struct DW_IRQ(_);
Expand description
The DW_IRQ pin (P0.19 on the nRF52)
Can be used to wait for DW1000 interrupts.
Implementations
pub fn wait_for_interrupts<T>(
&mut self,
gpiote: &mut GPIOTE,
timer: &mut Timer<T>
) where
T: Instance,
pub fn wait_for_interrupts<T>(
&mut self,
gpiote: &mut GPIOTE,
timer: &mut Timer<T>
) where
T: Instance,
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 RefUnwindSafe for DW_IRQ
impl UnwindSafe for DW_IRQ
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.