Sample code for Get the Current Packet Switched state

//--------------------------------------------------------------------------------------------------
/**
* Test: Packet Switched state
*
*/
//--------------------------------------------------------------------------------------------------
static void Testle_mrc_GetPSState
(
void
)
{
le_mrc_NetRegState_t psState;
 
switch(psState)
{
case LE_MRC_REG_HOME:
LE_INFO("le_mrc_GetPacketSwitchedState returns LE_MRC_REG_HOME");
break;
case LE_MRC_REG_ROAMING:
LE_INFO("le_mrc_GetPacketSwitchedState returns LE_MRC_REG_ROAMING");
break;
case LE_MRC_REG_NONE:
LE_INFO("le_mrc_GetPacketSwitchedState returns LE_MRC_REG_NONE");
break;
default:
LE_ERROR("le_mrc_GetPacketSwitchedState returns an unknown PS state %d", psState);
break;
}
 
}