Go to the documentation of this file.
40 #ifndef _BT_HAL_MANAGER_H_
41 #define _BT_HAL_MANAGER_H_
50 #define btMAJOR_VERSION 5
55 #define btMINOR_VERSION 0
60 #define btPATCH_VERSION 1
65 #define btSTR_HELPER( x, y, z ) # x "." # y "." # z
66 #define btSTR( x, y, z ) btSTR_HELPER( x, y, z )
71 #define btSTRING_VERSION btSTR( btMAJOR_VERSION, btMINOR_VERSION, btPATCH_VERSION )
76 #define btBLE_ADD_BLOB_SERVICE_SUPPORTED_BIT 0x0001
77 #define btBLE_ADD_BLE_DYNAMIC_PRIVACY 0x0002
78 #define btBLE_BLE_CENTRAL_WHITELISTING 0x0004
90 typedef uint8_t BTSecurityLevel_t;
100 eBTAuthReqKeyPress = 0x05,
102 typedef uint8_t BTAuthReq_t;
277 uint8_t ucC192[ btKEY_MAX_LEN ];
278 uint8_t ucR192[ btKEY_MAX_LEN ];
279 uint8_t ucC256[ btKEY_MAX_LEN ];
280 uint8_t ucR256[ btKEY_MAX_LEN ];
281 uint8_t ucSm_tk[ btKEY_MAX_LEN ];
282 uint8_t ucLe_sc_c[ btKEY_MAX_LEN ];
283 uint8_t ucLe_sc_r[ btKEY_MAX_LEN ];
353 uint32_t ulNumProperties,
367 uint32_t ulNumProperties,
382 uint8_t ucMin16Digit );
403 uint32_t ulPassKey );
420 BTSecurityLevel_t xSecurityLevel,
463 uint16_t usNumPackets );
484 BTSecurityLevel_t xSecurityLevel,
497 uint8_t ucTxPowerValue,
687 BTSecurityLevel_t xSecurityLevel,
723 bool * bConnectionState );
753 uint32_t ulPasskey );
845 const void * ( *pxGetClassicAdapter )( );
852 const void * ( *pxGetLeAdapter )( );
858 uint32_t ( * pxGetLastError )();
867 BTStatus_t ( * pxGetStackFeaturesSupport )( uint32_t * pulFeatureMask );
@ eBTSecLevelSecureConnect
Definition: bt_hal_manager.h:88
BTPropertyType_t
Bluetooth local device and Remote Device property types. Properties common to both adapter and remote...
Definition: bt_hal_manager.h:165
@ eBTauthFailLmpRespTimeout
Definition: bt_hal_manager.h:137
Bluetooth PinKey Code, Valid only for BT legacy.
Definition: bt_hal_manager.h:127
void(* BTRemoteDevicePropertiesCallback_t)(BTStatus_t xStatus, BTBdaddr_t *pxBdAddr, uint32_t ulNumProperties, BTProperty_t *pxProperties)
GET/SET Remote Device Properties callback. Invoked on pxGetRemoteDeviceProperty, pxSetRemoteDevicePro...
Definition: bt_hal_manager.h:365
@ eBTstateOff
Definition: bt_hal_manager.h:119
@ eBTauthFailSmp
Definition: bt_hal_manager.h:149
@ eBTauthFailPageTimeout
Definition: bt_hal_manager.h:144
@ eBTpropertySecureConnectionOnly
Definition: bt_hal_manager.h:258
@ eBTpropertyLocalMTUSize
Definition: bt_hal_manager.h:222
@ eBTpropertyIO
Definition: bt_hal_manager.h:240
@ eBTsspVariantConsent
Definition: bt_hal_manager.h:311
@ eBTauthFailPeerUser
Definition: bt_hal_manager.h:155
void(* BTBondedCallback_t)(BTStatus_t xStatus, BTBdaddr_t *pxRemoteBdAddr, bool bIsBonded)
Bonded callback, called when a bonded is established or removed. Invoked on bond event or on pxRemove...
Definition: bt_hal_manager.h:508
uint8_t ucCtrlState
Definition: bt_hal_manager.h:321
@ eBTpropertyBdname
Definition: bt_hal_manager.h:171
BTBondState_t
Definition: bt_hal_manager.h:298
@ eBTSecLevelAuthenticatedPairing
Definition: bt_hal_manager.h:87
@ eBTpropertyTypeOfDevice
Definition: bt_hal_manager.h:185
void(* BTTxPowerCallback_t)(BTBdaddr_t *pxBda, BTTransport_t xTransport, uint8_t ucTxPowerValue, BTStatus_t xStatus)
TX power Callback. Invoked on pxGetTxpower.
Definition: bt_hal_manager.h:495
@ eBTsspVariantPasskeyEntry
Definition: bt_hal_manager.h:310
@ eBTsspVariantPasskeyNotification
Definition: bt_hal_manager.h:312
void(* BTLeTestModeCallback_t)(BTStatus_t xStatus, uint16_t usNumPackets)
LE Test mode callbacks. Invoked on pxLeTestMode.
Definition: bt_hal_manager.h:462
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:98
@ eBTauthFailKeyMissing
Definition: bt_hal_manager.h:138
@ eBTauthFailSmpCfrmValue
Definition: bt_hal_manager.h:141
@ eBTdeviceDevtypeBle
Definition: bt_hal_manager.h:292
@ eBTpropertyRemoteRssi
Definition: bt_hal_manager.h:208
uint64_t ullTxTime
Definition: bt_hal_manager.h:322
void(* BTSspRequestCallback_t)(BTBdaddr_t *pxRemoteBdAddr, BTBdname_t *pxRemoteBdName, uint32_t ulCod, BTSspVariant_t xPairingVariant, uint32_t ulPassKey)
Callback Invoked on SSP event.
Definition: bt_hal_manager.h:399
void(* BTReadRssiCallback_t)(BTBdaddr_t *pxBda, uint32_t ulRssi, BTStatus_t xStatus)
Read RSSI Callback. Invoked on pxReadRssi.
Definition: bt_hal_manager.h:472
@ eBTSecLevelUnauthenticatedPairing
Definition: bt_hal_manager.h:86
@ eBTpropertyRemoteVersionInfo
Definition: bt_hal_manager.h:215
@ eBTpropertyConnectable
Definition: bt_hal_manager.h:247
@ eBTauthFailConnTimeout
Definition: bt_hal_manager.h:148
@ eBTAuthReqMitm
Definition: bt_hal_manager.h:98
@ eBTpropertyAdapterBondedDevices
Definition: bt_hal_manager.h:193
#define btADDRESS_LEN
Size in byte of BT/BLE addresses.
Definition: bt_hal_manager_types.h:50
@ eBTauthFailUnitKey
Definition: bt_hal_manager.h:140
Energy info.
Definition: bt_hal_manager.h:319
void(* BTSlaveSecurityRequestCallBack_t)(BTBdaddr_t *pxBda, BTSecurityLevel_t xSecurityLevel, bool bBonding)
Security request callback. Invoked on master from remote slave security request event.
Definition: bt_hal_manager.h:483
void(* BTDutModeRecvCallback_t)(uint16_t usOpcode, uint8_t *pucBuf, size_t xLen)
Bluetooth Test Mode Callback. Invoked when remote device uses pxDutModeSend.
Definition: bt_hal_manager.h:448
@ eBTdeviceDevtypeBredr
Definition: bt_hal_manager.h:291
@ eBTAuthReqSecureConnect
Definition: bt_hal_manager.h:99
Bluetooth Adapter Property data structure.
Definition: bt_hal_manager.h:265
size_t xLen
Definition: bt_hal_manager.h:267
@ eBTSecLevelNoSecurity
Definition: bt_hal_manager.h:85
@ eBTauthSuccess
Definition: bt_hal_manager.h:136
@ BTTransportLe
Definition: bt_hal_manager.h:111
uint64_t ullRxTime
Definition: bt_hal_manager.h:323
@ eBTauthFailSmpPasskeyFail
Definition: bt_hal_manager.h:145
Bluetooth DM callback structure.
Definition: bt_hal_manager.h:516
UUID traffic info.
Definition: bt_hal_manager.h:332
@ eBTauthFailUnspecified
Definition: bt_hal_manager.h:156
void(* BTPairingStateChangedCallback_t)(BTStatus_t xStatus, BTBdaddr_t *pxRemoteBdAddr, BTBondState_t xState, BTSecurityLevel_t xSecurityLevel, BTAuthFailureReason_t xReason)
Bluetooth pairing state changed event callback. Invoked in response to create_bond,...
Definition: bt_hal_manager.h:417
@ eBTauthFailSmpFail
Definition: bt_hal_manager.h:147
BTTransport_t
Preferred physical Transport for GATT connection .
Definition: bt_hal_manager.h:108
BTAuthFailureReason_t
Authentication failure reasons.
Definition: bt_hal_manager.h:135
BTDeviceStateChangedCallback_t pxDeviceStateChangedCb
Definition: bt_hal_manager.h:518
void(* BTDevicePropertiesCallback_t)(BTStatus_t xStatus, uint32_t ulNumProperties, BTProperty_t *pxProperties)
GET/SET local device Properties callback.
Definition: bt_hal_manager.h:352
@ eBTauthFailSmpTimeout
Definition: bt_hal_manager.h:143
BTSspVariant_t
Bluetooth SSP Bonding Variant.
Definition: bt_hal_manager.h:308
@ eBTsspVariantPasskeyConfirmation
Definition: bt_hal_manager.h:309
@ eBTAuthReqBonding
Definition: bt_hal_manager.h:97
@ eBTpropertyBondable
Definition: bt_hal_manager.h:229
BTDutModeRecvCallback_t pxDutModeRecvCb
Definition: bt_hal_manager.h:525
BT/BLE address.
Definition: bt_hal_manager_types.h:67
BTDeviceType_t
Bluetooth Device Type.
Definition: bt_hal_manager.h:290
@ eBTauthFailSmpUnknownIo
Definition: bt_hal_manager.h:151
@ eBTstateOn
Definition: bt_hal_manager.h:120
@ BTTransportAuto
Definition: bt_hal_manager.h:109
@ eBTauthFailSmpOobFail
Definition: bt_hal_manager.h:146
BTState_t
Bluetooth power State.
Definition: bt_hal_manager.h:118
@ eBTpropertyRemoteFriendlyName
Definition: bt_hal_manager.h:201
@ eBTauthFailSmpEnc
Definition: bt_hal_manager.h:142
uint64_t ullIdleTime
Definition: bt_hal_manager.h:324
@ eBTpropertyBdaddr
Definition: bt_hal_manager.h:178
Device Name.
Definition: bt_hal_manager_types.h:75
@ eBTauthFailHostRejectSecurity
Definition: bt_hal_manager.h:153
@ eBTauthFailInsuffSecurity
Definition: bt_hal_manager.h:154
@ eBTdeviceDevtypeDual
Definition: bt_hal_manager.h:293
@ eBTauthFailSmpUnknown
Definition: bt_hal_manager.h:152
Represents the standard SAL device management interface.
Definition: bt_hal_manager.h:537
uint64_t ullEnergyUsed
Definition: bt_hal_manager.h:325
@ BTTransportBredr
Definition: bt_hal_manager.h:110
void * pvVal
Definition: bt_hal_manager.h:268
Bluetooth Out Of Band data for bonding.
Definition: bt_hal_manager.h:275
void(* BTEnergyInfoCallback_t)(BTActivityEnergyInfo *pxEnergyInfo, BTUidTraffic_t *pxUidData)
Callback invoked on pxReadEnergyInfo. Invoked on pxReadEnergyInfo.
Definition: bt_hal_manager.h:437
void(* BTPinRequestCallback_t)(BTBdaddr_t *pxRemoteBdAddr, BTBdname_t *pxBdName, uint32_t ulCod, uint8_t ucMin16Digit)
Callback Invoked on Pin Request.
Definition: bt_hal_manager.h:379
@ eBTauthFailEncrypMode
Definition: bt_hal_manager.h:139
void(* BTDeviceStateChangedCallback_t)(BTState_t xState)
Bluetooth state change Callback. Invoked on pxEnable/pxDisable.
Definition: bt_hal_manager.h:343
BTPropertyType_t xType
Definition: bt_hal_manager.h:266
@ eBTauthFailSmpPairNotSupport
Definition: bt_hal_manager.h:150