tL2CA_FIXED_CONGESTION_STATUS_CB* pL2CA_FixedCong_Cb;
uint16_t default_idle_tout;
- tL2CA_TX_COMPLETE_CB*
- pL2CA_FixedTxComplete_Cb; /* fixed channel tx complete callback */
} tL2CAP_FIXED_CHNL_REG;
/*******************************************************************************
typedef struct {
uint16_t local_cid;
uint16_t num_sdu;
- tL2CA_TX_COMPLETE_CB* cb;
} tL2C_TX_COMPLETE_CB_INFO;
/* The offset in a buffer that L2CAP will use when building commands.
extern void l2cu_check_channel_congestion(tL2C_CCB* p_ccb);
extern void l2cu_disconnect_chnl(tL2C_CCB* p_ccb);
-extern void l2cu_tx_complete(tL2C_TX_COMPLETE_CB_INFO* p_cbi);
-
extern void l2cu_send_peer_ble_par_req(tL2C_LCB* p_lcb, uint16_t min_int,
uint16_t max_int, uint16_t latency,
uint16_t timeout);
} else {
l2c_link_send_to_lower_ble(p_lcb, p_buf);
}
- if (p_cbi) l2cu_tx_complete(p_cbi);
}
/*******************************************************************************
/* Highest priority are fixed channels */
int xx;
- p_cbi->cb = NULL;
-
for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) {
p_ccb = p_lcb->p_fixed_ccbs[xx];
if (p_ccb == NULL) continue;
}
/* Prepare callback info for TX completion */
- p_cbi->cb = l2cb.fixed_reg[xx].pL2CA_FixedTxComplete_Cb;
p_cbi->local_cid = p_ccb->local_cid;
p_cbi->num_sdu = 1;
return (p_ccb);
}
-void l2cu_tx_complete(tL2C_TX_COMPLETE_CB_INFO* p_cbi) {
- if (p_cbi->cb != NULL) p_cbi->cb(p_cbi->local_cid, p_cbi->num_sdu);
-}
-
/******************************************************************************
*
* Function l2cu_set_acl_hci_header
#include "smp_int.h"
-static void smp_tx_complete_callback(uint16_t cid, uint16_t num_pkt);
-
static void smp_connect_callback(uint16_t channel, const RawAddress& bd_addr,
bool connected, uint16_t reason,
tBT_TRANSPORT transport);
fixed_reg.pL2CA_FixedConn_Cb = smp_connect_callback;
fixed_reg.pL2CA_FixedData_Cb = smp_data_received;
- fixed_reg.pL2CA_FixedTxComplete_Cb = smp_tx_complete_callback;
fixed_reg.pL2CA_FixedCong_Cb =
NULL; /* do not handle congestion on this channel */
/*******************************************************************************
*
- * Function smp_tx_complete_callback
- *
- * Description SMP channel tx complete callback
- *
- ******************************************************************************/
-static void smp_tx_complete_callback(uint16_t cid, uint16_t num_pkt) {}
-
-/*******************************************************************************
- *
* Function smp_br_connect_callback
*
* Description This callback function is called by L2CAP to indicate that