Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_hrs_cb Struct Reference

Heart rate service callback structure. More...

#include <hrs.h>

Data Fields

void(* ntf_changed )(bool enabled)
 Heart rate notifications changed.
 
int(* ctrl_point_write )(uint8_t request)
 Heart rate control point write callback.
 

Detailed Description

Heart rate service callback structure.

Field Documentation

◆ ctrl_point_write

int(* bt_hrs_cb::ctrl_point_write) (uint8_t request)

Heart rate control point write callback.

Note
if Server supports the Energy Expended feature then application shall implement and support BT_HRS_CONTROL_POINT_RESET_ENERGY_EXPANDED_REQ request code
Parameters
requestcontrol point request code
Returns
0 on successful handling of control point request
-ENOTSUP if not supported. It can be used to pass handling to other listeners in case of multiple listeners
other negative error codes will result in immediate error response

◆ ntf_changed

void(* bt_hrs_cb::ntf_changed) (bool enabled)

Heart rate notifications changed.

Parameters
enabledFlag that is true if notifications were enabled, false if they were disabled.

The documentation for this struct was generated from the following file: