![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
Heart Rate Service. More...
Topics | |
| HRS Body sensor location | |
Data Structures | |
| struct | ble_hrs_evt |
| Heart rate service event. More... | |
| struct | ble_hrs_config |
| Heart rate service configuration. More... | |
| struct | ble_hrs |
| Heart rate service structure. More... | |
Macros | |
| #define | BLE_HRS_DEF(_name) |
| Define a Heart rate service instance. | |
| #define | BLE_HRS_CONFIG_SEC_MODE_DEFAULT |
| Default security configuration. | |
Typedefs | |
| typedef void(* | ble_hrs_evt_handler_t) (struct ble_hrs *hrs, const struct ble_hrs_evt *evt) |
| Heart rate service event handler type. | |
Enumerations | |
| enum | ble_hrs_evt_type { BLE_HRS_EVT_NOTIFICATION_ENABLED , BLE_HRS_EVT_NOTIFICATION_DISABLED , BLE_HRS_EVT_ERROR } |
| Heart rate service event types. More... | |
Functions | |
| uint32_t | ble_hrs_init (struct ble_hrs *hrs, const struct ble_hrs_config *hrs_config) |
| Initialize the heart rate service. | |
| void | ble_hrs_conn_params_evt (struct ble_hrs *hrs, const struct ble_conn_params_evt *conn_param_evt) |
| Connection parameters event handler. | |
| uint32_t | ble_hrs_heart_rate_measurement_send (struct ble_hrs *hrs, uint16_t heart_rate) |
| Send a heart rate measurement notification. | |
| uint32_t | ble_hrs_rr_interval_add (struct ble_hrs *hrs, uint16_t rr_interval) |
| Function for adding a RR Interval measurement to the RR Interval buffer. | |
| bool | ble_hrs_rr_interval_buffer_is_full (struct ble_hrs *hrs) |
| Function for checking if RR Interval buffer is full. | |
| uint32_t | ble_hrs_sensor_contact_supported_set (struct ble_hrs *hrs, bool is_sensor_contact_supported) |
| Function for setting the state of the sensor contact supported bit. | |
| uint32_t | ble_hrs_sensor_contact_detected_update (struct ble_hrs *hrs, bool is_sensor_contact_detected) |
| Function for setting the state of the sensor contact detected bit. | |
| uint32_t | ble_hrs_body_sensor_location_set (struct ble_hrs *hrs, uint8_t body_sensor_location) |
| Function for setting the Body Sensor Location. | |
| void | ble_hrs_on_ble_evt (const ble_evt_t *ble_evt, void *ble_hrs) |
| Bluetooth LE event handler for the Heart Rate Service. | |
Heart Rate Service.