SKYENGINE API  参考手册返回目录  

 
int32 mr_platEx

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



Description
设置手机时间。
Parameters

Name Description
input MYTIME数据结构指针
input_len MYTIME 数据结构大小
output
output_len
cb

Return Value

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

Remarks

数据结构如下,
typedef struct MYTIME
{
    kal_uint16 nYear;
    kal_uint8 nMonth;
    kal_uint8 nDay;
    kal_uint8 nHour;
    kal_uint8 nMin;
    kal_uint8 nSec;
    kal_uint8 DayIndex; 
} MYTIME;

Example

/*mrp code*/

MYTIME settime = { 0 };
settime.nYear=2011;
settime.nMonth=6;
settime.nDay=1;
settime.nHour = 18;
settime.nMin = 00;
mrc_platEx( 5002, (uint8*)&settime, sizeof ( MYTIME ), NULL, NULL, NULL );

See Also

 


Copyright ?2005-20010 SKY-MOBI

返回目录