SmartSnippets DA1459x SDK
scps.h
Go to the documentation of this file.
1 
43 #ifndef SCPS_H_
44 #define SCPS_H_
45 
46 #include <stdint.h>
47 #include "ble_service.h"
48 
57 typedef void (* scps_scan_updated_cb_t) (uint16_t conn_idx, uint16_t interval, uint16_t window);
58 
66 typedef void (* scps_ccc_changed_cb_t) (uint16_t conn_idx, uint16_t value);
67 
80 typedef void (* scps_disconnected_cb_t) (uint16_t conn_idx, uint16_t interval, uint16_t window);
81 
83 typedef struct {
86 
89 
96 
104 
112 void scps_notify_refresh(ble_service_t *svc, uint16_t conn_idx);
113 
121 
122 #endif /* SCPS_H_ */
123 
scps_ccc_changed_cb_t
void(* scps_ccc_changed_cb_t)(uint16_t conn_idx, uint16_t value)
CCC for Scan Interval Window updated by client callback.
Definition: scps.h:66
scps_callbacks_t::disconnected
scps_disconnected_cb_t disconnected
Definition: scps.h:94
scps_init
ble_service_t * scps_init(const scps_callbacks_t *cb)
ScPS initialization.
ble_service.h
Services handling routines API.
scps_notify_refresh
void scps_notify_refresh(ble_service_t *svc, uint16_t conn_idx)
Request Scan Refresh from client.
scps_scan_updated_cb_t
void(* scps_scan_updated_cb_t)(uint16_t conn_idx, uint16_t interval, uint16_t window)
Scan Interval Window value updated by client callback.
Definition: scps.h:57
scps_callbacks_t::scan_updated
scps_scan_updated_cb_t scan_updated
Definition: scps.h:85
scps_disconnected_cb_t
void(* scps_disconnected_cb_t)(uint16_t conn_idx, uint16_t interval, uint16_t window)
Client disconnected callback.
Definition: scps.h:80
scps_callbacks_t::ccc_changed
scps_ccc_changed_cb_t ccc_changed
Definition: scps.h:88
scps_callbacks_t
Definition: scps.h:83
scps_notify_refresh_all
void scps_notify_refresh_all(ble_service_t *svc)
Request Scan Refresh from all connected clients.
ble_service
Definition: ble_service.h:132