[−][src]Struct dwm1001::DW_IRQ
The DW_IRQ pin (P0.19 on the nRF52)
Can be used to wait for DW1000 interrupts.
Implementations
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,
gpiote: &mut GPIOTE,
timer: &mut Timer<T>
) where
T: Instance,
[src]
&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
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,