nRF Connect SDK API 0.1.0
|
Heart Rate (HR) Service Client API. More...
Data Structures | |
struct | bt_hrs_flags |
Heart Measurement flags structure. More... | |
struct | bt_hrs_client_measurement |
Data structure of the Heart Rate Measurement characteristic. More... | |
struct | bt_hrs_client_hr_meas |
Heart Rate Measurement characteristic structure. More... | |
struct | bt_hrs_client_body_sensor_location |
Body Sensor Location characteristic structure. More... | |
struct | bt_hrs_client_control_point |
Heart Rate Control Point characteristic structure. More... | |
struct | bt_hrs_client |
Heart Rate Service Client instance structure. This structure contains status information for the client. More... | |
Typedefs | |
typedef void(* | bt_hrs_client_notify_cb) (struct bt_hrs_client *hrs_c, const struct bt_hrs_client_measurement *meas, int err) |
Heart Rate Measurement notification callback. | |
typedef void(* | bt_hrs_client_read_sensor_location_cb) (struct bt_hrs_client *hrs_c, enum bt_hrs_client_sensor_location location, int err) |
Heart Rate Body Sensor Location read callback. | |
typedef void(* | bt_hrs_client_write_cb) (struct bt_hrs_client *hrs_c, uint8_t err) |
Heart Rate Control Point write callback. | |
Enumerations | |
enum | bt_hrs_client_error { BT_HRS_CLIENT_ERROR_CP_NOT_SUPPORTED = 0x80 } |
Heart Rate Service error codes. More... | |
enum | bt_hrs_client_cp_value { BT_HRS_CLIENT_CP_VALUE_RESET_EE = 0x01 } |
Heart Rate Control Point values. More... | |
enum | bt_hrs_client_sensor_location { BT_HRS_CLIENT_SENSOR_LOCATION_OTHER , BT_HRS_CLIENT_SENSOR_LOCATION_CHEST , BT_HRS_CLIENT_SENSOR_LOCATION_WRIST , BT_HRS_CLIENT_SENSOR_LOCATION_FINGER , BT_HRS_CLIENT_SENSOR_LOCATION_HAND , BT_HRS_CLIENT_SENSOR_LOCATION_EAR_LOBE , BT_HRS_CLIENT_SENSOR_LOCATION_FOOT } |
Body sensor location values. More... | |
Functions | |
int | bt_hrs_client_init (struct bt_hrs_client *hrs_c) |
Function for initializing the Heart Rate Service Client. | |
int | bt_hrs_client_measurement_subscribe (struct bt_hrs_client *hrs_c, bt_hrs_client_notify_cb notify_cb) |
Subscribe to Heart Rate Measurement notification. | |
int | bt_hrs_client_measurement_unsubscribe (struct bt_hrs_client *hrs_c) |
Remove subscription to the Heart Rate Measurement notification. | |
int | bt_hrs_client_sensor_location_read (struct bt_hrs_client *hrs_c, bt_hrs_client_read_sensor_location_cb read_cb) |
Read Body Sensor Location characteristic. | |
bool | bt_hrs_client_has_sensor_location (struct bt_hrs_client *hrs_c) |
Check if Heart Rate Service has the Body Sensor Location characteristic. | |
int | bt_hrs_client_control_point_write (struct bt_hrs_client *hrs_c, enum bt_hrs_client_cp_value value, bt_hrs_client_write_cb write_cb) |
Write Heart Rate Control Point characteristic. | |
bool | bt_hrs_client_has_control_point (struct bt_hrs_client *hrs_c) |
Check if Heart Rate Service has the Heart Rate Control Point characteristic. | |
int | bt_hrs_client_handles_assign (struct bt_gatt_dm *dm, struct bt_hrs_client *hrs_c) |
Function for assigning handles to Heart Rate Service Client instance. | |
Heart Rate (HR) Service Client API.