ohpoc.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef __OHPOC_H__
  2. #define __OHPOC_H__
  3. #include "lsapi_types.h"
  4. #include "lsapi_event.h"
  5. #define OHPOC_APP_NAME "X6"
  6. #define OHPOC_VERSION "220004" //外部OCPU 应用维护
  7. #define OHPOC_MODLE "M5701" //作为OPEN时,此值用于FOTA升级标识使用
  8. #define OHPOC_CUST OHPOC_APP_NAME //作为OPEN时,此值用于FOTA升级标识使用
  9. #define OHPOC_POC_PLATFORM "GWSD"
  10. #define CUSTOMER_CODE 0
  11. #define TONEFRE 880
  12. #define BND_PSN 1509000001
  13. #define GPS_HADRENABLE 1
  14. //can not be modify
  15. #define OHPOC_EVENT_BASE (LS_API_EV_BASE+100)
  16. #define OHPOC_EVENT_USB (OHPOC_EVENT_BASE+1)
  17. #define OHPOC_EVENT_KEY_NOR (OHPOC_EVENT_BASE+2)
  18. #define OHPOC_EVENT_MAIN (OHPOC_EVENT_BASE+3)
  19. #define USER_EVENT_EXIT (LS_API_EV_BASE+12)//HYL
  20. char *getOhpocVersion(void);
  21. char *getOhpocModle(void);
  22. char *getOhpocCust(void);
  23. typedef void(*OHPOC_MSG_Callback)(unsigned char *msg, int len);
  24. bool ohpocInit(OHPOC_MSG_Callback msgCallback,const char *oversion, const char *omodle, const char *ocust);
  25. void ohpoc_msg_send(unsigned char *msg, unsigned short len);
  26. //其它可用接口
  27. typedef struct{
  28. unsigned short year;
  29. unsigned char month;
  30. unsigned char day;
  31. unsigned char hour;
  32. unsigned char min;
  33. unsigned char sec;
  34. }MY_CLOCK;
  35. extern MY_CLOCK poc_clock;
  36. char *ohpocGetICCID(void);
  37. char *ohpocGetIMEI(void);
  38. void ohpocGetClock(MY_CLOCK *myclock);
  39. #endif