otError otPlatRadioEnable(otInstance *aInstance) { pQorvoInstance = aInstance; memset(&otCachedSettings, 0x00, sizeof(otCachedSettings_t)); if (!otPlatRadioIsEnabled(aInstance)) { sState = OT_RADIO_STATE_SLEEP; } return OT_ERROR_NONE; }
otError otPlatRadioDisable(otInstance *aInstance) { otLogDebgPlat(sInstance, "Radio disable"); if (otPlatRadioIsEnabled(aInstance)) { radioSleep(); sState = OT_RADIO_STATE_DISABLED; } return OT_ERROR_NONE; }
otError otPlatRadioEnable(otInstance *aInstance) { otLogDebgPlat(sInstance, "Radio enable"); if (!otPlatRadioIsEnabled(aInstance)) { radioSleep(); sState = OT_RADIO_STATE_SLEEP; } return OT_ERROR_NONE; }
otError otPlatRadioDisable(otInstance *aInstance) { OT_UNUSED_VARIABLE(aInstance); if (otPlatRadioIsEnabled(aInstance)) { if (sState == OT_RADIO_STATE_RECEIVE) { qorvoRadioSetRxOnWhenIdle(false); } sState = OT_RADIO_STATE_DISABLED; } return OT_ERROR_NONE; }