avct_l2c_disconnect_cfm_cback,
avct_l2c_data_ind_cback,
avct_l2c_congestion_ind_cback,
- NULL, /* tL2CA_TX_COMPLETE_CB */
- NULL /* tL2CA_CREDITS_RECEIVED_CB */};
+ NULL,
+ /* tL2CA_TX_COMPLETE_CB */};
/*******************************************************************************
*
void avct_l2c_br_data_ind_cback(uint16_t lcid, BT_HDR* p_buf);
/* L2CAP callback function structure */
-const tL2CAP_APPL_INFO avct_l2c_br_appl = {
- avct_l2c_br_connect_ind_cback,
- avct_l2c_br_connect_cfm_cback,
- avct_l2c_br_config_ind_cback,
- avct_l2c_br_config_cfm_cback,
- avct_l2c_br_disconnect_ind_cback,
- avct_l2c_br_disconnect_cfm_cback,
- avct_l2c_br_data_ind_cback,
- avct_l2c_br_congestion_ind_cback,
- NULL, /* tL2CA_TX_COMPLETE_CB */
- NULL /* tL2CA_CREDITS_RECEIVED_CB */};
+const tL2CAP_APPL_INFO avct_l2c_br_appl = {avct_l2c_br_connect_ind_cback,
+ avct_l2c_br_connect_cfm_cback,
+ avct_l2c_br_config_ind_cback,
+ avct_l2c_br_config_cfm_cback,
+ avct_l2c_br_disconnect_ind_cback,
+ avct_l2c_br_disconnect_cfm_cback,
+ avct_l2c_br_data_ind_cback,
+ avct_l2c_br_congestion_ind_cback,
+ NULL,
+ /* tL2CA_TX_COMPLETE_CB */};
/* Browsing channel eL2CAP default options */
const tL2CAP_FCR_OPTS avct_l2c_br_fcr_opts_def = {
avdt_l2c_disconnect_cfm_cback,
avdt_l2c_data_ind_cback,
avdt_l2c_congestion_ind_cback,
- NULL, /* tL2CA_TX_COMPLETE_CB */
- NULL /* tL2CA_CREDITS_RECEIVED_CB */};
+ NULL,
+ /* tL2CA_TX_COMPLETE_CB */};
/*******************************************************************************
*
conn.reg_info.pL2CA_DataInd_Cb = gap_data_ind;
conn.reg_info.pL2CA_CongestionStatus_Cb = gap_congestion_ind;
conn.reg_info.pL2CA_TxComplete_Cb = gap_tx_complete_ind;
- conn.reg_info.pL2CA_CreditsReceived_Cb = NULL;
}
/*******************************************************************************
gatt_l2cif_disconnect_cfm_cback,
gatt_l2cif_data_ind_cback,
gatt_l2cif_congest_cback,
- NULL,
- NULL /* tL2CA_CREDITS_RECEIVED_CB */};
+ NULL};
tGATT_CB gatt_cb;
static void hidd_l2cif_data_ind(uint16_t cid, BT_HDR* p_msg);
static void hidd_l2cif_cong_ind(uint16_t cid, bool congested);
-static const tL2CAP_APPL_INFO dev_reg_info = {
- hidd_l2cif_connect_ind,
- hidd_l2cif_connect_cfm,
- hidd_l2cif_config_ind,
- hidd_l2cif_config_cfm,
- hidd_l2cif_disconnect_ind,
- hidd_l2cif_disconnect_cfm,
- hidd_l2cif_data_ind,
- hidd_l2cif_cong_ind,
- NULL,
- NULL /* tL2CA_CREDITS_RECEIVED_CB */};
+static const tL2CAP_APPL_INFO dev_reg_info = {hidd_l2cif_connect_ind,
+ hidd_l2cif_connect_cfm,
+ hidd_l2cif_config_ind,
+ hidd_l2cif_config_cfm,
+ hidd_l2cif_disconnect_ind,
+ hidd_l2cif_disconnect_cfm,
+ hidd_l2cif_data_ind,
+ hidd_l2cif_cong_ind,
+ NULL};
/*******************************************************************************
*
static void hidh_l2cif_disconnect_cfm(uint16_t l2cap_cid, uint16_t result);
static void hidh_l2cif_cong_ind(uint16_t l2cap_cid, bool congested);
-static const tL2CAP_APPL_INFO hst_reg_info = {
- hidh_l2cif_connect_ind,
- hidh_l2cif_connect_cfm,
- hidh_l2cif_config_ind,
- hidh_l2cif_config_cfm,
- hidh_l2cif_disconnect_ind,
- hidh_l2cif_disconnect_cfm,
- hidh_l2cif_data_ind,
- hidh_l2cif_cong_ind,
- NULL, /* tL2CA_TX_COMPLETE_CB */
- NULL /* tL2CA_CREDITS_RECEIVED_CB */};
+static const tL2CAP_APPL_INFO hst_reg_info = {hidh_l2cif_connect_ind,
+ hidh_l2cif_connect_cfm,
+ hidh_l2cif_config_ind,
+ hidh_l2cif_config_cfm,
+ hidh_l2cif_disconnect_ind,
+ hidh_l2cif_disconnect_cfm,
+ hidh_l2cif_data_ind,
+ hidh_l2cif_cong_ind,
+ NULL,
+ /* tL2CA_TX_COMPLETE_CB */};
/*******************************************************************************
*
tL2CA_DATA_IND_CB* pL2CA_DataInd_Cb;
tL2CA_CONGESTION_STATUS_CB* pL2CA_CongestionStatus_Cb;
tL2CA_TX_COMPLETE_CB* pL2CA_TxComplete_Cb;
- tL2CA_CREDITS_RECEIVED_CB* pL2CA_CreditsReceived_Cb;
} tL2CAP_APPL_INFO;
/* Define the structure that applications use to create or accept
l2cble_send_peer_disc_req(p_ccb);
} else {
p_ccb->peer_conn_cfg.credits += credit;
-
- tL2CA_CREDITS_RECEIVED_CB* cr_cb =
- p_ccb->p_rcb->api.pL2CA_CreditsReceived_Cb;
- if (p_ccb->p_lcb->transport == BT_TRANSPORT_LE && (cr_cb)) {
- (*cr_cb)(p_ccb->local_cid, credit, p_ccb->peer_conn_cfg.credits);
- }
l2c_link_check_send_pkts(p_ccb->p_lcb, 0, NULL);
}
break;