aem_pop_if.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #ifndef _AEM_POP_WINDOW_IF_H_
  2. #define _AEM_POP_WINDOW_IF_H_
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #include "aem_proto_ble_if.h"
  6. #include "aem_alarm_manager.h"
  7. #include "aem_timer_data.h"
  8. #include "aem_workout_if.h"
  9. #include "aem_pop_window_id.h"
  10. #include "aem_app_event.h"
  11. #pragma pack(push, 1)
  12. typedef enum
  13. {
  14. HIGH_PRESSURE,
  15. LOW_SPO2,
  16. HIGH_HEART_RATE,
  17. LOW_HEART_RATE,
  18. CAL_REACH,
  19. TIME_REACH,
  20. STEP_REACH,
  21. DRINK_WATER_REMIND,
  22. STAND_REMIND,
  23. MENSTRUAL_REMIND,
  24. OVULATION_REMIND,
  25. } aem_health_pop_type_t;
  26. typedef struct
  27. {
  28. uint16_t pop_id;
  29. bool is_ring;
  30. bool is_vibrate;
  31. bool is_trans_anim; // 是否打开过场动画
  32. } aem_pop_info_head_t;
  33. typedef struct
  34. {
  35. aem_pop_info_head_t head;
  36. uint8_t on_off;
  37. } aem_pop_test_info_t;
  38. typedef struct
  39. {
  40. aem_pop_info_head_t head;
  41. uint8_t bind_state;
  42. } aem_pop_bind_info_t;
  43. typedef struct
  44. {
  45. aem_pop_info_head_t head;
  46. aem_health_pop_type_t pop_type;
  47. uint32_t value;
  48. } aem_pop_health_info_t;
  49. typedef struct
  50. {
  51. aem_pop_info_head_t head;
  52. uint8_t call_type; // 0:hfp;1:ble
  53. aem_call_info_t info;
  54. } aem_pop_call_info_t;
  55. typedef struct
  56. {
  57. aem_pop_info_head_t head;
  58. uint32_t msg_id;
  59. bool is_vibrate;
  60. } aem_pop_details_info_t;
  61. typedef struct
  62. {
  63. aem_pop_info_head_t head;
  64. aem_alarm_item_t info;
  65. } aem_pop_alarm_info_t;
  66. typedef struct
  67. {
  68. aem_pop_info_head_t head;
  69. timer_time_t timer_state;
  70. } aem_pop_timer_info_t;
  71. typedef enum
  72. {
  73. AEM_WF_TRANS_STATE_OK,
  74. AEM_WF_TRANS_STATE_ERROR,
  75. AEM_WF_TRANS_STATE_COMPLETE,
  76. } aem_wf_trans_state_e;
  77. typedef struct
  78. {
  79. aem_pop_info_head_t head;
  80. aem_wf_trans_state_e state;
  81. uint8_t progress;
  82. } aem_wf_trans_msg_t;
  83. typedef struct
  84. {
  85. aem_pop_info_head_t head;
  86. uint8_t state;
  87. uint8_t bat_value;
  88. } aem_charge_evt_info_t;
  89. typedef struct
  90. {
  91. aem_pop_info_head_t head;
  92. uint8_t state;
  93. } aem_pop_power_info_t;
  94. typedef struct
  95. {
  96. aem_pop_info_head_t head;
  97. workout_goal_remind_t settings;
  98. } aem_pop_sport_info_t;
  99. typedef struct
  100. {
  101. aem_pop_info_head_t head;
  102. workout_id_e workout_id;
  103. } aem_pop_auto_rec_info_t;
  104. #pragma pack(pop)
  105. #endif