mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 08:59:52 +00:00
[mac] rename methods requesting frame transmission (#3909)
This commit is contained in:
committed by
Jonathan Hui
parent
485ab9ed38
commit
d614d4a080
@@ -422,7 +422,7 @@ otError otLinkOutOfBandTransmitRequest(otInstance *aInstance, otRadioFrame *aOob
|
||||
{
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
|
||||
return instance.Get<Mac::Mac>().SendOutOfBandFrameRequest(aOobFrame);
|
||||
return instance.Get<Mac::Mac>().RequestOutOfBandFrameTransmission(aOobFrame);
|
||||
}
|
||||
|
||||
uint16_t otLinkGetCcaFailureRate(otInstance *aInstance)
|
||||
|
||||
@@ -478,7 +478,7 @@ exit:
|
||||
return;
|
||||
}
|
||||
|
||||
otError Mac::SendFrameRequest(void)
|
||||
otError Mac::RequestFrameTransmission(void)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
|
||||
@@ -491,7 +491,7 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
otError Mac::SendOutOfBandFrameRequest(otRadioFrame *aOobFrame)
|
||||
otError Mac::RequestOutOfBandFrameTransmission(otRadioFrame *aOobFrame)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ public:
|
||||
* @retval OT_ERROR_INVALID_STATE The MAC layer is not enabled.
|
||||
*
|
||||
*/
|
||||
otError SendFrameRequest(void);
|
||||
otError RequestFrameTransmission(void);
|
||||
|
||||
/**
|
||||
* This method requests an Out of Band frame for MAC Transmission.
|
||||
@@ -230,7 +230,7 @@ public:
|
||||
* @retval OT_ERROR_INVALID_ARGS The argument @p aOobFrame is NULL.
|
||||
*
|
||||
*/
|
||||
otError SendOutOfBandFrameRequest(otRadioFrame *aOobFrame);
|
||||
otError RequestOutOfBandFrameTransmission(otRadioFrame *aOobFrame);
|
||||
|
||||
/**
|
||||
* This method returns a reference to the IEEE 802.15.4 Extended Address.
|
||||
|
||||
@@ -189,7 +189,7 @@ void MeshForwarder::ScheduleTransmissionTask(void)
|
||||
|
||||
mSendMessageMaxCsmaBackoffs = Mac::kMaxCsmaBackoffsDirect;
|
||||
mSendMessageMaxFrameRetries = Mac::kMaxFrameRetriesDirect;
|
||||
Get<Mac::Mac>().SendFrameRequest();
|
||||
Get<Mac::Mac>().RequestFrameTransmission();
|
||||
ExitNow();
|
||||
}
|
||||
|
||||
|
||||
@@ -432,7 +432,7 @@ otError MeshForwarder::GetIndirectTransmission(void)
|
||||
|
||||
mIndirectStartingChild = &child;
|
||||
|
||||
Get<Mac::Mac>().SendFrameRequest();
|
||||
Get<Mac::Mac>().RequestFrameTransmission();
|
||||
ExitNow(error = OT_ERROR_NONE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user