Skip to content

Commit

Permalink
[radio] implement the function otPlatDiagRadioTransmitCarrier() (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglongxia authored Jan 13, 2025
1 parent e5a7c03 commit 08a1bf5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/src/diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,23 @@ void otPlatDiagAlarmCallback(otInstance *aInstance)
}
}

otError otPlatDiagRadioTransmitCarrier(otInstance *aInstance, bool aEnable)
{
otError error = OT_ERROR_NONE;

if (aEnable)
{
otEXPECT_ACTION(startCarrierTransmision(), error = OT_ERROR_FAILED);
}
else
{
otPlatRadioReceive(aInstance, sChannel);
}

exit:
return error;
}

otError otPlatDiagGpioSet(uint32_t aGpio, bool aValue)
{
otError error = OT_ERROR_NONE;
Expand Down

0 comments on commit 08a1bf5

Please sign in to comment.