uint16_t interval, uint16_t latency,
uint16_t timeout, tGATT_STATUS status);
-static tGATT_CBACK bta_gatts_cback = {bta_gatts_conn_cback,
- NULL,
- NULL,
- NULL,
- bta_gatts_send_request_cback,
- NULL,
- bta_gatts_cong_cback,
- bta_gatts_phy_update_cback,
- bta_gatts_conn_update_cback};
+static tGATT_CBACK bta_gatts_cback = {
+ .p_conn_cb = bta_gatts_conn_cback,
+ .p_cmpl_cb = nullptr,
+ .p_disc_res_cb = nullptr,
+ .p_disc_cmpl_cb = nullptr,
+ .p_req_cb = bta_gatts_send_request_cback,
+ .p_enc_cmpl_cb = nullptr,
+ .p_congestion_cb = bta_gatts_cong_cback,
+ .p_phy_update_cb = bta_gatts_phy_update_cback,
+ .p_conn_update_cb = bta_gatts_conn_update_cback,
+};
tGATT_APPL_INFO bta_gatts_nv_cback = {bta_gatts_nv_save_cback,
bta_gatts_nv_srv_chg_cback};
void client_cmpl_cback(uint16_t, tGATTC_OPTYPE, tGATT_STATUS,
tGATT_CL_COMPLETE*);
-tGATT_CBACK gap_cback = {client_connect_cback,
- client_cmpl_cback,
- NULL,
- NULL,
- server_attr_request_cback,
- NULL,
- NULL,
- NULL,
- NULL};
+tGATT_CBACK gap_cback = {
+ .p_conn_cb = client_connect_cback,
+ .p_cmpl_cb = client_cmpl_cback,
+ .p_disc_res_cb = nullptr,
+ .p_disc_cmpl_cb = nullptr,
+ .p_req_cb = server_attr_request_cback,
+ .p_enc_cmpl_cb = nullptr,
+ .p_congestion_cb = nullptr,
+ .p_phy_update_cb = nullptr,
+ .p_conn_update_cb = nullptr,
+};
constexpr int GAP_CHAR_DEV_NAME_SIZE = BD_NAME_LEN;
constexpr int GAP_MAX_CHAR_NUM = 4;