/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/thscps/ |
D | thscps.c | 136 static void thscps_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 323 uint16_t cccd_value = 0; in thscps_write_att_cb() local 342 cccd_value = le16toh(&p_param->value[0]); in thscps_write_att_cb() 343 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ? \ in thscps_write_att_cb() 346 s_thscps_env.ctrl_pt_ind_cfg[conn_idx] = cccd_value; in thscps_write_att_cb() 356 cccd_value = le16toh(&p_param->value[0]); in thscps_write_att_cb() 357 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in thscps_write_att_cb() 360 s_thscps_env.test_setting_ntf_cfg[conn_idx] = cccd_value; in thscps_write_att_cb() 364 cccd_value = le16toh(&p_param->value[0]); in thscps_write_att_cb() 365 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in thscps_write_att_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/hts/ |
D | hts.c | 104 static void hts_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 343 uint16_t cccd_value = 0; in hts_write_att_cb() local 356 cccd_value = le16toh(&p_param->value[0]); in hts_write_att_cb() 357 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ?\ in hts_write_att_cb() 362 s_hts_env.meas_ind_cfg[conn_idx] = cccd_value; in hts_write_att_cb() 366 cccd_value = le16toh(&p_param->value[0]); in hts_write_att_cb() 367 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ?\ in hts_write_att_cb() 370 s_hts_env.intm_tem_ntf_cfg[conn_idx] = cccd_value; in hts_write_att_cb() 387 cccd_value = le16toh(&p_param->value[0]); in hts_write_att_cb() 388 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ?\ in hts_write_att_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/gus/ |
D | gus.c | 106 static void gus_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 281 uint16_t cccd_value; in gus_write_att_cb() local 298 cccd_value = le16toh(&p_param->value[0]); in gus_write_att_cb() 299 …event.evt_type = (PRF_CLI_START_NTF == cccd_value) ? GUS_EVT_TX_PORT_OPENED : GUS_EVT_TX_PORT_CLOS… in gus_write_att_cb() 300 s_gus_env.tx_ntf_cfg[conn_idx] = cccd_value; in gus_write_att_cb() 304 cccd_value = le16toh(&p_param->value[0]); in gus_write_att_cb() 305 …event.evt_type = (PRF_CLI_START_NTF == cccd_value) ? GUS_EVT_FLOW_CTRL_ENABLE : GUS_EVT_FLOW_CTRL_… in gus_write_att_cb() 306 s_gus_env.flow_ctrl_ntf_cfg[conn_idx] = cccd_value; in gus_write_att_cb() 341 static void gus_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in gus_cccd_set_cb() argument 346 if (!prf_is_cccd_value_valid(cccd_value)) { in gus_cccd_set_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/pass/ |
D | pass.c | 96 static void pass_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 269 uint16_t cccd_value = 0; in pass_write_att_cb() local 284 cccd_value = le16toh(&p_param->value[0]); in pass_write_att_cb() 285 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in pass_write_att_cb() 288 s_pass_env.alert_status_ntf_cfg[conn_idx] = cccd_value; in pass_write_att_cb() 292 cccd_value = le16toh(&p_param->value[0]); in pass_write_att_cb() 293 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in pass_write_att_cb() 296 s_pass_env.ringer_setting_ntf_cfg[conn_idx] = cccd_value; in pass_write_att_cb() 347 static void pass_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in pass_cccd_set_cb() argument 352 if (!prf_is_cccd_value_valid(cccd_value)) { in pass_cccd_set_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/common/ |
D | ble_prf_utils.c | 160 bool prf_is_cccd_value_valid(uint16_t cccd_value) in prf_is_cccd_value_valid() argument 162 if (PRF_CLI_STOP_NTFIND == cccd_value || \ in prf_is_cccd_value_valid() 163 PRF_CLI_START_NTF == cccd_value || \ in prf_is_cccd_value_valid() 164 PRF_CLI_START_IND == cccd_value) { in prf_is_cccd_value_valid() 171 bool prf_is_notification_enabled(uint16_t cccd_value) in prf_is_notification_enabled() argument 173 return ((cccd_value & PRF_CLI_START_NTF) != 0); in prf_is_notification_enabled() 176 bool prf_is_indication_enabled(uint16_t cccd_value) in prf_is_indication_enabled() argument 178 return ((cccd_value & PRF_CLI_START_IND) != 0); in prf_is_indication_enabled()
|
D | ble_prf_utils.h | 147 bool prf_is_cccd_value_valid(uint16_t cccd_value); 158 bool prf_is_notification_enabled(uint16_t cccd_value); 169 bool prf_is_indication_enabled(uint16_t cccd_value);
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/bps/ |
D | bps.c | 97 static void bps_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 296 uint16_t cccd_value = 0; in bps_write_att_cb() local 309 cccd_value = le16toh(&p_param->value[0]); in bps_write_att_cb() 310 event = ((PRF_CLI_START_IND == cccd_value) ?\ in bps_write_att_cb() 313 s_bps_env.ntf_ind_cfg[conn_idx] = cccd_value; in bps_write_att_cb() 317 cccd_value = le16toh(&p_param->value[0]); in bps_write_att_cb() 318 event = ((PRF_CLI_START_NTF == cccd_value) ?\ in bps_write_att_cb() 322 s_bps_env.ntf_ind_cfg[conn_idx] = cccd_value; in bps_write_att_cb() 345 static void bps_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in bps_cccd_set_cb() argument 350 if (!prf_is_cccd_value_valid(cccd_value)) { in bps_cccd_set_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/lns/ |
D | lns.c | 110 static void lns_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 266 uint16_t cccd_value = 0; in lns_write_att_cb() local 281 cccd_value = le16toh(&p_param->value[0]); in lns_write_att_cb() 282 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in lns_write_att_cb() 285 s_lns_env.log_info_ntf_cfg[conn_idx] = cccd_value; in lns_write_att_cb() 289 cccd_value = le16toh(&p_param->value[0]); in lns_write_att_cb() 290 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ? \ in lns_write_att_cb() 293 s_lns_env.log_ctrl_pt_ind_cfg[conn_idx] = cccd_value; in lns_write_att_cb() 337 static void lns_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in lns_cccd_set_cb() argument 342 if (!prf_is_cccd_value_valid(cccd_value)) { in lns_cccd_set_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/wechat/ |
D | wechat.c | 105 static void wechat_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 279 uint16_t cccd_value = 0; in wechat_write_att_cb() local 303 cccd_value = le16toh(&p_param->value[0]); in wechat_write_att_cb() 304 event.evt_type = (PRF_CLI_START_IND == cccd_value ?\ in wechat_write_att_cb() 307 s_wechat_env.airsync_ind_cfg[conn_idx] = cccd_value; in wechat_write_att_cb() 311 cccd_value = le16toh(&p_param->value[0]); in wechat_write_att_cb() 312 event.evt_type = (PRF_CLI_START_NTF == cccd_value ?\ in wechat_write_att_cb() 315 s_wechat_env.pedo_meas_ntf_cfg[conn_idx] = cccd_value; in wechat_write_att_cb() 329 cccd_value = le16toh(&p_param->value[0]); in wechat_write_att_cb() 330 event.evt_type = (PRF_CLI_START_IND == cccd_value ?\ in wechat_write_att_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/pcs/ |
D | pcs.c | 102 static void pcs_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 266 uint16_t cccd_value; in pcs_write_att_cb() local 277 cccd_value = le16toh(&p_param->value[0]); in pcs_write_att_cb() 278 … event.evt_type = (PRF_CLI_START_NTF == cccd_value) ? PCS_EVT_TX_ENABLE : PCS_EVT_TX_DISABLE; in pcs_write_att_cb() 279 s_pcs_env.tx_ntf_cfg[conn_idx] = cccd_value; in pcs_write_att_cb() 287 cccd_value = le16toh(&p_param->value[0]); in pcs_write_att_cb() 288 …event.evt_type = (PRF_CLI_START_IND == cccd_value) ? PCS_EVT_SETTING_ENABLE : PCS_EVT_SETTING_DISA… in pcs_write_att_cb() 289 s_pcs_env.setting_ind_cfg[conn_idx] = cccd_value; in pcs_write_att_cb() 318 static void pcs_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in pcs_cccd_set_cb() argument 323 if (!prf_is_cccd_value_valid(cccd_value)) { in pcs_cccd_set_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/ans/ |
D | ans.c | 108 static void ans_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 313 uint16_t cccd_value = 0; in ans_write_att_cb() local 330 cccd_value = le16toh(&p_param->value[0]); in ans_write_att_cb() 331 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in ans_write_att_cb() 334 s_ans_env.new_alert_ntf_cfg[conn_idx] = cccd_value; in ans_write_att_cb() 338 cccd_value = le16toh(&p_param->value[0]); in ans_write_att_cb() 339 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in ans_write_att_cb() 342 s_ans_env.unread_alert_sta_ntf_cfg[conn_idx] = cccd_value; in ans_write_att_cb() 385 static void ans_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in ans_cccd_set_cb() argument 390 if (!prf_is_cccd_value_valid(cccd_value)) { in ans_cccd_set_cb() [all …]
|
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/src/ |
D | ble_gatts.c | 699 struct ble_store_value_cccd cccd_value; in ble_gatts_clt_cfg_access() local 712 *om, &cccd_value, &prev_flags, in ble_gatts_clt_cfg_access() 730 if (cccd_value.chr_val_handle != 0) { in ble_gatts_clt_cfg_access() 731 if (cccd_value.flags == 0) { in ble_gatts_clt_cfg_access() 732 ble_store_key_from_value_cccd(&cccd_key, &cccd_value); in ble_gatts_clt_cfg_access() 735 rc = ble_store_write_cccd(&cccd_value); in ble_gatts_clt_cfg_access() 1342 struct ble_store_value_cccd cccd_value; in ble_gatts_rx_indicate_ack() local 1382 cccd_value.peer_addr = conn->bhc_peer_addr; in ble_gatts_rx_indicate_ack() 1383 cccd_value.peer_addr.type = ble_hs_misc_peer_addr_type_to_id(conn->bhc_peer_addr.type); in ble_gatts_rx_indicate_ack() 1384 cccd_value.chr_val_handle = chr_val_handle; in ble_gatts_rx_indicate_ack() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/hrrcps/ |
D | hrrcps.c | 104 static void hrrcps_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 249 uint16_t cccd_value = 0; in hrrcps_write_att_cb() local 269 cccd_value = le16toh(&p_param->value[0]); in hrrcps_write_att_cb() 270 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ? \ in hrrcps_write_att_cb() 273 s_hrrcps_env.ctrl_pt_rsp_ind_cfg[conn_idx] = cccd_value; in hrrcps_write_att_cb() 367 static void hrrcps_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in hrrcps_cccd_set_cb() argument 372 if (!prf_is_cccd_value_valid(cccd_value)) { in hrrcps_cccd_set_cb() 380 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ? \ in hrrcps_cccd_set_cb() 383 s_hrrcps_env.ctrl_pt_rsp_ind_cfg[conn_idx] = cccd_value; in hrrcps_cccd_set_cb()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/fast_otas/ |
D | fast_otas.c | 99 static void fast_otas_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 253 uint16_t cccd_value = 0; in fast_otas_write_att_cb() local 276 cccd_value = le16toh(&p_param->value[0]); in fast_otas_write_att_cb() 279 event.evt_type = (cccd_value == PRF_CLI_START_NTF) ?\ in fast_otas_write_att_cb() 284 s_fast_otas_env.ntf_cfg[conn_idx] = cccd_value; in fast_otas_write_att_cb() 316 static void fast_otas_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in fast_otas_cccd_set_cb() argument 321 if (!prf_is_cccd_value_valid(cccd_value)) { in fast_otas_cccd_set_cb() 331 event.evt_type = (cccd_value == PRF_CLI_START_NTF) ?\ in fast_otas_cccd_set_cb() 336 s_fast_otas_env.ntf_cfg[conn_idx] = cccd_value; in fast_otas_cccd_set_cb()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/otas/ |
D | otas.c | 103 static void otas_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 268 uint16_t cccd_value = 0; 290 cccd_value = le16toh(&p_param->value[0]); 293 event.evt_type = (cccd_value == PRF_CLI_START_NTF) ?\ 298 s_otas_env.ntf_cfg[conn_idx] = cccd_value; 328 static void otas_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) 333 if (!prf_is_cccd_value_valid(cccd_value)) { 343 event.evt_type = (cccd_value == PRF_CLI_START_NTF) ?\ 348 s_otas_env.ntf_cfg[conn_idx] = cccd_value;
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/bas/ |
D | bas.c | 86 static void bas_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 253 uint16_t cccd_value = 0; in bas_write_att_cb() local 274 cccd_value = le16toh(&p_param->value[0]); in bas_write_att_cb() 275 s_bas_env[i].ntf_cfg[conn_idx] = cccd_value; in bas_write_att_cb() 276 bas_evt.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in bas_write_att_cb() 305 static void bas_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in bas_cccd_set_cb() argument 311 if (!prf_is_cccd_value_valid(cccd_value)) { in bas_cccd_set_cb() 327 s_bas_env[i].ntf_cfg[conn_idx] = cccd_value; in bas_cccd_set_cb() 328 bas_evt.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in bas_cccd_set_cb()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/sample/ |
D | sample_service.c | 97 static void samples_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 263 uint16_t cccd_value = 0; 287 cccd_value = le16toh(&p_param->value[0]); 289 event.evt_type = (PRF_CLI_START_NTF == cccd_value) ? \ 292 s_samples_env[i].tx_ntf_cfg[conn_idx] = cccd_value; 317 static void samples_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) 323 if (!prf_is_cccd_value_valid(cccd_value)) { 343 event.evt_type = (PRF_CLI_START_NTF == cccd_value) ? \ 346 s_samples_env[i].tx_ntf_cfg[conn_idx] = cccd_value;
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/gls/ |
D | gls.c | 120 static void gls_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 324 uint16_t cccd_value = 0; in gls_write_att_cb() local 338 cccd_value = le16toh(&p_param->value[0]); in gls_write_att_cb() 339 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in gls_write_att_cb() 341 s_gls_env.meas_ntf_cfg[conn_idx] = cccd_value; in gls_write_att_cb() 345 cccd_value = le16toh(&p_param->value[0]); in gls_write_att_cb() 346 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in gls_write_att_cb() 348 s_gls_env.meas_ctx_ntf_cfg[conn_idx] = cccd_value; in gls_write_att_cb() 352 cccd_value = le16toh(&p_param->value[0]); in gls_write_att_cb() 353 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ? \ in gls_write_att_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/mlmr/ |
D | mlmr.c | 110 static void gus_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 304 uint16_t cccd_value; 353 cccd_value = le16toh(&p_param->value[0]); 354 …event.evt_type = (PRF_CLI_START_NTF == cccd_value) ? GUS_EVT_TX_PORT_OPENED : GUS_EVT_TX_PORT_CLOS… 355 s_gus_env.tx_ntf_cfg[conn_idx] = cccd_value; 377 static void gus_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) 382 if (!prf_is_cccd_value_valid(cccd_value)) { 392 …event.evt_type = (PRF_CLI_START_NTF == cccd_value) ? GUS_EVT_TX_PORT_OPENED : GUS_EVT_TX_PORT_CLOS… 393 s_gus_env.tx_ntf_cfg[conn_idx] = cccd_value; 397 …event.evt_type = (PRF_CLI_START_NTF == cccd_value) ? GUS_EVT_FLOW_CTRL_ENABLE : GUS_EVT_FLOW_CTRL_… [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/cscs/ |
D | cscs.c | 100 static void cscs_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 295 uint16_t cccd_value = 0; in cscs_write_att_cb() local 311 cccd_value = le16toh(&p_param->value[0]); in cscs_write_att_cb() 312 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ?\ in cscs_write_att_cb() 315 s_cscs_env.meas_ntf_cfg[conn_idx] = cccd_value; in cscs_write_att_cb() 331 cccd_value = le16toh(&p_param->value[0]); in cscs_write_att_cb() 332 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ?\ in cscs_write_att_cb() 335 s_cscs_env.ctrl_point_ind_cfg[conn_idx] = cccd_value; in cscs_write_att_cb() 362 static void cscs_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in cscs_cccd_set_cb() argument 367 if (!prf_is_cccd_value_valid(cccd_value)) { in cscs_cccd_set_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/rscs/ |
D | rscs.c | 100 static void rscs_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 295 uint16_t cccd_value = 0; in rscs_write_att_cb() local 311 cccd_value = le16toh(&p_param->value[0]); in rscs_write_att_cb() 312 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ?\ in rscs_write_att_cb() 315 s_rscs_env.meas_ntf_cfg[conn_idx] = cccd_value; in rscs_write_att_cb() 331 cccd_value = le16toh(&p_param->value[0]); in rscs_write_att_cb() 332 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ?\ in rscs_write_att_cb() 335 s_rscs_env.ctrl_point_ind_cfg[conn_idx] = cccd_value; in rscs_write_att_cb() 362 static void rscs_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in rscs_cccd_set_cb() argument 367 if (!prf_is_cccd_value_valid(cccd_value)) { in rscs_cccd_set_cb() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/hids/ |
D | hids.c | 194 static void hids_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 557 static void hids_cccd_check(hids_evt_t *p_evt, uint16_t cccd_value) in hids_cccd_check() argument 559 p_evt->evt_type = ((cccd_value == PRF_CLI_START_NTF) ? in hids_cccd_check() 574 …oid hids_on_cccd_write(uint8_t tab_index, uint8_t conn_idx, hids_evt_t *p_evt, uint16_t cccd_value) in hids_on_cccd_write() argument 578 s_hids_env.input_cccd[INDEX_0][conn_idx] = cccd_value; in hids_on_cccd_write() 580 hids_cccd_check(p_evt, cccd_value); in hids_on_cccd_write() 584 s_hids_env.input_cccd[INDEX_1][conn_idx] = cccd_value; in hids_on_cccd_write() 586 hids_cccd_check(p_evt, cccd_value); in hids_on_cccd_write() 590 s_hids_env.input_cccd[INDEX_2][conn_idx] = cccd_value; in hids_on_cccd_write() 592 hids_cccd_check(p_evt, cccd_value); in hids_on_cccd_write() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/hrs/ |
D | hrs.c | 113 static void hrs_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 276 uint16_t cccd_value; in hrs_write_att_cb() local 284 cccd_value = le16toh(&p_param->value[0]); in hrs_write_att_cb() 285 s_hrs_env.ntf_cfg[conn_idx] = cccd_value; in hrs_write_att_cb() 289 evt.evt_type = ((cccd_value == PRF_CLI_START_NTF) ? in hrs_write_att_cb() 329 static void hrs_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in hrs_cccd_set_cb() argument 333 if (!prf_is_cccd_value_valid(cccd_value)) { in hrs_cccd_set_cb() 344 s_hrs_env.ntf_cfg[conn_idx] = cccd_value; in hrs_cccd_set_cb() 348 evt.evt_type = ((cccd_value == PRF_CLI_START_NTF) ? in hrs_cccd_set_cb()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/wss/ |
D | wss.c | 110 static void wss_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 278 uint16_t cccd_value = 0; in wss_write_att_cb() local 293 cccd_value = le16toh(&p_param->value[0]); in wss_write_att_cb() 294 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ? \ in wss_write_att_cb() 297 s_wss_env.meas_ind_cfg[conn_idx] = cccd_value; in wss_write_att_cb() 322 static void wss_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value) in wss_cccd_set_cb() argument 327 if (!prf_is_cccd_value_valid(cccd_value)) { in wss_cccd_set_cb() 341 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in wss_cccd_set_cb() 344 s_wss_env.meas_ind_cfg[conn_idx] = cccd_value; in wss_cccd_set_cb()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/uds/ |
D | uds.c | 154 static void uds_cccd_set_cb(uint8_t conn_idx, uint16_t handle, uint16_t cccd_value); 513 uint16_t cccd_value = 0; in uds_write_att_cb() local 590 cccd_value = le16toh(&p_param->value[0]); in uds_write_att_cb() 591 event.evt_type = ((PRF_CLI_START_NTF == cccd_value) ? \ in uds_write_att_cb() 594 s_uds_env.db_change_incr_ntf_cfg[conn_idx] = cccd_value; in uds_write_att_cb() 598 cccd_value = le16toh(&p_param->value[0]); in uds_write_att_cb() 599 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ? \ in uds_write_att_cb() 602 s_uds_env.regist_user_ind_cfg[conn_idx] = cccd_value; in uds_write_att_cb() 618 cccd_value = le16toh(&p_param->value[0]); in uds_write_att_cb() 619 event.evt_type = ((PRF_CLI_START_IND == cccd_value) ? \ in uds_write_att_cb() [all …]
|