Heart Rate Service Client module. More...
Macros |
|
| #define | BLE_HRS_C_DEF (_name) |
|
Macro for defining a ble_hrs_c instance.
More...
|
|
| #define | BLE_HRS_C_ARRAY_DEF (_name, _cnt) |
|
Macro for defining multiple ble_hrs_c instances.
More...
|
|
| #define | BLE_HRS_C_RR_INTERVALS_MAX_CNT 20 |
|
Maximum number of RR intervals to be decoded for each HRM notifications (any extra RR intervals are ignored).
More...
|
|
Detailed Description
Heart Rate Service Client module.
This module contains the APIs and types exposed by the Heart Rate Service Client module. The application can use these APIs and types to perform the discovery of Heart Rate Service at the peer and to interact with it.
- Warning
- Currently, this module only supports the Heart Rate Measurement characteristic. This means that it is able to enable notification of the characteristic at the peer and is able to receive Heart Rate Measurement notifications from the peer. It does not support the Body Sensor Location and the Heart Rate Control Point characteristics. When a Heart Rate Measurement is received, this module decodes only the Heart Rate Measurement value field (both 8-bit and 16-bit) and provides it to the application.
- Note
-
The application must register this module as the BLE event observer by using the NRF_SDH_BLE_OBSERVER macro. Example:
ble_hrs_c_t instance;NRF_SDH_BLE_OBSERVER (anything, BLE_HRS_C_BLE_OBSERVER_PRIO ,ble_hrs_c_on_ble_evt , &instance);
Macro Definition Documentation
| #define BLE_HRS_C_ARRAY_DEF | ( | _name, | |
| _cnt | |||
| ) |
Macro for defining multiple ble_hrs_c instances.
- Parameters
-
_name Name of the array of instances. _cnt Number of instances to define.
| #define BLE_HRS_C_DEF | ( | _name | ) |
Macro for defining a ble_hrs_c instance.
- Parameters
-
_name Name of the instance.
| #define BLE_HRS_C_RR_INTERVALS_MAX_CNT 20 |
Maximum number of RR intervals to be decoded for each HRM notifications (any extra RR intervals are ignored).
This define should be defined in the sdk_config.h file to override the default.