#ifndef __OHPOC_H__ #define __OHPOC_H__ #include "stdbool.h" #include "board.h" #define OHPOC_APP_NAME "HS902" //#define OHPOC_APP_NAME "RTL-TEST" #define OHPOC_VERSION "03001" //外部OCPU 应用维护 #define OHPOC_MODLE "N58" //作为OPEN时,此值用于FOTA升级标识使用 #define OHPOC_CUST OHPOC_APP_NAME //作为OPEN时,此值用于FOTA升级标识使用 #define OHPOC_POC_PLATFORM "HGS" #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) 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