Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]

Callback definition. More...

Detailed Description

Callback definition.

Typedefs

typedef void(* ble_servc_attr_write_rsp_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result)
 Callback invoked when write response received. More...
 
typedef void(* ble_servc_attr_read_rsp_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result, const void *p_app_value)
 Callback invoked when read response received. More...
 
typedef void(* ble_servc_attr_hdl_val_ntf_t) (const void *p_attr, uint16_t conn_hdl, const void *p_app_value)
 Callback invoked when notification received. More...
 
typedef void(* ble_servc_attr_hdl_val_ind_t) (const void *p_attr, uint16_t conn_hdl, const void *p_app_value)
 Callback invoked when indication received. More...
 
typedef void(* ble_servc_app_cb_t) (uint16_t type, ble_status_t result, st_ble_servc_evt_data_t *p_data)
 Callback invoked when events defined in service occurred. More...
 

Typedef Documentation

◆ ble_servc_attr_write_rsp_t

typedef void(* ble_servc_attr_write_rsp_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result)

Callback invoked when write response received.

Parameters
[in]p_attrInformation structure of characteristic or descriptor.
[in]conn_hdlConnection handle.
[in]resultResult of write response.

◆ ble_servc_attr_read_rsp_t

typedef void(* ble_servc_attr_read_rsp_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result, const void *p_app_value)

Callback invoked when read response received.

Parameters
[in]p_attrInformation structure of characteristic or descriptor.
[in]conn_hdlConnection handle.
[in]resultResult of read response.
[in]p_app_valueCharacteristic value or descriptor value of read response.

◆ ble_servc_attr_hdl_val_ntf_t

typedef void(* ble_servc_attr_hdl_val_ntf_t) (const void *p_attr, uint16_t conn_hdl, const void *p_app_value)

Callback invoked when notification received.

Parameters
[in]p_attrInformation structure of characteristic.
[in]conn_hdlConnection handle.
[in]p_app_valueCharacteristic value of notification.

◆ ble_servc_attr_hdl_val_ind_t

typedef void(* ble_servc_attr_hdl_val_ind_t) (const void *p_attr, uint16_t conn_hdl, const void *p_app_value)

Callback invoked when indication received.

Parameters
[in]p_attrInformation structure of characteristic.
[in]conn_hdlConnection handle.
[in]p_app_valueCharacteristic value of indication.

◆ ble_servc_app_cb_t

typedef void(* ble_servc_app_cb_t) (uint16_t type, ble_status_t result, st_ble_servc_evt_data_t *p_data)

Callback invoked when events defined in service occurred.

Parameters
[in]typeEvent type of callback. Refer e_ble_XXX_event_t of each service.
[in]resultResult of event.
[in]p_dataEvent data.