nRF51 SDK - S120 SoftDevice
|
Functions | |
uint32_t | ble_hrs_c_init (ble_hrs_c_t *p_ble_hrs_c, ble_hrs_c_init_t *p_ble_hrs_c_init) |
Function for initializing the heart rate client module. More... | |
void | ble_hrs_c_on_ble_evt (ble_hrs_c_t *p_ble_hrs_c, const ble_evt_t *p_ble_evt) |
Function for handling BLE events from the SoftDevice. More... | |
uint32_t | ble_hrs_c_hrm_notif_enable (ble_hrs_c_t *p_ble_hrs_c) |
Function for requesting the peer to start sending notification of Heart Rate Measurement. More... | |
uint32_t ble_hrs_c_hrm_notif_enable | ( | ble_hrs_c_t * | p_ble_hrs_c | ) |
Function for requesting the peer to start sending notification of Heart Rate Measurement.
This function will enable to notification of the Heart Rate Measurement at the peer by writing to the CCCD of the Heart Rate Measurement Characteristic.
p_ble_hrs_c | Pointer to the heart rate client structure. |
uint32_t ble_hrs_c_init | ( | ble_hrs_c_t * | p_ble_hrs_c, |
ble_hrs_c_init_t * | p_ble_hrs_c_init | ||
) |
Function for initializing the heart rate client module.
This function will register with the DB Discovery module. While doing so, it registers for the Heart Rate Service. Doing so will make the DB Discovery module to look for the presence of a Heart Rate Service instance at the peer when a discovery is started..
[in] | p_ble_hrs_c | Pointer to the heart rate client structure. |
[in] | p_ble_hrs_c_init | Pointer to the heart rate init structure containing the initialization information. |
void ble_hrs_c_on_ble_evt | ( | ble_hrs_c_t * | p_ble_hrs_c, |
const ble_evt_t * | p_ble_evt | ||
) |
Function for handling BLE events from the SoftDevice.
This function will handle the BLE events received from the SoftDevice. If the BLE event is relevant to the Heart Rate Client module, then it uses it to update interval variables and, if necessary, send events to the application.
[in] | p_ble_hrs_c | Pointer to the heart rate client structure. |
[in] | p_ble_evt | Pointer to the BLE event. |