|
楼主 |
发表于 2010-7-26 19:40:56
|
显示全部楼层
搞定了。
void SIM_RequestIMSI(void)
{
int sim = get_active_sim();
S16 error;
MYQUEUE Message;
dbg_print("sim=%d\n",sim);
if(sim == 1)
{
SetProtocolEventHandler(SIMGetIMSI_Rsp,PRT_GET_IMSI_RSP);
Message.oslDestId = MOD_L4C;
}
#ifdef __MMI_DUAL_SIM_MASTER__
else if(sim == 2)
{
SetSlaveProtocolEventHandler(SIMGetIMSI_Rsp,PRT_GET_IMSI_RSP);
Message.oslDestId = MOD_L4C_2;
}
#endif
Message.oslSrcId = MOD_MMI;
Message.oslMsgId = PRT_GET_IMSI_REQ;
Message.oslDataPtr = NULL;
Message.oslPeerBuffPtr= NULL;
OslMsgSendExtQueue(&Message);
} |
|