123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef __OHPOC_H__
- #define __OHPOC_H__
- #include "lsapi_types.h"
- #include "lsapi_event.h"
- #define OHPOC_APP_NAME "X6"
- #define OHPOC_VERSION "220004" //外部OCPU 应用维护
- #define OHPOC_MODLE "M5701" //作为OPEN时,此值用于FOTA升级标识使用
- #define OHPOC_CUST OHPOC_APP_NAME //作为OPEN时,此值用于FOTA升级标识使用
- #define OHPOC_POC_PLATFORM "GWSD"
- #define CUSTOMER_CODE 0
- #define TONEFRE 880
- #define BND_PSN 1509000001
- #define GPS_HADRENABLE 1
- //can not be modify
- #define OHPOC_EVENT_BASE (LS_API_EV_BASE+100)
- #define OHPOC_EVENT_USB (OHPOC_EVENT_BASE+1)
- #define OHPOC_EVENT_KEY_NOR (OHPOC_EVENT_BASE+2)
- #define OHPOC_EVENT_MAIN (OHPOC_EVENT_BASE+3)
- #define USER_EVENT_EXIT (LS_API_EV_BASE+12)//HYL
- char *getOhpocVersion(void);
- char *getOhpocModle(void);
- char *getOhpocCust(void);
- typedef void(*OHPOC_MSG_Callback)(unsigned char *msg, int len);
- bool ohpocInit(OHPOC_MSG_Callback msgCallback,const char *oversion, const char *omodle, const char *ocust);
- void ohpoc_msg_send(unsigned char *msg, unsigned short len);
- //其它可用接口
- typedef struct{
- unsigned short year;
- unsigned char month;
- unsigned char day;
- unsigned char hour;
- unsigned char min;
- unsigned char sec;
- }MY_CLOCK;
- extern MY_CLOCK poc_clock;
- char *ohpocGetICCID(void);
- char *ohpocGetIMEI(void);
- void ohpocGetClock(MY_CLOCK *myclock);
- #endif
|