Trait capsules_extra::ieee802154::device::TxClient

source ·
pub trait TxClient {
    // Required method
    fn send_done(
        &self,
        spi_buf: &'static mut [u8],
        acked: bool,
        result: Result<(), ErrorCode>,
    );
}
Expand description

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§

source

fn send_done( &self, spi_buf: &'static mut [u8], acked: bool, result: Result<(), ErrorCode>, )

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 is Ok(()) if the frame was transmitted, otherwise an error occurred in the transmission pipeline.

Implementors§

source§

impl<'a, A: Alarm<'a>> TxClient for IP6SendStruct<'a, A>

source§

impl<'a, M: MacDevice<'a>> TxClient for RadioDriver<'a, M>

source§

impl<'a, M: MacDevice<'a>> TxClient for MuxMac<'a, M>