Sample code for Radio Power Management

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