|
|
@ -20,6 +20,7 @@ typedef enum { |
|
|
|
kifyhrs_ecode_hardware_error = 5, |
|
|
|
kifyhrs_ecode_sensor_drop = 6, |
|
|
|
kifyhrs_ecode_no_record_find = 7, |
|
|
|
kifyhrs_ecode_parameter_error = 8, |
|
|
|
} ify_hrs_error_code_t; |
|
|
|
|
|
|
|
typedef enum { |
|
|
@ -46,22 +47,25 @@ 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_start_capture = 6, |
|
|
|
ify_hrs_cmd_stop_capture = 7, |
|
|
|
ify_hrs_cmd_start_realtime_report = 8, |
|
|
|
ify_hrs_cmd_stop_realtime_report = 9, |
|
|
|
ify_hrs_cmd_read_records_info = 10, |
|
|
|
ify_hrs_cmd_del_record = 11, |
|
|
|
ify_hrs_cmd_start_upload_record = 12, |
|
|
|
ify_hrs_cmd_enter_ota = 13, |
|
|
|
ify_hrs_cmd_read_sn = 14, |
|
|
|
ify_hrs_cmd_reset = 15, |
|
|
|
ify_hrs_cmd_stop_upload_record = 16, |
|
|
|
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_capture = 6, |
|
|
|
ify_hrs_cmd_stop_capture = 7, |
|
|
|
ify_hrs_cmd_start_realtime_report = 8, |
|
|
|
ify_hrs_cmd_stop_realtime_report = 9, |
|
|
|
ify_hrs_cmd_read_records_info = 10, |
|
|
|
ify_hrs_cmd_del_record = 11, |
|
|
|
ify_hrs_cmd_start_upload_record = 12, |
|
|
|
ify_hrs_cmd_enter_ota = 13, |
|
|
|
ify_hrs_cmd_read_sn = 14, |
|
|
|
ify_hrs_cmd_reset = 15, |
|
|
|
ify_hrs_cmd_stop_upload_record = 16, |
|
|
|
ify_hrs_cmd_start_capture_time_v2 = 17, |
|
|
|
ify_hrs_cmd_start_upload_record_v2 = 18, |
|
|
|
|
|
|
|
ify_hrs_report_heartrate_data = 101, |
|
|
|
ify_hrs_report_battery_level = 102, |
|
|
|
ify_hrs_report_low_battey_level = 103, |
|
|
|