ohpoc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __OHPOC_H__
  2. #define __OHPOC_H__
  3. #include "stdbool.h"
  4. #include "board.h"
  5. #define OHPOC_APP_NAME "HS902"
  6. //#define OHPOC_APP_NAME "RTL-TEST"
  7. #define OHPOC_VERSION "03001" //外部OCPU 应用维护
  8. #define OHPOC_MODLE "N58" //作为OPEN时,此值用于FOTA升级标识使用
  9. #define OHPOC_CUST OHPOC_APP_NAME //作为OPEN时,此值用于FOTA升级标识使用
  10. #define OHPOC_POC_PLATFORM "HGS"
  11. #define CUSTOMER_CODE 0
  12. //can not be modify
  13. #define OHPOC_EVENT_BASE (5000+100)
  14. //user event define
  15. #define OHPOC_EVENT_KEY_NOR (OHPOC_EVENT_BASE+1)
  16. #define OHPOC_EVENT_KEY_MAT (OHPOC_EVENT_BASE+2)
  17. #define OHPOC_EVENT_MAIN (OHPOC_EVENT_BASE+3)
  18. typedef void(*OHPOC_MSG_Callback)(unsigned char *msg, int len);
  19. bool ohpocInit(OHPOC_MSG_Callback msgCallback,const char *oversion, const char *omodle, const char *ocust);
  20. void ohpoc_msg_send(unsigned char *msg, unsigned short len);
  21. //其它可用接口
  22. typedef struct{
  23. unsigned short year;
  24. unsigned char month;
  25. unsigned char day;
  26. unsigned char hour;
  27. unsigned char min;
  28. unsigned char sec;
  29. }MY_CLOCK;
  30. char *ohpocGetICCID(void);
  31. char *ohpocGetIMEI(void);
  32. void ohpocGetClock(MY_CLOCK *myclock);
  33. #endif