Skip to content

Commit

Permalink
[radio] implement the function 'otPlatDiagRadioTransmitCarrier()'
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglongxia committed Jan 3, 2025
1 parent 08c7763 commit 4e64062
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 4e64062

Please sign in to comment.