|
typedef void(* | BleHRS_EventCallBack) (uint8_t hostId, uint8_t cmdAccess, uint8_t *data, uint16_t length) |
|
Here shows the definitions of the HRS service for application uses.
◆ BleHRS_EventCallBack
typedef void(* BleHRS_EventCallBack) (uint8_t hostId, uint8_t cmdAccess, uint8_t *data, uint16_t length) |
BleHRS_EventCallBack
- Note
- This callback receives the HRS events. Each of these events can be associated with parameters.
◆ getHRS_ServiceHandles()
BleStackStatus getHRS_ServiceHandles |
( |
uint8_t |
hostId, |
|
|
BLEATT_HRS_Info * |
info |
|
) |
| |
Get HRS Handle Numbers
- Attention
-
- Parameters
-
[in] | hostId | : the link's host id. |
[out] | info | : a pointer to HRS information |
- Return values
-
BLESTACK_STATUS_ERR_INVALID_HOSTID | : Error host id. |
BLESTACK_STATUS_ERR_INVALID_PARAM | : Invalid parameter. |
BLESTACK_STATUS_SUCCESS | : Setting success. |
◆ setHRS_ServiceInit()
HRS Initialization
- Parameters
-
[in] | hostId | : the link's host id. |
[in] | gattRole | : BLE GATT role. |
[in] | info | : a pointer to HRS information. |
[in] | callback | : a pointer to a callback function that receive the service events. |
- Return values
-
BLESTACK_STATUS_ERR_INVALID_HOSTID | : Error host id. |
BLESTACK_STATUS_ERR_INVALID_PARAM | : Invalid parameter. |
BLESTACK_STATUS_ERR_NOT_SUPPORTED | : Registered services buffer full. |
BLESTACK_STATUS_SUCCESS | : Setting success. |