Browse Source

添加测试指令

master
zhaohe 1 year ago
parent
commit
81bdc5323d
  1. 23
      heart_rate_sensor_protocol.h

23
heart_rate_sensor_protocol.h

@ -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;

Loading…
Cancel
Save