Callback definition.
More...
Callback definition.
|
typedef void(* | ble_servs_attr_write_req_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result, const void *p_app_value) |
| Callback invoked when write request received. More...
|
|
typedef void(* | ble_servs_attr_write_cmd_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result, const void *p_app_value) |
| Callback invoked when write command received. More...
|
|
typedef void(* | ble_servs_attr_write_comp_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result, const void *p_app_value) |
| Callback invoked when write response sent. More...
|
|
typedef void(* | ble_servs_attr_read_req_t) (const void *p_attr, uint16_t conn_hdl) |
| Callback invoked when read request received. More...
|
|
typedef void(* | ble_servs_attr_hdl_val_cnf_t) (const void *p_attr, uint16_t conn_hdl) |
| Callback invoked when confirmation received. More...
|
|
typedef void(* | ble_servs_attr_flow_ctrl_t) (const void *p_attr) |
| Callback invoked when flow control callback occurred. More...
|
|
typedef void(* | ble_servs_app_cb_t) (uint16_t type, ble_status_t result, st_ble_servs_evt_data_t *p_data) |
| Callback invoked when events defined in service occurred. More...
|
|
◆ ble_servs_attr_write_req_t
typedef void(* ble_servs_attr_write_req_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result, const void *p_app_value) |
Callback invoked when write request received.
- Parameters
-
[in] | p_attr | Information structure of characteristic or descriptor. |
[in] | conn_hdl | Connection handle. |
[in] | result | Result of write request. |
[in] | p_app_value | Characteristic value or descriptor value of write request. |
◆ ble_servs_attr_write_cmd_t
typedef void(* ble_servs_attr_write_cmd_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result, const void *p_app_value) |
Callback invoked when write command received.
- Parameters
-
[in] | p_attr | Information structure of characteristic. |
[in] | conn_hdl | Connection handle. |
[in] | result | Result of write command. |
[in] | p_app_value | Characteristic value of write command. |
◆ ble_servs_attr_write_comp_t
typedef void(* ble_servs_attr_write_comp_t) (const void *p_attr, uint16_t conn_hdl, ble_status_t result, const void *p_app_value) |
Callback invoked when write response sent.
- Parameters
-
[in] | p_attr | Information structure of characteristic or descriptor. |
[in] | conn_hdl | Connection handle. |
[in] | result | Result of write response. |
[in] | p_app_value | Characteristic value or descriptor value of write response. |
◆ ble_servs_attr_read_req_t
typedef void(* ble_servs_attr_read_req_t) (const void *p_attr, uint16_t conn_hdl) |
Callback invoked when read request received.
- Parameters
-
[in] | p_attr | Information structure of characteristic or descriptor. |
[in] | conn_hdl | Connection handle. |
◆ ble_servs_attr_hdl_val_cnf_t
typedef void(* ble_servs_attr_hdl_val_cnf_t) (const void *p_attr, uint16_t conn_hdl) |
Callback invoked when confirmation received.
- Parameters
-
[in] | p_attr | Information structure of characteristic. |
[in] | conn_hdl | Connection handle. |
◆ ble_servs_attr_flow_ctrl_t
typedef void(* ble_servs_attr_flow_ctrl_t) (const void *p_attr) |
Callback invoked when flow control callback occurred.
- Parameters
-
[in] | p_attr | Information structure of characteristic. |
◆ ble_servs_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 you will use. |
[in] | result | Result of event. |
[in] | p_data | Event data. |