Scan parameters service sample implementation API.
More...
|
| file | scps.h |
| | Scan Parameters Service sample implementation API.
|
| |
Scan parameters service sample implementation API.
◆ scps_ccc_changed_cb_t
| typedef void(* scps_ccc_changed_cb_t) (uint16_t conn_idx, uint16_t value) |
CCC for Scan Interval Window updated by client callback.
- Parameters
-
| [in] | conn_idx | connection index |
| [in] | value | value written by client |
◆ scps_disconnected_cb_t
| typedef void(* scps_disconnected_cb_t) (uint16_t conn_idx, uint16_t interval, uint16_t window) |
Client disconnected callback.
ScPS client disconnected, last known values of Scan Interval and Scan Window are passed. Application should store these values if required since they are no longer maintained by ScPS instance.
- Parameters
-
| [in] | conn_idx | connection index |
| [in] | interval | scan interval |
| [in] | window | scan window |
◆ scps_scan_updated_cb_t
| typedef void(* scps_scan_updated_cb_t) (uint16_t conn_idx, uint16_t interval, uint16_t window) |
Scan Interval Window value updated by client callback.
- Parameters
-
| [in] | conn_idx | connection index |
| [in] | interval | scan interval |
| [in] | window | scan window |
◆ scps_init()
ScPS initialization.
- Parameters
-
| [in] | cb | structure with ScPS callbacks |
◆ scps_notify_refresh()
| void scps_notify_refresh |
( |
ble_service_t * |
svc, |
|
|
uint16_t |
conn_idx |
|
) |
| |
Request Scan Refresh from client.
- Parameters
-
| [in] | svc | service instance |
| [in] | conn_idx | connection index |
◆ scps_notify_refresh_all()
Request Scan Refresh from all connected clients.
- Parameters
-