[−][src]Struct dw1000::hl::TxFuture
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]
SPI: Transfer<u8> + Write<u8>,
CS: OutputPin,
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,
CS: Send,
SPI: Send,
impl<'r, SPI, CS> Sync for TxFuture<'r, SPI, CS> where
CS: Sync,
SPI: Sync,
CS: Sync,
SPI: Sync,
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,