Trait capsules::ieee802154::device::TxClient
[−]
[src]
pub trait TxClient {
fn send_done(
&self,
spi_buf: &'static mut [u8],
acked: bool,
result: ReturnCode
);
}Trait to be implemented by any user of the IEEE 802.15.4 device that transmits frames. Contains a callback through which the static mutable reference to the frame buffer is returned to the client.
Required Methods
fn send_done(&self, spi_buf: &'static mut [u8], acked: bool, result: ReturnCode)
When transmission is complete or fails, return the buffer used for
transmission to the client. result indicates whether or not
the transmission was successful.
spi_buf: The buffer used to contain the transmitted frame is returned to the client here.acked: Whether the transmission was acknowledged.result: This isReturnCode::SUCCESSif the frame was transmitted, otherwise an error occured in the transmission pipeline.
Implementors
impl<'a, A: Alarm, C: ContextStore> TxClient for Sixlowpan<'a, A, C>impl<'a> TxClient for MuxMac<'a>impl<'a> TxClient for RadioDriver<'a>