1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef __OHPOC_H__
- #define __OHPOC_H__
- #include "stdbool.h"
- #include "board.h"
- #define OHPOC_APP_NAME "T555"
- //#define OHPOC_APP_NAME "RTL-TEST"
- #define OHPOC_VERSION "03019" //外部OCPU 应用维护
- #define OHPOC_MODLE "N58" //作为OPEN时,此值用于FOTA升级标识使用
- #define OHPOC_CUST OHPOC_APP_NAME //作为OPEN时,此值用于FOTA升级标识使用
- #define CUSTOMER_CODE 0
- //can not be modify
- #define OHPOC_EVENT_BASE (5000+100)
- //user event define
- #define OHPOC_EVENT_KEY_NOR (OHPOC_EVENT_BASE+1)
- #define OHPOC_EVENT_KEY_MAT (OHPOC_EVENT_BASE+2)
- #define OHPOC_EVENT_MAIN (OHPOC_EVENT_BASE+3)
- #define OHPOC_EVENT_HTTP (OHPOC_EVENT_BASE+4)
- #define OHPOC_EVENT_LEARN (OHPOC_EVENT_BASE+5)
- 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;
- char *ohpocGetICCID(void);
- char *ohpocGetIMEI(void);
- void ohpocGetClock(MY_CLOCK *myclock);
- #endif
|