SKYENGINE API  参考手册返回目录  

 

int32 mr_plat(int32 code = 1004, int32 param)



Description
多sim卡待机时设置所用sim卡。
Parameters

Name Description
param Sim卡id(对应platEx(1307)结构MR_DUALSIM_SET_T 中simId,由手机或移植层定义)

Return Value

MR_SUCCESS                  设置成功
MR_FAILED                     设置失败
MR_IGNOR                      不支持该功能

Remarks

 

Example

/*mrp code*/

MR_DUALSIM_SET_T *simInfo = NULL;
int32 setActID_index = 0;
int32 oldActID_index = 0;
int32 re;
int32 len;

/*1307(get sim card info)*/
re = mrc_platEx( 1307, NULL, 0,(uint8**)&simInfo, (int32*)&len, NULL );
if (MR_SUCCESS == re)
{
     oldActID_index = simInfo->curActive;
     setActID_index = (simInfo->curActive == (simInfo->totalNum - 1)) ? (simInfo->curActive - 1) : (simInfo->curActive + 1);
}
mrc_plat( 1004, simInfo->simId[setActID_index] );

See Also

mr_platEx(1307)


Copyright ?2005-20010 SKY-MOBI

返回目录