WXK
2025-01-21 8f1a91a8ec98e430cfe4357bda099d495917198e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 *******************************************************************************
 * @file     hrs.h
 * @create   2023-08-01
 * @author   Panchip BLE GROUP
 * @note
 * Copyright (c) 2022 Shanghai Panchip Microelectronics Co.,Ltd.
 *
 *******************************************************************************
 */
#ifndef HRS_H_
#define HRS_H_
 
#include <stdint.h>
 
/* Heart-rate configuration */
#define BLE_SVC_HRS_UUID16                               0x180D
#define BLE_SVC_HRS_CHR_UUID16_MEASUREMENT            0x2A37
#define BLE_SVC_HRS_CHR_UUID16_BODY_SENSOR_LOC        0x2A38
#define BLE_SVC_HRS_CHR_UUID16_DEVICE_INFO            0x180A
#define BLE_SVC_HRS_CHR_UUID16_MANUFACTURER_NAME      0x2A29
#define BLE_SVC_HRS_CHR_UUID16_MODEL_NUMBER           0x2A24
 
extern uint16_t hrs_hrm_handle;
 
void ble_svc_hrs_init(void);
int ble_svc_hrs_notify(uint16_t conn_handle, uint8_t *pdata, uint32_t len);
 
#endif /* HRS_H_ */