SKYENGINE API  参考手册返回目录  

 
int32 mr_platEx

(int32 code = 1307,
uint8* input,
int32 input_len,
uint8** output,
int32* output_len,
MR_PLAT_EX_CB* cb
)



Description
获得sim卡个数等信息。
Parameters

Name Description
input
input_len
output

MR_DUALSIM_SET_T数据结构指针

output_len MR_DUALSIM_SET_T数据结构大小
cb

Return Value

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

Remarks

用来获取多卡多待手机当前的sim状态信息。如果是非多卡多待手机,可以直接返回MR_IGNORE。
MR_DUALSIM_SET_T数据结构:
typedef struct
{
    uint8 totalNum;             //sim numbers, max to 6
    uint8 curActive;            //index of simId[] witch actived
    uint16 dummy;              //no use, just for align
    int32 simId[4];              //mapping to plat sim socket id
    char* simNamePtr[4];     //sim卡名字,unicode
    uint16 simNameLen[4];    //名字长度
}MR_DUALSIM_SET_T;

Example

/*mrp code*/

MR_DUALSIM_SET_T *simInfo = NULL;
int32 re;
int32 len;

/*1307(get sim card info)*/
re = mrc_platEx( 1307, NULL, 0,(uint8**)&simInfo, (int32*)&len, NULL );
if (MR_SUCCESS == re)
{
    mrc_printf( "totalNum=%d,curAct=%d", simInfo->totalNum, simInfo->curActive );
}

See Also

 


Copyright ?2005-20010 SKY-MOBI

返回目录