openthread_sys

Function otPlatRadioTxDone

Source
pub unsafe extern "C" fn otPlatRadioTxDone(
    aInstance: *mut otInstance,
    aFrame: *mut otRadioFrame,
    aAckFrame: *mut otRadioFrame,
    aError: otError,
)
Expand description

The radio driver calls this function to notify OpenThread that the transmit operation has completed, providing both the transmitted frame and, if applicable, the received ack frame.

When radio provides OT_RADIO_CAPS_TRANSMIT_SEC capability, radio platform layer updates @p aFrame with the security frame counter and key index values maintained by the radio.

@param[in] aInstance The OpenThread instance structure. @param[in] aFrame A pointer to the frame that was transmitted. @param[in] aAckFrame A pointer to the ACK frame, NULL if no ACK was received. @param[in] aError OT_ERROR_NONE when the frame was transmitted, OT_ERROR_NO_ACK when the frame was transmitted but no ACK was received, OT_ERROR_CHANNEL_ACCESS_FAILURE tx could not take place due to activity on the channel, OT_ERROR_ABORT when transmission was aborted for other reasons.