mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
Merge branch 'feature/ot-1.2-radio-api' into 'master'
openthread: add radio mac API implementation See merge request espressif/esp-idf!13066
This commit is contained in:
@@ -223,6 +223,21 @@ int8_t otPlatRadioGetReceiveSensitivity(otInstance *instance)
|
|||||||
return s_radio.GetReceiveSensitivity();
|
return s_radio.GetReceiveSensitivity();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void otPlatRadioSetMacKey(otInstance *aInstance,
|
||||||
|
uint8_t aKeyIdMode,
|
||||||
|
uint8_t aKeyId,
|
||||||
|
const otMacKey *aPrevKey,
|
||||||
|
const otMacKey *aCurrKey,
|
||||||
|
const otMacKey *aNextKey)
|
||||||
|
{
|
||||||
|
SuccessOrDie(s_radio.SetMacKey(aKeyIdMode, aKeyId, *aPrevKey, *aCurrKey, *aNextKey));
|
||||||
|
}
|
||||||
|
|
||||||
|
void otPlatRadioSetMacFrameCounter(otInstance *aInstance, uint32_t aMacFrameCounter)
|
||||||
|
{
|
||||||
|
SuccessOrDie(s_radio.SetMacFrameCounter(aMacFrameCounter));
|
||||||
|
}
|
||||||
|
|
||||||
#if OPENTHREAD_CONFIG_DIAG_ENABLE
|
#if OPENTHREAD_CONFIG_DIAG_ENABLE
|
||||||
otError otPlatDiagProcess(otInstance *instance, int argc, char *argv[], char *output, size_t output_max_len)
|
otError otPlatDiagProcess(otInstance *instance, int argc, char *argv[], char *output, size_t output_max_len)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user