aicare_config.h 888 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef __AICARE_CONFIG_H__
  2. #define __AICARE_CONFIG_H__
  3. #include "aicare_profile.h"
  4. #include "sys_utils.h"
  5. typedef struct
  6. {
  7. uint16_t type;
  8. uint8_t status;
  9. uint16_t length;
  10. uint8_t *data;
  11. }aicare_tlv_t;
  12. enum GLOBAL_STA_CODE_T
  13. {
  14. AICARE_STA_SUC=0x00,
  15. AICARE_STA_FAIL,
  16. AICARE_STA_OTA,
  17. AICARE_STA_FILE,
  18. AICARE_STA_CHARGE,
  19. AICARE_STA_LVRT,
  20. AICARE_STA_RUN,
  21. AICARE_STA_CALL,
  22. AICARE_STA_OOM,
  23. };
  24. enum AICARE_APP_CMD_T
  25. {
  26. AICARE_HANDSHAKE1_CMD=0x0001,
  27. AICARE_HANDSHAKE2_CMD=0x0002,
  28. AICARE_SET_PIDVID_CMD=0x0003,
  29. AICARE_SET_ADVNAME_CMD=0x0004,
  30. AICARE_READ_CHIP_CMD=0x0005,
  31. AICARE_FIND_UPDATA_CMD=0x0006,
  32. AICARE_DEV_TIME_CMD=0x0102,
  33. AICARE_BATT_LEVEL_CMD=0x0103,
  34. AICARE_DEV_VERSION_CMD=0x0104,
  35. AICARE_DEV_MAC_CMD=0x0105,
  36. AICARE_SET_USERINFO_CMD=0x0106,
  37. AICARE_STEP_COUNT_CMD=0x0107,
  38. AICARE_SET_BRIGHT_CMD=0x0108,
  39. AICARE_SET_SITTING_CMD=0x0109,
  40. };
  41. #endif