25 #ifndef LCTR_INT_ADV_MASTER_AE_H 26 #define LCTR_INT_ADV_MASTER_AE_H 46 #define LCTR_GET_EXT_SCAN_HANDLE(pCtx) (pCtx->handle) 49 #define LCTR_GET_EXT_SCAN_CTX(h) (lctrMstExtScanTbl[h]) 52 #define LCTR_GET_PER_SCAN_HANDLE(pCtx) (pCtx - lctrMstPerScanTbl) 55 #define LCTR_GET_PER_SCAN_TM_HANDLE(pCtx) (LL_MAX_CONN + LCTR_GET_PER_SCAN_HANDLE(pCtx)) 58 #define LCTR_GET_PER_SCAN_CTX(h) (&lctrMstPerScanTbl[h]) 61 #define LCTR_VALID_ACTIVE_SCAN_MASK ((1 << LCTR_SCAN_PHY_1M) | (1 << LCTR_SCAN_PHY_CODED)) 165 uint32_t scanWinStartUsec;
243 lctrRptState_t advRptState:8;
353 void lctrMstPerScanTransferOpCommit(uint16_t connHandle);
356 bool_t lctrMstDiscoverRxExtAdvPktHandler(
BbOpDesc_t *pOp,
const uint8_t *pAdvBuf);
357 void lctrMstDiscoverRxExtAdvPktPostProcessHandler(
BbOpDesc_t *pOp,
const uint8_t *pAdvBuf);
358 bool_t lctrMstDiscoverRxAuxAdvPktHandler(
BbOpDesc_t *pOp,
const uint8_t *pAdvBuf);
359 bool_t lctrMstDiscoverRxAuxScanRspHandler(
BbOpDesc_t *pOp,
const uint8_t *pRspBuf);
360 uint32_t lctrMstDiscoverRxAuxChainHandler(
BbOpDesc_t *pOp,
const uint8_t *pChainBuf);
361 bool_t lctrMstDiscoverRxAuxChainPostProcessHandler(
BbOpDesc_t *pOp,
const uint8_t *pChainBuf);
362 bool_t lctrMstDiscoverRxLegacyAdvPktHandler(
BbOpDesc_t *pOp,
const uint8_t *pAdvBuf);
363 bool_t lctrMstDiscoverTxLegacyScanReqHandler(
BbOpDesc_t *pOp,
const uint8_t *pReqBuf);
364 bool_t lctrMstDiscoverRxLegacyScanRspHandler(
BbOpDesc_t *pOp,
const uint8_t *pRspBuf);
366 void lctrMstExtDiscoverEndOp(
BbOpDesc_t *pOp);
367 void lctrMstExtDiscoverAbortOp(
BbOpDesc_t *pOp);
368 void lctrMstAuxDiscoverEndOp(
BbOpDesc_t *pOp);
371 uint32_t lctrMstPerScanRxPerAdvPktHandler(
BbOpDesc_t *pOp,
const uint8_t *pAdvBuf, uint8_t status);
372 bool_t lctrMstPerScanRxPerAdvPktPostHandler(
BbOpDesc_t *pOp,
const uint8_t *pAdvBuf);
384 void lctrCreateSyncActCreate(
void);
385 void lctrCreateSyncActCancel(
void);
386 void lctrCreateSyncActFailed(
void);
387 void lctrCreateSyncActTerminate(
void);
388 void lctrCreateSyncActDone(
void);
389 void lctrTransferSyncActStart(
void);
390 void lctrTransferSyncActDone(
void);
391 void lctrTransferSyncActFailed(
void);
392 void lctrTransferSyncActCancel(
void);
393 void lctrTransferSyncActTerminate(
void);
403 void lctrMstCreateSyncExecuteSm(uint8_t event);
404 void lctrMstTransferSyncExecuteSm(uint8_t event);
410 void lctrMstPerScanIsrInit(
void);
416 void LctrSendPerSyncTrsfRcvdEvt(uint8_t status,
lctrPerScanCtx_t *pPerScanCtx);
479 *pOffsetUsec = offsetUsec - wwUsec;
Link layer controller extended advertising channel packet interface file.
Extended advertising common header file.
lctrSyncInfo_t secSyncInfo
BLE baseband interface file.
uint16_t BbGetClockAccuracy(void)
Get BB clock accuracy.
lctrPerScanCtx_t * pPerScanCtx
lctrAdvbPduHdr_t reqPduHdr
Master scan state context.
Internal link layer controller scanning master interface file.
#define LL_EXT_ADVB_MAX_LEN
bbBlePerPduFiltParams_t filtParam
Advertising report filter.
Initiating scan parameters (LlExtCreateConn()).
Extended scanning control block.
Periodic PDU filtering parameters.
lctrExtAdvHdr_t extAdvHdr
static uint8_t lctrConvertAuxPtrPhyToBbPhy(uint8_t auxPtrPhy)
Convert AuxPtr PHY value to PHY value in extended advertising report.
lctrExtAdvHdr_t extAdvHdr
Periodic scanning context.
static void lctrMstComputeAuxOffset(lctrAuxPtr_t *pAuxPtr, uint32_t *pOffsetUsec, uint32_t *pSyncDelayUsec)
Compute auxiliary offset.
uint32_t scanWinStartUsec
Bluetooth Low Energy protocol specific operation parameters.
Active extended scanning context.
LlExtAdvReportInd_t advRpt
Extended advertising channel PDU header.
lctrRptState_t
Extended advertising report assembly state.
LE periodic advertising report.
void(* lctrTermHdlr_t)(uint16_t syncHandle)
Termination event handler call signature.
Extended scanning context.
Advertising channel PDU header.
LlPerAdvReportInd_t advRpt
Periodic sync transfer state context.
uint32_t lastAnchorPointUsec
#define BB_REQ_PDU_MAX_LEN
Maximum request PDU length (MAX(LL_SCAN_REQ_PDU_LEN, LL_CONN_IND_PDU_LEN)).
bbBlePerPduFiltParams_t filtParam
Link layer constant definitions.
Link layer controller extended scanning master interface file.
LlExtInitScanParam_t param
Baseband operation descriptor (BOD).
lctrPerScanCtx_t * pPerScanCtx
lctrRptState_t advRptState
lmgrChanParam_t chanParam
LlExtAdvReportInd_t auxAdvRpt
Extended advertising report.
Connection specification (LlCreateConn(), LlConnUpdate() and LlExtCreateConn()).
Internal link layer controller interface file.
uint32_t nextScanWinStart
static uint8_t lctrConvertAuxPtrPhyToAdvRptPhy(uint8_t auxPtrPhy)
Convert PHY value to PHY value in extended advertising report.
uint16_t initEventCounter
ACAD message generic type.
lctrRptState_t auxAdvRptState