nRF5 SDK v16.0.0
Modules | Macros
Heart Rate Service Client

Heart Rate Service Client module. More...

Modules

 Enumerations
 
 Structures
 
 Types
 
 Functions
 
 Heart Rate Service Client configuration
 

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:

Macro Definition Documentation

#define BLE_HRS_C_ARRAY_DEF (   _name,
  _cnt 
)

Macro for defining multiple ble_hrs_c instances.

Parameters
_nameName of the array of instances.
_cntNumber of instances to define.
#define BLE_HRS_C_DEF (   _name)

Macro for defining a ble_hrs_c instance.

Parameters
_nameName 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.


Documentation feedback | Developer Zone | Subscribe | Updated