1 /*
2  * Copyright (C) 2019-2020 Alibaba Group Holding Limited
3  */
4 
5 #ifndef _BT_HRS_H_
6 #define _BT_HRS_H_
7 #include "aos/list.h"
8 
9 typedef struct _hrs_t {
10     uint16_t conn_handle;
11     uint16_t hrs_svc_handle;
12     int16_t mea_ccc;
13     uint8_t hrs_mea_flag;
14     uint8_t hrs_mea_level;
15     slist_t next;
16 } hrs_t;
17 
18 typedef hrs_t *hrs_handle_t;
19 
20 hrs_handle_t hrs_init(hrs_t *hrs);
21 int hrs_measure_level_update(hrs_handle_t handle, uint8_t *data, uint8_t length);
22 
23 #endif
24 
25