Sample code for Radio Power Management
//--------------------------------------------------------------------------------------------------/*** Test: Radio Power Management.**///--------------------------------------------------------------------------------------------------static void Testle_mrc_Power(void){le_result_t res;le_onoff_t onoff;res = le_mrc_SetRadioPower(LE_OFF);if (res != LE_OK){le_mrc_SetRadioPower(LE_ON);}LE_ASSERT(res == LE_OK);sleep(5);res = le_mrc_GetRadioPower(&onoff);if ((res != LE_OK) || (onoff == LE_OFF)){le_mrc_SetRadioPower(LE_ON);}LE_ASSERT(res == LE_OK);LE_ASSERT(onoff == LE_OFF);res = le_mrc_SetRadioPower(LE_ON);LE_ASSERT(res == LE_OK);sleep(5);res = le_mrc_GetRadioPower(&onoff);LE_ASSERT(res == LE_OK);LE_ASSERT(onoff == LE_ON);sleep(5);}