44 #define HCI_RESET_SEQ_CMPL_CBACK_EVT 0 45 #define HCI_LE_CONN_CMPL_CBACK_EVT 1 46 #define HCI_LE_ENHANCED_CONN_CMPL_CBACK_EVT 2 47 #define HCI_DISCONNECT_CMPL_CBACK_EVT 3 48 #define HCI_LE_CONN_UPDATE_CMPL_CBACK_EVT 4 49 #define HCI_LE_CREATE_CONN_CANCEL_CMD_CMPL_CBACK_EVT 5 50 #define HCI_LE_ADV_REPORT_CBACK_EVT 6 51 #define HCI_READ_RSSI_CMD_CMPL_CBACK_EVT 7 52 #define HCI_LE_READ_CHAN_MAP_CMD_CMPL_CBACK_EVT 8 53 #define HCI_READ_TX_PWR_LVL_CMD_CMPL_CBACK_EVT 9 54 #define HCI_READ_REMOTE_VER_INFO_CMPL_CBACK_EVT 10 55 #define HCI_LE_READ_REMOTE_FEAT_CMPL_CBACK_EVT 11 56 #define HCI_LE_LTK_REQ_REPL_CMD_CMPL_CBACK_EVT 12 57 #define HCI_LE_LTK_REQ_NEG_REPL_CMD_CMPL_CBACK_EVT 13 58 #define HCI_ENC_KEY_REFRESH_CMPL_CBACK_EVT 14 59 #define HCI_ENC_CHANGE_CBACK_EVT 15 60 #define HCI_LE_LTK_REQ_CBACK_EVT 16 61 #define HCI_VENDOR_SPEC_CMD_STATUS_CBACK_EVT 17 62 #define HCI_VENDOR_SPEC_CMD_CMPL_CBACK_EVT 18 63 #define HCI_VENDOR_SPEC_CBACK_EVT 19 64 #define HCI_HW_ERROR_CBACK_EVT 20 65 #define HCI_LE_ADD_DEV_TO_RES_LIST_CMD_CMPL_CBACK_EVT 21 66 #define HCI_LE_REM_DEV_FROM_RES_LIST_CMD_CMPL_CBACK_EVT 22 67 #define HCI_LE_CLEAR_RES_LIST_CMD_CMPL_CBACK_EVT 23 68 #define HCI_LE_READ_PEER_RES_ADDR_CMD_CMPL_CBACK_EVT 24 69 #define HCI_LE_READ_LOCAL_RES_ADDR_CMD_CMPL_CBACK_EVT 25 70 #define HCI_LE_SET_ADDR_RES_ENABLE_CMD_CMPL_CBACK_EVT 26 71 #define HCI_LE_ENCRYPT_CMD_CMPL_CBACK_EVT 27 72 #define HCI_LE_RAND_CMD_CMPL_CBACK_EVT 28 73 #define HCI_LE_REM_CONN_PARAM_REP_CMD_CMPL_CBACK_EVT 29 74 #define HCI_LE_REM_CONN_PARAM_NEG_REP_CMD_CMPL_CBACK_EVT 30 75 #define HCI_LE_READ_DEF_DATA_LEN_CMD_CMPL_CBACK_EVT 31 76 #define HCI_LE_WRITE_DEF_DATA_LEN_CMD_CMPL_CBACK_EVT 32 77 #define HCI_LE_SET_DATA_LEN_CMD_CMPL_CBACK_EVT 33 78 #define HCI_LE_READ_MAX_DATA_LEN_CMD_CMPL_CBACK_EVT 34 79 #define HCI_LE_REM_CONN_PARAM_REQ_CBACK_EVT 35 80 #define HCI_LE_DATA_LEN_CHANGE_CBACK_EVT 36 81 #define HCI_LE_READ_LOCAL_P256_PUB_KEY_CMPL_CBACK_EVT 37 82 #define HCI_LE_GENERATE_DHKEY_CMPL_CBACK_EVT 38 83 #define HCI_WRITE_AUTH_PAYLOAD_TO_CMD_CMPL_CBACK_EVT 39 84 #define HCI_AUTH_PAYLOAD_TO_EXPIRED_CBACK_EVT 40 85 #define HCI_LE_READ_PHY_CMD_CMPL_CBACK_EVT 41 86 #define HCI_LE_SET_DEF_PHY_CMD_CMPL_CBACK_EVT 42 87 #define HCI_LE_PHY_UPDATE_CMPL_CBACK_EVT 43 88 #define HCI_LE_EXT_ADV_REPORT_CBACK_EVT 44 89 #define HCI_LE_SCAN_TIMEOUT_CBACK_EVT 45 90 #define HCI_LE_ADV_SET_TERM_CBACK_EVT 46 91 #define HCI_LE_SCAN_REQ_RCVD_CBACK_EVT 47 92 #define HCI_LE_PER_ADV_SYNC_EST_CBACK_EVT 48 93 #define HCI_LE_PER_ADV_REPORT_CBACK_EVT 49 94 #define HCI_LE_PER_ADV_SYNC_LOST_CBACK_EVT 50 95 #define HCI_LE_CH_SEL_ALGO_CBACK_EVT 51 96 #define HCI_LE_SCAN_ENABLE_CMPL_CBACK_EVT 52 97 #define HCI_LE_ADV_ENABLE_CMPL_CBACK_EVT 53 98 #define HCI_LE_EXT_SCAN_ENABLE_CMPL_CBACK_EVT 54 99 #define HCI_LE_EXT_ADV_ENABLE_CMPL_CBACK_EVT 55 100 #define HCI_LE_PER_ADV_ENABLE_CMPL_CBACK_EVT 56 101 #define HCI_READ_LOCAL_VER_INFO_CMPL_CBACK_EVT 57 hciLePerAdvSyncLostEvt_t lePerAdvSyncLost
LE periodic advertising synchronization lost.
uint16_t connIntervalMax
Maximum connection interval.
void HciLeReadSupStatesCmd(void)
HCI LE read supported states command.
void HciLePerAdvCreateSyncCmd(uint8_t filterPolicy, uint8_t advSid, uint8_t advAddrType, uint8_t *pAdvAddr, uint16_t skip, uint16_t syncTimeout, uint8_t unused)
HCI LE periodic advertising create sync command.
void HciSetAclQueueWatermarks(uint8_t queueHi, uint8_t queueLo)
Set TX ACL queue high and low watermarks.
uint8_t len
length of advertising or scan response data.
#define HCI_ENCRYPT_DATA_LEN
Length of data used in encryption.
void HciSetLeSupFeat(uint16_t feat, bool_t flag)
Set LE supported features configuration mask.
uint8_t priAdvPhy
Primary Advertising PHY.
void HciLeRandCmd(void)
HCI LE random command.
void HciLeRemoveDeviceFromPerAdvListCmd(uint8_t advAddrType, uint8_t *pAdvAddr, uint8_t advSid)
HCI LE remove device from periodic advertiser list command.
void HciLeAddDevWhiteListCmd(uint8_t addrType, uint8_t *pAddr)
HCI LE add device white list command.
LE create connection cancel command complete event.
LE read local resolving address command complete event.
#define HCI_FEAT_LEN
Length of features byte array.
void HciLeReadPhyCmd(uint16_t handle)
HCI read PHY command.
void HciLeReadRemoteFeatCmd(uint16_t handle)
HCI LE read remote feature command.
uint8_t wsfEventMask_t
Event handler event mask data type.
uint8_t addrType
Peer address type.
uint8_t secAdvPhy
Secondary Advertising PHY.
wsfMsgHdr_t hdr
Event header.
bdAddr_t peerRpa
Peer RPA.
wsfMsgHdr_t hdr
Event header.
void HciLePerAdvTerminateSyncCmd(uint16_t syncHandle)
HCI LE periodic advertising terminate sync command.
uint8_t scanType
Scan type.
void HciLeCreateConnCmd(uint16_t scanInterval, uint16_t scanWindow, uint8_t filterPolicy, uint8_t peerAddrType, uint8_t *pPeerAddr, uint8_t ownAddrType, hciConnSpec_t *pConnSpec)
HCI LE create connection command.
uint8_t HciGetNumSupAdvSets(void)
Get the maximum number of advertising sets supported by the Controller.
uint8_t advAddrType
Advertiser address type.
uint8_t peerAddrType
Address type used for peer device.
uint8_t handle
Connection handle.
void HciLeCreateConnCancelCmd(void)
HCI LE create connection cancel command.
void HciLeReadNumSupAdvSets(void)
HCI LE read number of supported advertising sets command.
hciLePhyUpdateEvt_t lePhyUpdate
LE PHY update.
uint16_t connLatency
Connection latency.
uint16_t handle
Connection handle.
hciReadRemoteVerInfoCmplEvt_t readRemoteVerInfoCmpl
Read remote version information complete.
void HciLeSetPrivacyModeCmd(uint8_t addrType, uint8_t *pAddr, uint8_t mode)
HCI LE set privacy mode command.
wsfMsgHdr_t hdr
Event header.
hciAuthPayloadToExpiredEvt_t authPayloadToExpired
Authenticated payload to expired.
wsfMsgHdr_t hdr
Event header.
uint16_t suggestedMaxTxOctets
Suggested maximum Tx octets.
void HciLeSetScanRespDataCmd(uint8_t len, uint8_t *pData)
HCI LE set scan response data.
uint8_t advSid
Advertising SID.
LE connection complete event.
hciLeCreateConnCancelCmdCmplEvt_t leCreateConnCancelCmdCmpl
LE create connection cancel command complete.
hciLeReadLocalResAddrCmdCmplEvt_t leReadLocalResAddrCmdCmpl
LE read local resolvable address command complete.
Write authenticated payload to command complete event.
uint8_t * pData
Data buffer.
void HciLePerAdvCreateSyncCancelCmd(void)
HCI LE periodic advertising create sync cancel command.
LE PHY update complete event.
void HciLeReadDefDataLen(void)
HCI LE Read Default Data Length.
uint16_t lmpSubversion
LMP Sub-version.
uint16_t maxCeLen
Maximum CE length.
hciLeReadMaxDataLenEvt_t leReadMaxDataLenCmdCmpl
LE read max data length command complete.
wsfMsgHdr_t hdr
Event header.
uint8_t advHandle
Advertising handle.
void HciDisconnectCmd(uint16_t handle, uint8_t reason)
HCI disconnect command.
uint16_t advEventProp
Advertising Event Properties.
uint16_t handle
Connection handle.
uint16_t timeout
Connection timeout.
HCI constants and definitions from the Bluetooth specification.
wsfMsgHdr_t hdr
Event header.
uint8_t HciGetPerAdvListSize(void)
Return the periodic advertising list size.
uint16_t handle
Connection handle.
wsfMsgHdr_t hdr
Event header.
wsfMsgHdr_t hdr
Event header.
uint8_t scanAddrType
Scanner address type.
uint8_t bool_t
Boolean data type.
void HciLeGenerateDHKey(uint8_t *pPubKeyX, uint8_t *pPubKeyY)
HCI LE Generate DH Key.
hciLeSetDefPhyCmdCmplEvt_t leSetDefPhyCmdCmpl
LE set default PHY command complete.
uint16_t maxTxOctets
Maximum Tx octets.
void HciLeSetDataLen(uint16_t handle, uint16_t txOctets, uint16_t txTime)
HCI LE Set Data Length.
hciReadLocalVerInfo_t readLocalVerInfo
Read local version information.
void HciReadTxPwrLvlCmd(uint16_t handle, uint8_t type)
HCI read Tx power level command.
hciLeSetDataLenEvt_t leSetDataLenCmdCmpl
LE set data length command complete.
uint16_t supportedMaxTxOctets
Supported maximum Tx octets.
#define HCI_CHAN_MAP_LEN
Length of channel map byte array.
void HciResetCmd(void)
HCI reset command.
wsfMsgHdr_t hdr
Event header.
LE add device to resolving list command complete event.
uint8_t hciVersion
HCI version.
hciLeScanTimeoutEvt_t leScanTimeout
LE scan timeout.
void HciLeReadLocalP256PubKey(void)
HCI LE Read Local P-256 Public Key.
int8_t advTxPwr
Advertising Tx Power.
void HciLeReadChanMapCmd(uint16_t handle)
HCI LE read channel map command.
uint8_t advFiltPolicy
Advertising Filter Policy.
uint8_t maxEaEvents
Maximum number of extended advertising events.
uint32_t priAdvInterMax
Primary Advertising Interval Maximum.
bdAddr_t localRpa
Local RPA.
uint16_t len
Data buffer length.
void HciReadLocalVerInfoCmd(void)
HCI read local version info command.
void HciLeAddDeviceToResolvingListCmd(uint8_t peerAddrType, const uint8_t *pPeerIdentityAddr, const uint8_t *pPeerIrk, const uint8_t *pLocalIrk)
HCI add device to resolving list command.
void HciLeLtkReqReplCmd(uint16_t handle, uint8_t *pKey)
HCI LE long term key request reply command.
hciLeRemConnParamReqEvt_t leRemConnParamReq
LE remote connection parameter request.
uint16_t handle
Connection handle.
Encryption key refresh complete event.
hciLeAddDevToResListCmdCmplEvt_t leAddDevToResListCmdCmpl
LE add device to resolving list command complete.
wsfMsgHdr_t hdr
Event header.
void HciLeExtScanEnableCmd(uint8_t enable, uint8_t filterDup, uint16_t duration, uint16_t period)
HCI LE extended scan enable command.
#define HCI_RAND_LEN
Length of random number.
wsfMsgHdr_t hdr
Event header.
void HciLeClearAdvSets(void)
HCI LE clear advertising sets command.
uint8_t addrType
Address type.
uint16_t mfrName
Manufacturer name.
uint16_t scanInterval
Scan interval.
uint8_t * pPeerAddr
Peer Address.
wsfMsgHdr_t hdr
Event header.
hciLeDataLenChangeEvt_t leDataLenChange
LE data length change.
hciLeChSelAlgoEvt_t leChSelAlgo
LE channel select algorithm.
void HciLeSetPerAdvDataCmd(uint8_t advHandle, uint8_t op, uint8_t len, const uint8_t *pData)
HCI LE set periodic advertising data command.
void HciReadRssiCmd(uint16_t handle)
HCI read RSSI command.
wsfMsgHdr_t hdr
Event header.
void HciLeSetAdvDataCmd(uint8_t len, uint8_t *pData)
HCI LE set advertising data command.
uint16_t HciGetLeSupFeat(void)
Return the LE supported features supported by the controller.
void HciLeSetHostChanClassCmd(uint8_t *pChanMap)
HCI set host channel class command.
LE remote connetion parameter request event.
hciLeAdvSetTermEvt_t leAdvSetTerm
LE advertising set terminated.
uint8_t secAdvMaxSkip
Secondary Advertising Maximum Skip.
const uint8_t * pPeerAddr
Address of peer device.
uint16_t handle
Connection handle.
wsfMsgHdr_t hdr
Event header.
uint8_t ownAddrType
Address type used by this device.
uint16_t scanInterval
Scan interval.
wsfMsgHdr_t hdr
Event header.
wsfMsgHdr_t hdr
Event header.
wsfMsgHdr_t hdr
Event header.
uint16_t handle
Connection handle.
hciReadChanMapCmdCmplEvt_t readChanMapCmdCmpl
Read channel map command complete.
void HciEvtRegister(hciEvtCback_t evtCback)
Register a callback for HCI events.
uint8_t advHandle
Advertising handle.
Read transmit power level command complete event.
void HciLeWriteDefDataLen(uint16_t suggestedMaxTxOctets, uint16_t suggestedMaxTxTime)
HCI LE Write Default Data Length.
uint16_t eventType
Event type.
LE read suggested default data len command complete event.
bool_t HciLlPrivacySupported(void)
Whether LL Privacy is supported.
wsfMsgHdr_t hdr
Event header.
LE LTK request negative reply command complete event.
uint8_t secPhy
Secondary PHY.
uint8_t status
Disconnect complete status.
hciLeRemDevFromResListCmdCmplEvt_t leRemDevFromResListCmdCmpl
LE remove device from resolving list command complete.
wsfMsgHdr_t hdr
Event header.
Extended advertising parameters.
LE extended advertising report.
wsfMsgHdr_t hdr
Event header.
void HciLeReadPerAdvListSizeCmd(void)
HCI LE read periodic advertiser size command.
wsfMsgHdr_t hdr
Event header.
uint16_t suggestedMaxTxTime
Suggested maximum Tx time.
void HciSetEventMaskCmd(uint8_t *pEventMask)
HCI set event mask command.
uint16_t handle
Connection handle.
hciLeConnUpdateCmplEvt_t leConnUpdateCmpl
LE connection update complete.
bdAddr_t addr
Device address.
void(* hciEvtCback_t)(hciEvt_t *pEvent)
HCI event callback type.
void HciLeReadLocalResolvableAddr(uint8_t addrType, const uint8_t *pIdentityAddr)
HCI read local resolvable address command.
uint16_t minCeLen
Minimum CE length.
LE set default PHY command complete event.
uint16_t connLatency
Connection latency.
void HciLeSetAdvParamCmd(uint16_t advIntervalMin, uint16_t advIntervalMax, uint8_t advType, uint8_t ownAddrType, uint8_t peerAddrType, uint8_t *pPeerAddr, uint8_t advChanMap, uint8_t advFiltPolicy)
HCI LE set advertising parameters command.
void HciLeConnUpdateCmd(uint16_t handle, hciConnSpec_t *pConnSpec)
HCI connection update command.
uint16_t len
Data buffer length.
void HciLeSetExtAdvEnableCmd(uint8_t enable, uint8_t numSets, hciExtAdvEnableParam_t *pEnableParam)
HCI LE set extended advertising enable command.
uint16_t scanWindow
Scan window.
LE encrypt command complete event.
uint16_t HciGetMaxAdvDataLen(void)
Get the maximum advertisement (or scan response) data length supported by the Controller.
hciDisconnectCmplEvt_t disconnectCmpl
Disconnect complete.
void HciSetEventMaskPage2Cmd(uint8_t *pEventMask)
HCI set event page 2 mask command.
wsfMsgHdr_t hdr
Event header.
void HciReadAuthPayloadTimeout(uint16_t handle)
HCI read authenticated payload timeout command.
hciLeRemConnParamRepEvt_t leRemConnParamRepCmdCmpl
LE Remo Connection Parameter Reply Command Complete.
void HciLeReadWhiteListSizeCmd(void)
HCI LE read white list size command.
hciLeLtkReqReplCmdCmplEvt_t leLtkReqReplCmdCmpl
LE LTK request reply command complete.
uint16_t intervalMax
Interval maximum.
void HciWriteAuthPayloadTimeout(uint16_t handle, uint16_t timeout)
HCI write authenticated payload timeout command.
LE write suggested default data len command complete event.
uint16_t maxRxOctets
Maximum Rx octets.
uint16_t handle
Connect handle.
void HciLeReadPeerResolvableAddr(uint8_t addrType, const uint8_t *pIdentityAddr)
HCI read peer resolvable address command.
hciLeP256CmplEvt_t leP256
LE P-256.
void HciLeReadTxPower(void)
HCI LE read transmit power command.
wsfMsgHdr_t hdr
Event header.
uint16_t intervalMin
Interval minimum.
hciReadRssiCmdCmplEvt_t readRssiCmdCmpl
Read RSSI command complete.
uint16_t syncHandle
Sync handle.
uint8_t enabled
Encryption enabled flag.
uint8_t peerAddrType
Peer Address Type.
Extended scanning parameters.
LE periodic advertising report.
void(* hciFlowCback_t)(uint16_t handle, bool_t flowDisabled)
HCI flow control callback type.
uint8_t directAddrType
Direct advertising address type.
void HciLeClearResolvingList(void)
HCI clear resolving list command.
hciLeSetAddrResEnableCmdCmplEvt_t leSetAddrResEnableCmdCmpl
LE set address resolution enable command complete.
hciLeReadDefDataLenEvt_t leReadDefDataLenCmdCmpl
LE read default data length command complete.
void HciAclRegister(hciAclCback_t aclCback, hciFlowCback_t flowCback)
Register callbacks for the HCI data path.
uint8_t eventType
Advertising event type.
hciLeReadRemoteFeatCmplEvt_t leReadRemoteFeatCmpl
LE read remote feature complete.
void HciSecRegister(hciSecCback_t secCback)
Register a callback for certain HCI security events.
hciLeRemConnParamNegRepEvt_t leRemConnParamNegRepCmdCmpl
LE Remote Connection Parameter Negative Reply Command Complete.
void HciReadBufSizeCmd(void)
HCI read buffer size command.
uint8_t clockAccuracy
Clock accuracy.
wsfMsgHdr_t hdr
Event header.
uint8_t scanReqNotifEna
Scan Request Notification Enable.
Authenticated payload to expire event.
uint8_t filterPolicy
Scan filter policy.
hciVendorSpecEvt_t vendorSpec
Vendor specific.
int8_t HciGetAdvTxPwr(void)
Return the advertising transmit power.
void HciLeSetAdvEnableCmd(uint8_t enable)
HCI LE set advanced enable command.
void HciLeRemoveAdvSet(uint8_t advHandle)
HCI LE remove advertising set command.
Vendor specific command complete event.
uint16_t syncHandle
Sync handle.
void HciResetSequence(void)
Initiate an HCI reset sequence.
void(* hciAclCback_t)(uint8_t *pData)
HCI ACL callback type.
void HciLeExtCreateConnCmd(hciExtInitParam_t *pInitParam, hciExtInitScanParam_t *pScanParam, hciConnSpec_t *pConnSpec)
HCI LE extended create connection command.
Read remote version information complete event.
hciEncChangeEvt_t encChange
Encryption change.
hciLeLtkReqEvt_t leLtkReq
LE LTK request.
uint16_t handle
Connection handle.
Platform-independent data types.
uint8_t advSid
Advertising SID.
uint16_t handle
Connection handle.
bdAddr_t peerAddr
Peer address.
wsfMsgHdr_t hdr
Event header.
void HciLeRemoveDeviceFromResolvingList(uint8_t peerAddrType, const uint8_t *pPeerIdentityAddr)
HCI remove device from resolving list command.
Connection specification type.
LE connection update complete event.
unsigned long uint32_t
Unsigned 32-bit value.
wsfMsgHdr_t hdr
Event header.
hciEncKeyRefreshCmpl_t encKeyRefreshCmpl
Encryption key refresh complete.
wsfMsgHdr_t hdr
Event header.
void HciLeSetScanParamCmd(uint8_t scanType, uint16_t scanInterval, uint16_t scanWindow, uint8_t ownAddrType, uint8_t scanFiltPolicy)
HCI set scan parameters command.
Extended advertising enable parameters.
hciLeReadPeerResAddrCmdCmplEvt_t leReadPeerResAddrCmdCmpl
LE read peer resolvable address command complete.
void HciVendorSpecificCmd(uint16_t opcode, uint8_t len, uint8_t *pData)
HCI vencor specific command.
uint16_t supTimeout
Supervision timeout.
Initiating scan parameters.
wsfMsgHdr_t hdr
Event header.
int16_t perAdvInter
Periodic advertising interval.
wsfMsgHdr_t hdr
Event header.
wsfMsgHdr_t hdr
Event header.
LE clear resolving list command complete event.
void HciLeSetResolvablePrivateAddrTimeout(uint16_t rpaTimeout)
HCI set resolvable private address timeout command.
LE data length change event.
uint8_t advSetId
Advertising set ID.
uint16_t connInterval
Connection interval.
uint8_t * pData
Data buffer.
bool_t HciLeAdvExtSupported(void)
Whether LE Advertising Extensions is supported.
void(* hciSecCback_t)(hciEvt_t *pEvent)
HCI security callback type.
uint8_t advHandle
Advertising handle.
void HciLeSetRandAddrCmd(uint8_t *pAddr)
HCI LE set random address command.
LE LTK request reply command complete event.
#define BDA_ADDR_LEN
BD address length.
void HciLeSetAdvSetRandAddrCmd(uint8_t advHandle, const uint8_t *pAddr)
HCI LE set advertising set random device address command.
void HciCoreHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg)
WSF event handler for core HCI.
uint16_t maxRxTime
Maximum Rx time.
wsfMsgHdr_t hdr
Event header.
hciLeClearResListCmdCmplEvt_t leClearResListCmdCmpl
LE clear resolving list command complete.
uint16_t connIntervalMin
Minimum connection interval.
uint8_t unused
Intended to be used in a future feature.
uint16_t supTimeout
Supervision timeout.
Bluetooth device address utilities.
uint16_t handle
Connection handle.
bdAddr_t advAddr
Advertiser address.
uint8_t priPhy
Primary PHY.
hciVendorSpecCmdCmplEvt_t vendorSpecCmdCmpl
Vendor specific command complete.
void HciLeReadMaxAdvDataLen(void)
HCI LE read maximum advertising data length command.
void HciLeSetPerAdvParamCmd(uint8_t advHandle, uint16_t advIntervalMin, uint16_t advIntervalMax, uint16_t advProps)
HCI LE set periodic advertising parameters command.
void HciLeReadResolvingListSize(void)
HCI read resolving list command.
uint8_t bdAddr_t[BDA_ADDR_LEN]
BD address data type.
wsfMsgHdr_t hdr
Event header.
wsfMsgHdr_t hdr
Event header.
wsfMsgHdr_t hdr
Event header.
LE read PHY command complete event.
uint16_t HciGetMaxRxAclLen(void)
Get the maximum reassembled RX ACL packet length.
hciLeExtAdvReportEvt_t leExtAdvReport
LE extended advertising report.
bdAddr_t scanAddr
Scanner address.
wsfMsgHdr_t hdr
Event header.
void HciLeReadMaxDataLen(void)
HCI LE Read Maximum Data Length.
uint16_t handle
Connection handle.
uint8_t HciGetWhiteListSize(void)
Return the white list size.
uint16_t maxTxTime
Maximum Tx time.
uint16_t syncHandle
Sync handle.
void HciSendAclData(uint8_t *pAclData)
Send ACL Data from the stack to HCI.
void HciLeReadAdvTXPowerCmd(void)
HCI LE read advertising TX power command.
uint8_t priAdvChanMap
Primary Advertising Channel Map.
Union of all event types.
void HciLeReadRfPathComp(void)
HCI LE read RF path compensation command.
LE remote connection parameter request negative reply command complete event.
LE set address resolving enable command complete event.
uint8_t HciGetResolvingListSize(void)
Return the resolving list size.
wsfMsgHdr_t hdr
Event header.
LE read peer resolving address command complete event.
void HciLeSetPhyCmd(uint16_t handle, uint8_t allPhys, uint8_t txPhys, uint8_t rxPhys, uint16_t phyOptions)
HCI set PHY command.
uint16_t manufacturerName
Manufacturer name.
void HciReadRemoteVerInfoCmd(uint16_t handle)
HCI read remote version info command.
uint8_t ownAddrType
Own Address Type.
Read local version information complete event.
uint8_t HciGetNumBufs(void)
Return the number of ACL buffers supported by the controller.
hciHwErrorEvt_t hwError
Hardware error.
void HciLeEncryptCmd(uint8_t *pKey, uint8_t *pData)
HCI LE encrypt command.
LE scan request received.
LE remove device from resolving list command complete event.
uint8_t initPhys
Initiating PHYs.
LE Read channel map command complete event.
uint8_t lmpVersion
LMP version.
LE advertising report event.
hciWriteAuthPayloadToCmdCmplEvt_t writeAuthPayloadToCmdCmpl
Write authenticated payload to command complete.
hciLeEncryptCmdCmplEvt_t leEncryptCmdCmpl
LE encrypt command complete.
uint16_t connInterval
Connection interval.
void HciLeSetExtScanParamCmd(uint8_t ownAddrType, uint8_t scanFiltPolicy, uint8_t scanPhys, hciExtScanParam_t *pScanParam)
HCI LE set extended scanning parameters command.
void HciLeClearPerAdvListCmd(void)
HCI LE clear periodic advertiser list command.
void HciReadBdAddrCmd(void)
HCI read BD address command.
uint16_t handle
Connection handle.
LE local p256 ecc key command complete event.
wsfMsgHdr_t hdr
Event header.
uint8_t advPhy
Advertiser PHY.
hciLeAdvReportEvt_t leAdvReport
LE advertising report.
void HciLeStartEncryptionCmd(uint16_t handle, uint8_t *pRand, uint16_t diversifier, uint8_t *pKey)
HCI LE start encryption command.
unsigned short uint16_t
Unsigned 16-bit value.
void HciLeSetScanEnableCmd(uint8_t enable, uint8_t filterDup)
HCI LE set scan enable command.
LE remote connection parameter request reply command complete event.
void HciLeRemoteConnParamReqNegReply(uint16_t handle, uint8_t reason)
HCI Remote Connection Parameter Request Negative Reply.
hciLeGenDhKeyEvt_t leGenDHKey
LE generate Diffie-Hellman key.
uint32_t priAdvInterMin
Primary Advertising Interval Minimum.
void HciLeWriteRfPathComp(int16_t txPathComp, int16_t rxPathComp)
HCI LE write RF path compensation command.
void HciLeSetAddrResolutionEnable(uint8_t enable)
HCI enable or disable address resolution command.
Disconnect complete event.
void HciLeClearWhiteListCmd(void)
HCI LE clear white list command.
uint8_t chSelAlgo
Channel selection algorithm.
uint8_t status
Data status.
wsfMsgHdr_t hdr
Event header.
void HciLeSetExtScanRespDataCmd(uint8_t advHandle, uint8_t op, uint8_t fragPref, uint8_t len, const uint8_t *pData)
HCI LE set extended scan response data command.
uint16_t duration
Advertising duration in 10 ms units.
wsfMsgHdr_t hdr
Event header.
LE read remote features complete event.
wsfMsgHdr_t hdr
Event header.
void HciLeSetDefaultPhyCmd(uint8_t allPhys, uint8_t txPhys, uint8_t rxPhys)
HCI set default PHY command.
uint16_t handle
Connection handle.
wsfMsgHdr_t hdr
Event header.
wsfMsgHdr_t hdr
Event header.
LE set data len command complete event.
void HciCoreInit(void)
HCI core initialization.
uint16_t handle
Connection handle.
uint16_t connLatency
Connection latency.
#define HCI_P256_KEY_LEN
Length of P256 key.
bdAddr_t directAddr
Directed address.
hciLeConnCmplEvt_t leConnCmpl
LE connection complete.
wsfMsgHdr_t hdr
Event header.
LE periodic advertising sync established.
uint16_t supTimeout
Supervision timeout.
uint16_t scanWindow
Scan window.
void HciLeSetExtAdvParamCmd(uint8_t advHandle, hciExtAdvParam_t *pExtAdvParam)
HCI LE set extended advertising parameters command.
uint8_t * HciGetSupStates(void)
Return the states supported by the controller.
uint16_t supportedMaxTxTime
Supported maximum Tx time.
uint16_t handle
Connection handle.
void HciSetMaxRxAclLen(uint16_t len)
Set the maximum reassembled RX ACL packet length. Minimum value is 27.
wsfMsgHdr_t hdr
Event header.
uint8_t directAddrType
Directed address type.
hciLePerAdvReportEvt_t lePerAdvReport
LE periodic advertising report.
LE rand command complete event.
wsfMsgHdr_t hdr
Event header.
uint16_t handle
Connection handle.
void HciReadLocalSupFeatCmd(void)
HCI read local supported feature command.
Vendor specific command status event.
uint16_t supportedMaxRxTime
Supported maximum Rx time.
uint16_t subversion
Sub-version.
wsfMsgHdr_t hdr
Event header.
void HciLeSetPerAdvEnableCmd(uint8_t enable, uint8_t advHandle)
HCI LE set periodic advertising enable command.
uint16_t handle
Connection handle.
hciLeReadPhyCmdCmplEvt_t leReadPhyCmdCmpl
LE read PHY command complete.
void HciLeRemoteConnParamReqReply(uint16_t handle, uint16_t intervalMin, uint16_t intervalMax, uint16_t latency, uint16_t timeout, uint16_t minCeLen, uint16_t maxCeLen)
HCI Remote Connection Parameter Request Reply.
Software foundation OS API.
uint8_t addrType
Address type.
wsfMsgHdr_t hdr
Event header.
Common message structure passed to event handler.
void HciVsAeInit(uint8_t param)
Vendor-specific controller AE initialization function.
LE read maximum data len command complete event.
void HciLeAddDeviceToPerAdvListCmd(uint8_t advAddrType, uint8_t *pAdvAddr, uint8_t advSid)
HCI LE add device to periodic advertiser list command.
uint16_t handle
Connection handle.
hciVendorSpecCmdStatusEvt_t vendorSpecCmdStatus
Vendor specific command status.
#define HCI_DH_KEY_LEN
Length of DH Key.
void HciLeReadBufSizeCmd(void)
HCI LE read buffer size command.
LE channel selection algorithm.
void HciLeSetExtAdvDataCmd(uint8_t advHandle, uint8_t op, uint8_t fragPref, uint8_t len, const uint8_t *pData)
HCI LE set extended advertising data command.
uint16_t supportedMaxRxOctets
Supported maximum Rx octets.
uint8_t numComplEvts
Number of completed extended advertising events.
wsfMsgHdr_t hdr
Event header.
wsfMsgHdr_t hdr
Event header.
wsfMsgHdr_t resetSeqCmpl
Reset sequence complete.
void HciLeSetEventMaskCmd(uint8_t *pLeEventMask)
HCI LE set event mask command.
uint8_t * pData
advertising or scan response data.
uint16_t handle
Connection handle.
uint16_t latency
Connection latency.
uint8_t * HciGetBdAddr(void)
Return a pointer to the BD address of this device.
hciReadTxPwrLvlCmdCmplEvt_t readTxPwrLvlCmdCmpl
Read Tx power level command complete.
LE generate DH key command complete event.
unsigned char uint8_t
Unsigned 8-bit value.
wsfMsgHdr_t hdr
Event header.
hciLeRandCmdCmplEvt_t leRandCmdCmpl
LE random command complete.
uint8_t clockAccuracy
Advertiser clock accuracy.
signed short int16_t
Signed 16-bit value.
hciLeWriteDefDataLenEvt_t leWriteDefDataLenCmdCmpl
LE write default data length command complete.
uint16_t handle
Connection handle.
LE advertising set terminated.
LE periodic advertising synch lost.
void HciLeReadLocalSupFeatCmd(void)
HCI LE read local supported feautre command.
void HciLeLtkReqNegReplCmd(uint16_t handle)
HCI LE long term key request negative reply command.
hciLeLtkReqNegReplCmdCmplEvt_t leLtkReqNegReplCmdCmpl
LE LT request negative reply command complete.
wsfMsgHdr_t hdr
Event header.
uint16_t hciRevision
HCI revision.
bdAddr_t directAddr
Direct advertising address.
hciLeScanReqRcvdEvt_t leScanReqRcvd
LE scan request received.
hciLePerAdvSyncEstEvt_t lePerAdvSyncEst
LE periodic advertising synchronization established.
uint8_t role
Local connection role.
uint16_t perAdvInterval
Periodic advertising interval.
void HciLeRemoveDevWhiteListCmd(uint8_t addrType, uint8_t *pAddr)
HCI LE remove device white list command.
signed char int8_t
Signed 8-bit value.
uint16_t HciGetBufSize(void)
Return the ACL buffer size supported by the controller.
int8_t pwrLvl
Tx power level.
uint16_t encDiversifier
LTK encryption diversifier.