123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- #ifndef _AEM_POP_WINDOW_IF_H_
- #define _AEM_POP_WINDOW_IF_H_
- #include <stdint.h>
- #include <stdbool.h>
- #include "aem_proto_ble_if.h"
- #include "aem_alarm_manager.h"
- #include "aem_timer_data.h"
- #include "aem_workout_if.h"
- #include "aem_pop_window_id.h"
- #include "aem_app_event.h"
- #pragma pack(push, 1)
- typedef enum
- {
- HIGH_PRESSURE,
- LOW_SPO2,
- HIGH_HEART_RATE,
- LOW_HEART_RATE,
- CAL_REACH,
- TIME_REACH,
- STEP_REACH,
- DRINK_WATER_REMIND,
- STAND_REMIND,
- MENSTRUAL_REMIND,
- OVULATION_REMIND,
- } aem_health_pop_type_t;
- typedef struct
- {
- uint16_t pop_id;
- bool is_ring;
- bool is_vibrate;
- bool is_trans_anim; // 是否打开过场动画
- } aem_pop_info_head_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- uint8_t on_off;
- } aem_pop_test_info_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- uint8_t bind_state;
- } aem_pop_bind_info_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- aem_health_pop_type_t pop_type;
- uint32_t value;
- } aem_pop_health_info_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- uint8_t call_type; // 0:hfp;1:ble
- aem_call_info_t info;
- } aem_pop_call_info_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- uint32_t msg_id;
- bool is_vibrate;
- } aem_pop_details_info_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- aem_alarm_item_t info;
- } aem_pop_alarm_info_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- timer_time_t timer_state;
- } aem_pop_timer_info_t;
- typedef enum
- {
- AEM_WF_TRANS_STATE_OK,
- AEM_WF_TRANS_STATE_ERROR,
- AEM_WF_TRANS_STATE_COMPLETE,
- } aem_wf_trans_state_e;
- typedef struct
- {
- aem_pop_info_head_t head;
- aem_wf_trans_state_e state;
- uint8_t progress;
- } aem_wf_trans_msg_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- uint8_t state;
- uint8_t bat_value;
- } aem_charge_evt_info_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- uint8_t state;
- } aem_pop_power_info_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- workout_goal_remind_t settings;
- } aem_pop_sport_info_t;
- typedef struct
- {
- aem_pop_info_head_t head;
- workout_id_e workout_id;
- } aem_pop_auto_rec_info_t;
- #pragma pack(pop)
- #endif
|