[−][src]Struct dw1000::ranging::TxMessage
An outgoing ranging message
Contains the payload to be sent, as well as some metadata.
Fields
recipient: Address
The recipient of the message
This is an IEEE 802.15.4 MAC address. This could be a broadcast address, for messages that are sent to all other nodes in range.
tx_time: Instant
The time this message is going to be sent
When creating this struct, this is going to be an instant in the near future. When sending the message, the sending is delayed to make sure it it sent at exactly this instant.
payload: T
The actual message payload
Methods
impl<T> TxMessage<T> where
T: Message,
[src]
T: Message,
pub fn send<'r, SPI, CS>(
&self,
dw1000: DW1000<SPI, CS, Ready>
) -> Result<DW1000<SPI, CS, Sending>, Error<SPI, CS>> where
SPI: Transfer<u8> + Write<u8>,
CS: OutputPin,
[src]
&self,
dw1000: DW1000<SPI, CS, Ready>
) -> Result<DW1000<SPI, CS, Sending>, Error<SPI, CS>> where
SPI: Transfer<u8> + Write<u8>,
CS: OutputPin,
Send this message via the DW1000
Serializes the message payload and uses DW1000::send
internally to
send it.
Trait Implementations
Auto Trait Implementations
impl<T> Send for TxMessage<T> where
T: Send,
T: Send,
impl<T> Sync for TxMessage<T> where
T: Sync,
T: Sync,
impl<T> Unpin for TxMessage<T> where
T: Unpin,
T: Unpin,
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,
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<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.
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>,