|
|
@ -50,11 +50,11 @@ typedef enum { |
|
|
|
} ify_hrs_sensor_pos_t; |
|
|
|
|
|
|
|
typedef enum { |
|
|
|
ify_hrs_cmd_read_device_version = 1, |
|
|
|
ify_hrs_cmd_read_sensor_info = 2, |
|
|
|
ify_hrs_cmd_read_device_state = 3, |
|
|
|
ify_hrs_cmd_read_time = 4, |
|
|
|
ify_hrs_cmd_sync_time = 5, |
|
|
|
ify_hrs_cmd_read_device_version = 1, |
|
|
|
ify_hrs_cmd_read_sensor_info = 2, |
|
|
|
ify_hrs_cmd_read_device_state = 3, |
|
|
|
ify_hrs_cmd_read_time = 4, |
|
|
|
ify_hrs_cmd_sync_time = 5, |
|
|
|
ify_hrs_cmd_start_realtime_preview = 8, |
|
|
|
ify_hrs_cmd_stop_realtime_preview = 9, |
|
|
|
ify_hrs_cmd_read_records_info = 10, |
|
|
@ -78,6 +78,11 @@ typedef enum { |
|
|
|
ify_hrs_report_sensor_drop_detect = 105, |
|
|
|
ify_hrs_report_record_upload_end = 106, |
|
|
|
|
|
|
|
ify_hrs_test_cmd_start_capture = 200, // uint8 0/1 |
|
|
|
ify_hrs_test_cmd_stop_capture = 201, // uint8 0/1 |
|
|
|
ify_hrs_test_cmd_read_reg = 202, // uint8 addr |
|
|
|
ify_hrs_test_cmd_write_reg = 203, // uint8 addr, uint8 val |
|
|
|
|
|
|
|
} ify_hrs_cmd_t; |
|
|
|
|
|
|
|
/******************************************************************************* |
|
|
@ -109,11 +114,11 @@ typedef struct { |
|
|
|
uint8_t low_battery : 1; // 位置 |
|
|
|
uint8_t full_storge : 1; // 位置 |
|
|
|
// uint8_t is_storaging : 1; // 位置 |
|
|
|
uint8_t holder : 4; // 位置 |
|
|
|
uint8_t holder : 4; // 位置 |
|
|
|
} device_state0; |
|
|
|
uint8_t device_state1; // 预留 |
|
|
|
uint8_t powerlevel; // 电量 |
|
|
|
uint8_t storage_item_num; // 记录存储条数 |
|
|
|
uint8_t device_state1; // 预留 |
|
|
|
uint8_t powerlevel; // 电量 |
|
|
|
uint8_t storage_item_num; // 记录存储条数 |
|
|
|
// uint32_t storage_setting_time_s; |
|
|
|
// uint32_t storage_has_storaged_time_s; |
|
|
|
} device_state_receipt_t; |
|
|
|