[][src]Struct dw1000::hl::TxFuture

pub struct TxFuture<'r, SPI, CS>(_);

Represents a transmission that might not have completed yet

Methods

impl<'r, SPI, CS> TxFuture<'r, SPI, CS> where
    SPI: Transfer<u8> + Write<u8>,
    CS: OutputPin
[src]

pub fn wait(&mut self) -> Result<(), Error<SPI>>[src]

Wait for the transmission to finish

This method returns an nb::Result to indicate whether the transmission has finished, or whether it is still ongoing. You can use this to busily wait for the transmission to finish, for example using nb's block! macro, or you can use it in tandem with TxFuture::enable_interrupts and the DW1000 IRQ output to wait in a more energy-efficient manner.

Handling the DW1000's IRQ output line is out of the scope of this driver, but please note that if you're using the DWM1001 module or DWM1001-Dev board, that the dwm1001 crate has explicit support for this.

pub fn enable_interrupts(&mut self) -> Result<(), Error<SPI>>[src]

Enables interrupts for the events that wait checks

Overwrites any interrupt flags that were previously set.

Auto Trait Implementations

impl<'r, SPI, CS> Send for TxFuture<'r, SPI, CS> where
    CS: Send,
    SPI: Send

impl<'r, SPI, CS> Sync for TxFuture<'r, SPI, CS> where
    CS: Sync,
    SPI: Sync

Blanket Implementations

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

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

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

The type returned in the event of a conversion error.

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

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

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

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