25 #ifndef LCTR_API_CONN_H 26 #define LCTR_API_CONN_H 45 #define LCTR_DATA_PDU_LEN(len) ((len) + LL_DATA_HDR_LEN + BB_DATA_PDU_TAILROOM) 48 #define LCTR_DATA_PDU_MAX_LEN LCTR_DATA_PDU_LEN(BB_DATA_PLD_MAX_LEN) 51 #define LCTR_DATA_PDU_MIN_LEN LCTR_DATA_PDU_LEN(LL_MAX_DATA_LEN_MIN) 54 #define LCTR_MAX_DATA_LEN_MAX BB_DATA_PLD_MAX_LEN 57 #define LCTR_MAX_HANDLE_INDEX (pLctrRtCfg->maxConn + pLctrRtCfg->maxCis) 65 _LCTR_CONN_MSG_RX_EVENTS = 10,
71 _LCTR_CONN_MSG_API_EVENTS = 20,
93 _LCTR_CONN_INT_EVENTS = 40,
98 _LCTR_CONN_LLCP_EVENTS = 50,
109 _LCTR_CONN_TERM_EVENTS = 70,
116 _LCTR_CONN_TMR_EVENTS = 80,
307 void LctrSlvConnInit(
void);
308 void LctrSlvConnEncInit(
void);
309 void LctrMstConnInit(
void);
310 void LctrMstConnEncInit(
void);
314 uint8_t LctrValidateConnSpec(
const LlConnSpec_t *pConnSpec);
315 uint8_t LctrValidateModifyScaParam(uint8_t action);
316 bool_t LctrIsProcActPended(uint16_t handle, uint8_t event);
319 bool_t LctrIsConnHandleEnabled(uint16_t handle);
320 bool_t LctrIsCisConnHandleEnabled(uint16_t handle);
321 uint8_t LctrGetRole(uint16_t handle);
322 int8_t LctrGetRssi(uint16_t handle);
323 uint8_t lctrSetTxPowerReporting(uint16_t handle, uint8_t enableLocal, uint8_t enableRemote);
324 int8_t LctrGetTxPowerLevel(uint16_t handle);
325 uint64_t LctrGetChannelMap(uint16_t handle);
326 uint64_t LctrGetUsedFeatures(uint16_t handle);
327 uint8_t LctrGetTxPhy(uint16_t handle);
328 uint8_t LctrGetRxPhy(uint16_t handle);
329 void LctrGetPeerMinUsedChan(uint16_t handle, uint8_t *pPeerMinUsedChan);
330 bool_t LctrIsWaitingForReply(uint16_t handle, uint8_t reply);
331 bool_t LctrIsCisEnabled(uint16_t handle);
334 void LctrSetTxPowerLevel(uint16_t handle, int8_t level);
335 void LctrSetPhyTxPowerLevel(uint16_t handle, int8_t level, uint8_t phy);
336 int8_t LctrGetPhyTxPowerLevel(uint16_t handle, uint8_t phy);
337 uint32_t LctrGetAuthPayloadTimeout(uint16_t handle);
338 bool_t LctrSetAuthPayloadTimeout(uint16_t handle, uint32_t timeoutMs);
339 void LctrGetEncMode(uint16_t handle,
LlEncMode_t *pMode);
340 bool_t LctrSetEncMode(uint16_t handle,
const LlEncMode_t *pMode);
341 void LctrSetConnOpFlags(uint16_t handle, uint32_t flags, bool_t enable);
342 uint8_t lctrSetPowerMonitorEnable(uint16_t handle, bool_t enable);
346 void LctrTxAcl(uint8_t *pAclBuf);
347 uint8_t *LctrRxAcl(
void);
348 void LctrRxAclComplete(uint8_t numBufs);
Data length change message.
void(* LctrTxPduCompHdlr_t)(uint16_t connHandle)
Transmit PDU complete.
Set minimum number of used channels message.
LctrInitConnHdlr_t connCleanup
BLE baseband interface file.
lctrChanMapUpdate_t chanMapUpd
Periodic advertising sync transfer message.
LctrTxPduCompHdlr_t ceSetup
lctrRejCisReq_t rejCisReq
lctrCreateCis_t createCis
Encryption mode data structure used in LlGetEncMode() and LlSetEncMode().
Channel map update message.
bool_t(* LctrRxAckHdlr_t)(uint16_t connHandle)
Receive process flow control, returns TRUE if retransmission.
lctrConnParamNegReply_t connParamNegReply
LctrCeCompHdlr_t ceCleanup
Internal reject CIS request message.
lctrConnParamReply_t connParamReply
Remote connection parameter reply message.
void(* LctrInitConnHdlr_t)(uint16_t connHandle)
Initialize connection context.
Link layer controller common interface file.
Link layer controller message data.
Vendor specific PDU handlers.
void(* LctrCeCompHdlr_t)(uint16_t connHandle)
Connection event complete handler.
lctrDataLengthChange_t dataLenChange
Start encryption message.
bool_t(* LctrTxAckHdlr_t)(uint16_t connHandle)
Transmit empty packet acknowledgment, returns TRUE if required.
Connection update message.
void(* LctrVsRecvHdlr_t)(uint16_t connHandle, uint8_t *pBuf)
VS receive data handler.
void(* LctrTxFcHdlr_t)(uint16_t connHandle, uint8_t *pBuf)
Set transmit flow control.
LctrInitConnHdlr_t connSetup
CIS set CIG test CIS parameters.
Common message structure passed to event handler.
Internal power control request message.
lctrSetMinUsedChan_t setMinUsedChan
lctrMsgPwrCtrlReq_t pwrCtrlReq
LctrVsRecvHdlr_t dataRecv
Connection specification (LlCreateConn(), LlConnUpdate() and LlExtCreateConn()).
lctrConnEstablish_t connEstablish
Set minimum number of used channels message.
Remote connection parameter negative reply message.
lctrPerAdvSyncTrsf_t perAdvSyncTrsf
Remote connection parameter reply message.