class Callbacks

Defined at line 145 of file ../../third_party/openthread/src/core/radio/radio.hpp

Defines the callbacks from `Radio`.

Public Methods

void HandleReceiveDone (Mac::RxFrame * aFrame, Error aError)

This callback method handles a "Receive Done" event from radio platform.

Parameters

aFrame [in] A pointer to the received frame or `nullptr` if the receive operation failed.
aError [in] kErrorNone when successfully received a frame, kErrorAbort when reception was aborted and a frame was not received, kErrorNoBufs when a frame could not be received due to lack of rx buffer space.
void HandleTransmitStarted (Mac::TxFrame & aFrame)

This callback method handles a "Transmit Started" event from radio platform.

Parameters

aFrame [in] The frame that is being transmitted.
void HandleTransmitDone (Mac::TxFrame & aFrame, Mac::RxFrame * aAckFrame, Error aError)

This callback method handles a "Transmit Done" event from radio platform.

Parameters

aFrame [in] The frame that was transmitted.
aAckFrame [in] A pointer to the ACK frame, `nullptr` if no ACK was received.
aError [in] kErrorNone when the frame was transmitted, kErrorNoAck when the frame was transmitted but no ACK was received, kErrorChannelAccessFailure tx could not take place due to activity on the channel, kErrorAbort when transmission was aborted for other reasons.
void HandleEnergyScanDone (int8_t aMaxRssi)

This callback method handles "Energy Scan Done" event from radio platform.

Is used when radio provides OT_RADIO_CAPS_ENERGY_SCAN capability. It is called from

`otPlatRadioEnergyScanDone()`.

Parameters

aMaxRssi [in] The maximum RSSI encountered on the scanned channel.
void HandleBusLatencyChanged ()

This callback method handles "Bus Latency Changed" event from radio platform.

void HandleDiagsReceiveDone (Mac::RxFrame * aFrame, Error aError)

This callback method handles a "Receive Done" event from radio platform when diagnostics mode is enabled.

Parameters

aFrame [in] A pointer to the received frame or `nullptr` if the receive operation failed.
aError [in] kErrorNone when successfully received a frame, kErrorAbort when reception was aborted and a frame was not received, kErrorNoBufs when a frame could not be received due to lack of rx buffer space.
void HandleDiagsTransmitDone (Mac::TxFrame & aFrame, Error aError)

This callback method handles a "Transmit Done" event from radio platform when diagnostics mode is enabled.

Parameters

aFrame [in] The frame that was transmitted.
aError [in] kErrorNone when the frame was transmitted, kErrorNoAck when the frame was transmitted but no ACK was received, kErrorChannelAccessFailure tx could not take place due to activity on the channel, kErrorAbort when transmission was aborted for other reasons.

Friends

class Radio