Callback definition.
More...
Callback definition.
|
| 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...
|
| |
◆ 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_attr | Information structure of characteristic or descriptor. |
| [in] | conn_hdl | Connection handle. |
| [in] | result | Result 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_attr | Information structure of characteristic or descriptor. |
| [in] | conn_hdl | Connection handle. |
| [in] | result | Result of read response. |
| [in] | p_app_value | Characteristic 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_attr | Information structure of characteristic. |
| [in] | conn_hdl | Connection handle. |
| [in] | p_app_value | Characteristic 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_attr | Information structure of characteristic. |
| [in] | conn_hdl | Connection handle. |
| [in] | p_app_value | Characteristic value of indication. |
◆ ble_servc_app_cb_t
Callback invoked when events defined in service occurred.
- Parameters
-
| [in] | type | Event type of callback. Refer e_ble_XXX_event_t of each service. |
| [in] | result | Result of event. |
| [in] | p_data | Event data. |