nRF5 SDK v15.2.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 will be ignored). More...
 

Detailed Description

Heart Rate Service Client module.

This module contains the APIs and types exposed by the Heart Rate Service Client module. These APIs and types can be used by the application to perform discovery of Heart Rate Service at the peer and interact with it.

Warning
Currently this module only has support for Heart Rate Measurement characteristic. This means that it will be able to enable notification of the characteristic at the peer and be 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 will decode only the Heart Rate Measurement Value (both 8 bit and 16 bit) field from it and provide it to the application.
Note
The application must register this module as BLE event observer 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 will be ignored).

This define should be defined in the sdk_config.h file to override the default.


Documentation feedback | Developer Zone | Subscribe | Updated