40 #ifndef _BT_HAL_MANAGER_H_ 41 #define _BT_HAL_MANAGER_H_ 50 #define btMAJOR_VERSION 5 55 #define btMINOR_VERSION 1 60 #define btPATCH_VERSION 0 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;
288 uint8_t ucC192[ btKEY_MAX_LEN ];
289 uint8_t ucR192[ btKEY_MAX_LEN ];
290 uint8_t ucC256[ btKEY_MAX_LEN ];
291 uint8_t ucR256[ btKEY_MAX_LEN ];
292 uint8_t ucSm_tk[ btKEY_MAX_LEN ];
293 uint8_t ucLe_sc_c[ btKEY_MAX_LEN ];
294 uint8_t ucLe_sc_r[ btKEY_MAX_LEN ];
443 uint32_t ulNumProperties,
457 uint32_t ulNumProperties,
472 uint8_t ucMin16Digit );
493 uint32_t ulPassKey );
510 BTSecurityLevel_t xSecurityLevel,
553 uint16_t usNumPackets );
574 BTSecurityLevel_t xSecurityLevel,
587 uint8_t ucTxPowerValue,
788 BTSecurityLevel_t xSecurityLevel,
824 bool * bConnectionState );
854 uint32_t ulPasskey );
946 const void * ( *pxGetClassicAdapter )( void );
953 const void * ( *pxGetLeAdapter )( void );
959 uint32_t ( * pxGetLastError )( void );
968 BTStatus_t ( * pxGetStackFeaturesSupport )( uint32_t * pulFeatureMask );
Definition: bt_hal_manager.h:394
Definition: bt_hal_manager.h:304
Definition: bt_hal_manager.h:111
Definition: bt_hal_manager.h:119
BTBondState_t
Definition: bt_hal_manager.h:308
Bluetooth Out Of Band data for bonding.
Definition: bt_hal_manager.h:285
Definition: bt_hal_manager.h:374
Energy info.
Definition: bt_hal_manager.h:329
Definition: bt_hal_manager.h:155
Definition: bt_hal_manager.h:160
Definition: bt_hal_manager.h:159
Definition: bt_hal_manager.h:182
Definition: bt_hal_manager.h:409
Definition: bt_hal_manager.h:416
void * pvVal
Definition: bt_hal_manager.h:279
Bluetooth DM callback structure.
Definition: bt_hal_manager.h:616
Definition: bt_hal_manager.h:162
Definition: bt_hal_manager.h:393
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:469
Definition: bt_hal_manager.h:144
Bluetooth Adapter Property data structure.
Definition: bt_hal_manager.h:275
Definition: bt_hal_manager.h:382
Definition: bt_hal_manager.h:418
void(* BTEnergyInfoCallback_t)(BTActivityEnergyInfo *pxEnergyInfo, BTUidTraffic_t *pxUidData)
Callback invoked on pxReadEnergyInfo. Invoked on pxReadEnergyInfo.
Definition: bt_hal_manager.h:527
Definition: bt_hal_manager.h:323
Definition: bt_hal_manager.h:390
BTAclState_t
Bluetooth ACL connection state.
Definition: bt_hal_manager.h:352
Definition: bt_hal_manager.h:388
uint64_t ullIdleTime
Definition: bt_hal_manager.h:335
BTPinRequestCallback_t pxPinRequestCb
Definition: bt_hal_manager.h:621
Definition: bt_hal_manager.h:85
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:489
BTLeTestModeCallback_t pxleTestModeCb
Definition: bt_hal_manager.h:626
Definition: bt_hal_manager.h:166
Represents the standard SAL device management interface.
Definition: bt_hal_manager.h:637
Definition: bt_hal_manager.h:398
Definition: bt_hal_manager.h:149
uint64_t ullRxTime
Definition: bt_hal_manager.h:334
Definition: bt_hal_manager.h:402
BTPropertyType_t
Bluetooth local device and Remote Device property types. Properties common to both adapter and remote...
Definition: bt_hal_manager.h:175
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, cancel_bond or remove_bond reason field is valid only in case of xStatus == eBTStatusFail. Invoked on pairing event.
Definition: bt_hal_manager.h:507
BTDeviceType_t
Bluetooth Device Type.
Definition: bt_hal_manager.h:300
BTState_t
Bluetooth power State.
Definition: bt_hal_manager.h:117
Definition: bt_hal_manager.h:196
Definition: bt_hal_manager.h:143
BTPairingStateChangedCallback_t pxPairingStateChangedCb
Definition: bt_hal_manager.h:623
Definition: bt_hal_manager.h:226
BTDeviceStateChangedCallback_t pxDeviceStateChangedCb
Definition: bt_hal_manager.h:618
Definition: bt_hal_manager.h:378
BTTxPowerCallback_t pxTxPowerCb
Definition: bt_hal_manager.h:629
Definition: bt_hal_manager.h:240
Definition: bt_hal_manager.h:97
Definition: bt_hal_manager.h:385
Definition: bt_hal_manager.h:425
Definition: bt_hal_manager.h:377
Definition: bt_hal_manager.h:396
void(* BTDeviceStateChangedCallback_t)(BTState_t xState)
Bluetooth state change Callback. Invoked on pxEnable/pxDisable.
Definition: bt_hal_manager.h:433
Definition: bt_hal_manager.h:423
Definition: bt_hal_manager.h:141
Definition: bt_hal_manager.h:150
BTReadRssiCallback_t pxReadRssiCb
Definition: bt_hal_manager.h:628
Definition: bt_hal_manager.h:303
BTAuthFailureReason_t
Authentication failure reasons.
Definition: bt_hal_manager.h:134
void(* BTReadRssiCallback_t)(BTBdaddr_t *pxBda, uint32_t ulRssi, BTStatus_t xStatus)
Read RSSI Callback. Invoked on pxReadRssi.
Definition: bt_hal_manager.h:562
Definition: bt_hal_manager.h:167
Definition: bt_hal_manager.h:380
Definition: bt_hal_manager.h:375
Definition: bt_hal_manager.h:233
Definition: bt_hal_manager.h:371
Definition: bt_hal_manager.h:354
Definition: bt_hal_manager.h:369
Definition: bt_hal_manager.h:404
Definition: bt_hal_manager.h:140
Definition: bt_hal_manager.h:219
Definition: bt_hal_manager.h:384
Definition: bt_hal_manager.h:420
Definition: bt_hal_manager.h:109
Definition: bt_hal_manager.h:410
Definition: bt_hal_manager.h:251
Definition: bt_hal_manager.h:391
BTRemoteDevicePropertiesCallback_t pxRemoteDevicePropertiesCb
Definition: bt_hal_manager.h:620
Definition: bt_hal_manager.h:373
UUID traffic info.
Definition: bt_hal_manager.h:342
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:455
Definition: bt_hal_manager.h:212
Device Name.
Definition: bt_hal_manager_types.h:74
Definition: bt_hal_manager.h:397
Definition: bt_hal_manager.h:401
Definition: bt_hal_manager.h:421
Definition: bt_hal_manager.h:146
Definition: bt_hal_manager.h:138
BTAclDisconnectReason_t
Bluetooth ACL Disconnect Reason From Bluetooth Core Spec 5.0 Vol 2, Part D Error Codes Unknown discon...
Definition: bt_hal_manager.h:363
Definition: bt_hal_manager.h:321
Definition: bt_hal_manager.h:370
Definition: bt_hal_manager.h:120
Definition: bt_hal_manager.h:139
void(* BTLeTestModeCallback_t)(BTStatus_t xStatus, uint16_t usNumPackets)
LE Test mode callbacks. Invoked on pxLeTestMode.
Definition: bt_hal_manager.h:552
Definition: bt_hal_manager.h:395
Definition: bt_hal_manager.h:417
Definition: bt_hal_manager.h:154
Definition: bt_hal_manager.h:158
Definition: bt_hal_manager.h:99
Definition: bt_hal_manager.h:367
Definition: bt_hal_manager.h:157
Definition: bt_hal_manager.h:355
Definition: bt_hal_manager.h:88
BTDevicePropertiesCallback_t pxAdapterPropertiesCb
Definition: bt_hal_manager.h:619
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:573
Definition: bt_hal_manager.h:87
Definition: bt_hal_manager.h:399
Definition: bt_hal_manager.h:424
uint64_t ullEnergyUsed
Definition: bt_hal_manager.h:336
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:538
Definition: bt_hal_manager.h:163
size_t xLen
Definition: bt_hal_manager.h:278
Definition: bt_hal_manager.h:415
Definition: bt_hal_manager.h:320
Definition: bt_hal_manager.h:412
Definition: bt_hal_manager.h:161
Definition: bt_hal_manager.h:151
Definition: bt_hal_manager.h:379
Definition: bt_hal_manager.h:411
Definition: bt_hal_manager.h:400
Definition: bt_hal_manager.h:98
void(* BTDevicePropertiesCallback_t)(BTStatus_t xStatus, uint32_t ulNumProperties, BTProperty_t *pxProperties)
GET/SET local device Properties callback.
Definition: bt_hal_manager.h:442
Definition: bt_hal_manager.h:366
Definition: bt_hal_manager.h:165
Definition: bt_hal_manager.h:365
Definition: bt_hal_manager.h:189
Definition: bt_hal_manager.h:110
Definition: bt_hal_manager.h:302
uint8_t ucCtrlState
Definition: bt_hal_manager.h:332
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:97
void(* BTBondedCallback_t)(BTStatus_t xStatus, BTBdaddr_t *pxRemoteBdAddr, bool bIsBonded)
Definition: bt_hal_manager.h:593
Definition: bt_hal_manager.h:156
Definition: bt_hal_manager.h:381
Definition: bt_hal_manager.h:204
Definition: bt_hal_manager.h:164
Bluetooth PinKey Code, Valid only for BT legacy.
Definition: bt_hal_manager.h:126
Definition: bt_hal_manager.h:86
Definition: bt_hal_manager.h:148
BTAclStateChangedCallback_t pxAclStateChangedCb
Definition: bt_hal_manager.h:631
Definition: bt_hal_manager.h:392
Definition: bt_hal_manager.h:422
Definition: bt_hal_manager.h:407
Definition: bt_hal_manager.h:389
void(* BTAclStateChangedCallback_t)(BTStatus_t xStatus, const BTBdaddr_t *pxRemoteBdAddr, BTAclState_t xState, BTTransport_t xTransport, BTAclDisconnectReason_t xReason)
Callback invoked in response to ACL connection state change.
Definition: bt_hal_manager.h:607
BTSspVariant_t
Bluetooth SSP Bonding Variant.
Definition: bt_hal_manager.h:318
BTBondedCallback_t pxBondedCb
Definition: bt_hal_manager.h:624
Definition: bt_hal_manager.h:322
Definition: bt_hal_manager.h:419
BT/BLE address.
Definition: bt_hal_manager_types.h:66
Definition: bt_hal_manager.h:414
Definition: bt_hal_manager.h:386
Definition: bt_hal_manager.h:136
uint64_t ullTxTime
Definition: bt_hal_manager.h:333
Definition: bt_hal_manager.h:142
Definition: bt_hal_manager.h:368
Definition: bt_hal_manager.h:269
BTEnergyInfoCallback_t pxEnergyInfoCb
Definition: bt_hal_manager.h:627
Definition: bt_hal_manager.h:405
Definition: bt_hal_manager.h:372
BTSlaveSecurityRequestCallBack_t pxSlaveSecurityRequestCb
Definition: bt_hal_manager.h:630
Definition: bt_hal_manager.h:153
Definition: bt_hal_manager.h:387
Definition: bt_hal_manager.h:383
Definition: bt_hal_manager.h:137
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:585
#define btADDRESS_LEN
Size in byte of BT/BLE addresses.
Definition: bt_hal_manager_types.h:50
BTDutModeRecvCallback_t pxDutModeRecvCb
Definition: bt_hal_manager.h:625
Definition: bt_hal_manager.h:145
BTSspRequestCallback_t pxSspRequestCb
Definition: bt_hal_manager.h:622
Definition: bt_hal_manager.h:258
BTPropertyType_t xType
Definition: bt_hal_manager.h:277
Definition: bt_hal_manager.h:152
Definition: bt_hal_manager.h:147
Definition: bt_hal_manager.h:408
Definition: bt_hal_manager.h:376
Definition: bt_hal_manager.h:406
Definition: bt_hal_manager.h:403
BTTransport_t
Preferred physical Transport for GATT connection .
Definition: bt_hal_manager.h:107
Definition: bt_hal_manager.h:413