COMMON IO-BLE v1.0.0
Hardware abstraction layer for Bluetooth
 
Loading...
Searching...
No Matches
bt_hal_manager.h
Go to the documentation of this file.
1/*
2 * FreeRTOS BLE HAL V5.1.0
3 * Copyright (C) 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * SPDX-License-Identifier: MIT
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy of
8 * this software and associated documentation files (the "Software"), to deal in
9 * the Software without restriction, including without limitation the rights to
10 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11 * the Software, and to permit persons to whom the Software is furnished to do so,
12 * subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included in all
15 * copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 *
24 * http://aws.amazon.com/freertos
25 * http://www.FreeRTOS.org
26 */
27
40#ifndef _BT_HAL_MANAGER_H_
41#define _BT_HAL_MANAGER_H_
42
43#include <stdint.h>
44#include <stddef.h>
45
47
52#define btMAJOR_VERSION 5
53
58#define btMINOR_VERSION 1
59
64#define btPATCH_VERSION 0
65
66
72#define btSTR_HELPER( x, y, z ) # x "." # y "." # z
73#define btSTR( x, y, z ) btSTR_HELPER( x, y, z )
74
80#define btSTRING_VERSION btSTR( btMAJOR_VERSION, btMINOR_VERSION, btPATCH_VERSION )
81
85#define btBLE_ADD_BLOB_SERVICE_SUPPORTED_BIT 0x0001
86#define btBLE_ADD_BLE_DYNAMIC_PRIVACY 0x0002
87#define btBLE_BLE_CENTRAL_WHITELISTING 0x0004
93enum
94{
99};
100typedef uint8_t BTSecurityLevel_t;
106enum
107{
111 eBTAuthReqKeyPress = 0x05,
112};
113typedef uint8_t BTAuthReq_t;
119typedef enum
120{
125
130typedef enum
131{
134} BTState_t;
135
140typedef struct
141{
142 uint8_t ucPin[ 16 ];
144
149typedef enum
150{
182 eBTauthFailHciErr = 0x200
184
185
191typedef enum
192{
221 /* Properties unique to remote device */
222
287
292typedef struct
293{
295 size_t xLen;
296 void * pvVal;
298
303typedef struct
304{
305 uint8_t ucBleDevAddr[ btADDRESS_LEN ];
306 uint8_t ucC192[ btKEY_MAX_LEN ];
307 uint8_t ucR192[ btKEY_MAX_LEN ];
308 uint8_t ucC256[ btKEY_MAX_LEN ];
309 uint8_t ucR256[ btKEY_MAX_LEN ];
310 uint8_t ucSm_tk[ btKEY_MAX_LEN ];
311 uint8_t ucLe_sc_c[ btKEY_MAX_LEN ];
312 uint8_t ucLe_sc_r[ btKEY_MAX_LEN ];
314
319typedef enum
320{
325
330typedef enum
331{
336
341typedef enum
342{
348
353typedef struct
354{
355 uint8_t ucStatus;
356 uint8_t ucCtrlState;
357 uint64_t ullTxTime;
358 uint64_t ullRxTime;
359 uint64_t ullIdleTime;
360 uint64_t ullEnergyUsed;
362
367typedef struct
368{
369 int32_t lAppUid;
370 uint64_t ullTxBytes;
371 uint64_t ullRxBytes;
373
378typedef enum
379{
383
390typedef enum
391{
454
462typedef void ( * BTDeviceStateChangedCallback_t )( BTState_t xState );
463
473typedef void ( * BTDevicePropertiesCallback_t )( BTStatus_t xStatus,
474 uint32_t ulNumProperties,
475 BTProperty_t * pxProperties );
476
489 BTBdaddr_t * pxBdAddr,
490 uint32_t ulNumProperties,
491 BTProperty_t * pxProperties );
492
504typedef void (* BTPinRequestCallback_t)( BTBdaddr_t * pxRemoteBdAddr,
505 BTBdname_t * pxBdName,
506 uint32_t ulCod,
507 uint8_t ucMin16Digit );
508
509
526typedef void ( * BTSspRequestCallback_t )( BTBdaddr_t * pxRemoteBdAddr,
527 BTBdname_t * pxRemoteBdName,
528 uint32_t ulCod,
529 BTSspVariant_t xPairingVariant,
530 uint32_t ulPassKey );
531
546typedef void ( * BTPairingStateChangedCallback_t )( BTStatus_t xStatus,
547 BTBdaddr_t * pxRemoteBdAddr,
548 BTBondState_t xState,
549 BTSecurityLevel_t xSecurityLevel,
550 BTAuthFailureReason_t xReason );
551
568typedef void ( * BTEnergyInfoCallback_t )( BTActivityEnergyInfo * pxEnergyInfo,
569 BTUidTraffic_t * pxUidData );
570
580/* Receive any HCI event from controller. Must be in DUT Mode for this callback to be received */
581typedef void ( * BTDutModeRecvCallback_t )( uint16_t usOpcode,
582 uint8_t * pucBuf,
583 size_t xLen );
584
585/*
586 * This callback shall be invoked whenever the le_tx_test, le_rx_test or le_test_end is invoked
587 * The num_packets is valid only for le_test_end command */
588
597typedef void ( * BTLeTestModeCallback_t )( BTStatus_t xStatus,
598 uint16_t usNumPackets );
599
609typedef void ( * BTReadRssiCallback_t )( BTBdaddr_t * pxBda,
610 uint32_t ulRssi,
611 BTStatus_t xStatus );
612
623 BTSecurityLevel_t xSecurityLevel,
624 bool bBonding );
625
636typedef void ( * BTTxPowerCallback_t )( BTBdaddr_t * pxBda,
637 BTTransport_t xTransport,
638 uint8_t ucTxPowerValue,
639 BTStatus_t xStatus );
640
644typedef void ( * BTBondedCallback_t)( BTStatus_t xStatus,
645 BTBdaddr_t * pxRemoteBdAddr,
646 bool bIsBonded );
647
660typedef void (* BTAclStateChangedCallback_t)( BTStatus_t xStatus,
661 const BTBdaddr_t * pxRemoteBdAddr,
662 BTAclState_t xState,
663 BTTransport_t xTransport,
664 BTAclDisconnectReason_t xReason );
665
670typedef struct
671{
687
692typedef struct
693{
700 BTStatus_t ( * pxBtManagerInit )( const BTCallbacks_t * pxCallbacks );
701
709 BTStatus_t ( * pxBtManagerCleanup )( void );
710
719 BTStatus_t ( * pxEnable )( uint8_t ucGuestMode );
720
728 BTStatus_t ( * pxDisable )( void );
729
739 BTStatus_t ( * pxGetAllDeviceProperties )( void );
740
752 BTStatus_t ( * pxGetDeviceProperty )( BTPropertyType_t xType );
753
763 BTStatus_t ( * pxSetDeviceProperty )( const BTProperty_t * pxProperty );
764
775 BTStatus_t ( * pxGetAllRemoteDeviceProperties )( BTBdaddr_t * pxRemoteAddr );
776
788 BTStatus_t ( * pxGetRemoteDeviceProperty )( BTBdaddr_t * pxRemoteAddr,
789 BTPropertyType_t xType );
790
800 BTStatus_t ( * pxSetRemoteDeviceProperty )( BTBdaddr_t * pxRemoteAddr,
801 const BTProperty_t * pxProperty );
802
814 BTStatus_t ( * pxPair )( const BTBdaddr_t * pxBdAddr,
815 BTTransport_t xTransport,
816 bool bCreateBond );
817
828 BTStatus_t ( * pxCreateBondOutOfBand )( const BTBdaddr_t * pxBdAddr,
829 BTTransport_t xTransport,
830 const BTOutOfBandData_t * pxOobData );
831
842 BTStatus_t ( * pxSendSlaveSecurityRequest )( const BTBdaddr_t * pxBdAddr,
843 BTSecurityLevel_t xSecurityLevel,
844 bool bBonding );
845
846 /* TODO:Handle out of band pairing in better way */
847
856 BTStatus_t ( * pxCancelBond )( const BTBdaddr_t * pxBdAddr );
857
867 BTStatus_t ( * pxRemoveBond )( const BTBdaddr_t * pxBdAddr );
878 BTStatus_t ( * pxGetConnectionState )( const BTBdaddr_t * pxBdAddr,
879 bool * bConnectionState );
880
890 BTStatus_t ( * pxPinReply )( const BTBdaddr_t * pxBdAddr,
891 uint8_t ucAccept,
892 uint8_t ucPinLen,
893 BTPinCode_t * pxPinCode );
894
906 BTStatus_t ( * pxSspReply )( const BTBdaddr_t * pxBdAddr,
907 BTSspVariant_t xVariant,
908 uint8_t ucAccept,
909 uint32_t ulPasskey );
910
919 BTStatus_t ( * pxReadEnergyInfo )( void );
920
927 BTStatus_t ( * pxDutModeConfigure )( bool bEnable );
928
939 BTStatus_t ( * pxDutModeSend )( uint16_t usOpcode,
940 uint8_t * pucBuf,
941 size_t xLen );
942
954 BTStatus_t ( * pxLeTestMode )( uint16_t usOpcode,
955 uint8_t * pucBuf,
956 size_t xLen );
957
964 BTStatus_t ( * pxConfigHCISnoopLog )( bool bEnable );
965
971 BTStatus_t ( * pxConfigClear )( void );
972
981 BTStatus_t ( * pxReadRssi )( const BTBdaddr_t * pxBdAddr );
982
992 BTStatus_t ( * pxGetTxpower )( const BTBdaddr_t * pxBdAddr,
993 BTTransport_t xTransport );
994
1001 const void * ( *pxGetClassicAdapter )( void );
1002
1008 const void * ( *pxGetLeAdapter )( void );
1009
1014 uint32_t ( * pxGetLastError )( void );
1015
1023 BTStatus_t ( * pxGetStackFeaturesSupport )( uint32_t * pulFeatureMask );
1025
1026
1031
1032#endif /* _BT_HAL_MANAGER_H_ */
const BTInterface_t * BTGetBluetoothInterface(void)
uint8_t BTSecurityLevel_t
Definition: bt_hal_manager.h:100
void(* BTBondedCallback_t)(BTStatus_t xStatus, BTBdaddr_t *pxRemoteBdAddr, bool bIsBonded)
Definition: bt_hal_manager.h:644
uint8_t BTAuthReq_t
Definition: bt_hal_manager.h:113
This BT HAL provides the interfaces to control the Bluetooth power states ,local device control and d...
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:504
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:660
void(* BTReadRssiCallback_t)(BTBdaddr_t *pxBda, uint32_t ulRssi, BTStatus_t xStatus)
Read RSSI Callback. Invoked on pxReadRssi.
Definition: bt_hal_manager.h:609
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:581
void(* BTLeTestModeCallback_t)(BTStatus_t xStatus, uint16_t usNumPackets)
LE Test mode callbacks. Invoked on pxLeTestMode.
Definition: bt_hal_manager.h:597
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:622
void(* BTDevicePropertiesCallback_t)(BTStatus_t xStatus, uint32_t ulNumProperties, BTProperty_t *pxProperties)
GET/SET local device Properties callback.
Definition: bt_hal_manager.h:473
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:526
void(* BTDeviceStateChangedCallback_t)(BTState_t xState)
Bluetooth state change Callback. Invoked on pxEnable/pxDisable.
Definition: bt_hal_manager.h:462
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:636
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:546
void(* BTEnergyInfoCallback_t)(BTActivityEnergyInfo *pxEnergyInfo, BTUidTraffic_t *pxUidData)
Callback invoked on pxReadEnergyInfo. Invoked on pxReadEnergyInfo.
Definition: bt_hal_manager.h:568
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:488
#define btADDRESS_LEN
Size in byte of BT/BLE addresses.
Definition: bt_hal_manager_types.h:53
#define btKEY_MAX_LEN
Maximum length of Random key.
Definition: bt_hal_manager_types.h:59
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:111
BTSspVariant_t
Bluetooth SSP Bonding Variant.
Definition: bt_hal_manager.h:342
BTAuthFailureReason_t
Authentication failure reasons.
Definition: bt_hal_manager.h:150
BTBondState_t
Bluetooth Bond state.
Definition: bt_hal_manager.h:331
BTTransport_t
Preferred physical Transport for GATT connection .
Definition: bt_hal_manager.h:120
BTPropertyType_t
Bluetooth local device and Remote Device property types. Properties common to both adapter and remote...
Definition: bt_hal_manager.h:192
BTState_t
Bluetooth power State.
Definition: bt_hal_manager.h:131
BTDeviceType_t
Bluetooth Device Type.
Definition: bt_hal_manager.h:320
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:391
BTAclState_t
Bluetooth ACL connection state.
Definition: bt_hal_manager.h:379
@ eBTsspVariantPasskeyEntry
Definition: bt_hal_manager.h:344
@ eBTsspVariantPasskeyNotification
Definition: bt_hal_manager.h:346
@ eBTsspVariantPasskeyConfirmation
Definition: bt_hal_manager.h:343
@ eBTsspVariantConsent
Definition: bt_hal_manager.h:345
@ eBTauthFailConnTimeout
Definition: bt_hal_manager.h:163
@ eBTauthFailSmpOobFail
Definition: bt_hal_manager.h:161
@ eBTauthFailUnspecified
Definition: bt_hal_manager.h:171
@ eBTauthFailSmpPairNotSupport
Definition: bt_hal_manager.h:165
@ eBTauthFailSmpEncKeySize
Definition: bt_hal_manager.h:173
@ eBTauthFailSmpTimeout
Definition: bt_hal_manager.h:158
@ eBTauthFailPeerUser
Definition: bt_hal_manager.h:170
@ eBTauthFailSmpBrPairInProg
Definition: bt_hal_manager.h:179
@ eBTauthFailSmpUnknown
Definition: bt_hal_manager.h:167
@ eBTauthFailSmpDhkeyCheckFail
Definition: bt_hal_manager.h:177
@ eBTauthFailSmpFail
Definition: bt_hal_manager.h:162
@ eBTauthFailSmpRepeatedAttempt
Definition: bt_hal_manager.h:175
@ eBTauthFailUnitKey
Definition: bt_hal_manager.h:155
@ eBTauthFailLmpRespTimeout
Definition: bt_hal_manager.h:152
@ eBTauthFailInsuffSecurity
Definition: bt_hal_manager.h:169
@ eBTauthFailEncrypMode
Definition: bt_hal_manager.h:154
@ eBTauthFailSmpPasskeyFail
Definition: bt_hal_manager.h:160
@ eBTauthFailSmpXtransDeriveNotAllow
Definition: bt_hal_manager.h:180
@ eBTauthFailSmp
Definition: bt_hal_manager.h:164
@ eBTauthFailSmpNumericComparFail
Definition: bt_hal_manager.h:178
@ eBTauthFailHciErr
Definition: bt_hal_manager.h:182
@ eBTauthFailHostRejectSecurity
Definition: bt_hal_manager.h:168
@ eBTauthFailStackErr
Definition: bt_hal_manager.h:181
@ eBTauthFailPageTimeout
Definition: bt_hal_manager.h:159
@ eBTauthFailSmpInvalidParameters
Definition: bt_hal_manager.h:176
@ eBTauthFailSmpCmdNotSupport
Definition: bt_hal_manager.h:174
@ eBTauthFailSmpUnknownIo
Definition: bt_hal_manager.h:166
@ eBTauthFailSmpCfrmValue
Definition: bt_hal_manager.h:156
@ eBTauthFailSmpAuthReqFail
Definition: bt_hal_manager.h:172
@ eBTauthFailSmpEnc
Definition: bt_hal_manager.h:157
@ eBTauthSuccess
Definition: bt_hal_manager.h:151
@ eBTauthFailKeyMissing
Definition: bt_hal_manager.h:153
@ eBTbondStateBonding
Definition: bt_hal_manager.h:333
@ eBTbondStateNone
Definition: bt_hal_manager.h:332
@ eBTbondStateBonded
Definition: bt_hal_manager.h:334
@ BTTransportAuto
Definition: bt_hal_manager.h:121
@ BTTransportLe
Definition: bt_hal_manager.h:123
@ BTTransportBredr
Definition: bt_hal_manager.h:122
@ eBTpropertyBondable
Definition: bt_hal_manager.h:256
@ eBTpropertyAdapterBondedDevices
Definition: bt_hal_manager.h:220
@ eBTpropertyLocalMTUSize
Definition: bt_hal_manager.h:249
@ eBTpropertyRemoteFriendlyName
Definition: bt_hal_manager.h:228
@ eBTpropertyBdaddr
Definition: bt_hal_manager.h:205
@ eBTpropertyIO
Definition: bt_hal_manager.h:267
@ eBTpropertyBdname
Definition: bt_hal_manager.h:198
@ eBTpropertyConnectable
Definition: bt_hal_manager.h:274
@ eBTpropertyRemoteVersionInfo
Definition: bt_hal_manager.h:242
@ eBTpropertySecureConnectionOnly
Definition: bt_hal_manager.h:285
@ eBTpropertyTypeOfDevice
Definition: bt_hal_manager.h:212
@ eBTpropertyRemoteRssi
Definition: bt_hal_manager.h:235
@ eBTAuthReqBonding
Definition: bt_hal_manager.h:108
@ eBTAuthReqSecureConnect
Definition: bt_hal_manager.h:110
@ eBTAuthReqMitm
Definition: bt_hal_manager.h:109
@ eBTstateOn
Definition: bt_hal_manager.h:133
@ eBTstateOff
Definition: bt_hal_manager.h:132
@ eBTdeviceDevtypeBle
Definition: bt_hal_manager.h:322
@ eBTdeviceDevtypeDual
Definition: bt_hal_manager.h:323
@ eBTdeviceDevtypeBredr
Definition: bt_hal_manager.h:321
@ eBTaclInqRspDataTooLarge
Definition: bt_hal_manager.h:443
@ eBTaclHostRejectSecurity
Definition: bt_hal_manager.h:406
@ eBTaclInsuffcientSecurity
Definition: bt_hal_manager.h:438
@ eBTaclMaxNumOfConnections
Definition: bt_hal_manager.h:401
@ eBTaclPeerPowerOff
Definition: bt_hal_manager.h:413
@ eBTaclIllegalParameterFmt
Definition: bt_hal_manager.h:410
@ eBTaclUnspecified
Definition: bt_hal_manager.h:423
@ eBTaclInvalidLmpParam
Definition: bt_hal_manager.h:422
@ eBTaclHostUser
Definition: bt_hal_manager.h:414
@ eBTaclUnsupportedRemFeature
Definition: bt_hal_manager.h:418
@ eBTaclHwFailure
Definition: bt_hal_manager.h:395
@ eBTaclEncryModeNotAcceptable
Definition: bt_hal_manager.h:429
@ eBTaclMaxNumOfScos
Definition: bt_hal_manager.h:402
@ eBTaclLmpErrTransCollision
Definition: bt_hal_manager.h:427
@ eBTaclHostTimeout
Definition: bt_hal_manager.h:408
@ eBTaclRoleSwitchPending
Definition: bt_hal_manager.h:440
@ eBTaclQosUnacceptableParam
Definition: bt_hal_manager.h:435
@ eBTaclUnacceptConnInterval
Definition: bt_hal_manager.h:448
@ eBTaclMemFull
Definition: bt_hal_manager.h:399
@ eBTaclRoleChangeNotAllowed
Definition: bt_hal_manager.h:425
@ eBTaclUnitKeyUsed
Definition: bt_hal_manager.h:430
@ eBTaclControllerBusy
Definition: bt_hal_manager.h:447
@ eBTaclScoAirRejected
Definition: bt_hal_manager.h:421
@ eBTaclConnectionTimeout
Definition: bt_hal_manager.h:400
@ eBTaclUnsupportedValue
Definition: bt_hal_manager.h:409
@ eBTaclConnectionExists
Definition: bt_hal_manager.h:403
@ eBTaclIllegalCommand
Definition: bt_hal_manager.h:393
@ eBTaclQosNotSupported
Definition: bt_hal_manager.h:431
@ eBTaclConnToutDueToMicFailure
Definition: bt_hal_manager.h:450
@ eBTaclHostRejectDevice
Definition: bt_hal_manager.h:407
@ eBTaclCommandDisallowed
Definition: bt_hal_manager.h:404
@ eBTaclChanClassifNotSupported
Definition: bt_hal_manager.h:437
@ eBTaclLmpResponseTimeout
Definition: bt_hal_manager.h:426
@ eBTaclParamOutOfRange
Definition: bt_hal_manager.h:439
@ eBTaclUnknownLmpPdu
Definition: bt_hal_manager.h:417
@ eBTaclHostRejectResource
Definition: bt_hal_manager.h:405
@ eBTaclReservedSlotViolation
Definition: bt_hal_manager.h:441
@ eBTaclKeyMissing
Definition: bt_hal_manager.h:398
@ eBTaclPeerUser
Definition: bt_hal_manager.h:411
@ eBTaclRepeatedAttempts
Definition: bt_hal_manager.h:415
@ eBTaclAuthFailure
Definition: bt_hal_manager.h:397
@ eBTaclInstantPassed
Definition: bt_hal_manager.h:432
@ eBTaclConnFailedEstablishment
Definition: bt_hal_manager.h:451
@ eBTaclPairingNotAllowed
Definition: bt_hal_manager.h:416
@ eBTaclDiffTransactionCollision
Definition: bt_hal_manager.h:434
@ eBTaclLmpPduNotAllowed
Definition: bt_hal_manager.h:428
@ eBTaclScoIntervalRejected
Definition: bt_hal_manager.h:420
@ eBTaclSuccess
Definition: bt_hal_manager.h:392
@ eBTaclQosRejected
Definition: bt_hal_manager.h:436
@ eBTaclScoOffsetRejected
Definition: bt_hal_manager.h:419
@ eBTaclSimplePairingNotSupported
Definition: bt_hal_manager.h:444
@ eBTaclMacConnectionFailed
Definition: bt_hal_manager.h:452
@ eBTaclNoConnection
Definition: bt_hal_manager.h:394
@ eBTaclPeerLowResources
Definition: bt_hal_manager.h:412
@ eBTaclRejNoSuitableChannel
Definition: bt_hal_manager.h:446
@ eBTaclUnsupportedLmpFeature
Definition: bt_hal_manager.h:424
@ eBTaclHostBusyPairing
Definition: bt_hal_manager.h:445
@ eBTaclRoleSwitchFailed
Definition: bt_hal_manager.h:442
@ eBTaclDirectedAdvertisingTimeout
Definition: bt_hal_manager.h:449
@ eBTaclPageTimeout
Definition: bt_hal_manager.h:396
@ eBTaclPairingWithUnitKeyNotSupported
Definition: bt_hal_manager.h:433
@ eBTSecLevelAuthenticatedPairing
Definition: bt_hal_manager.h:97
@ eBTSecLevelUnauthenticatedPairing
Definition: bt_hal_manager.h:96
@ eBTSecLevelNoSecurity
Definition: bt_hal_manager.h:95
@ eBTSecLevelSecureConnect
Definition: bt_hal_manager.h:98
@ eBTaclDisconnected
Definition: bt_hal_manager.h:381
@ eBTaclConnected
Definition: bt_hal_manager.h:380
Energy info.
Definition: bt_hal_manager.h:354
uint64_t ullRxTime
Definition: bt_hal_manager.h:358
uint64_t ullTxTime
Definition: bt_hal_manager.h:357
uint8_t ucStatus
Definition: bt_hal_manager.h:355
uint8_t ucCtrlState
Definition: bt_hal_manager.h:356
uint64_t ullIdleTime
Definition: bt_hal_manager.h:359
uint64_t ullEnergyUsed
Definition: bt_hal_manager.h:360
BT/BLE address.
Definition: bt_hal_manager_types.h:77
Device Name.
Definition: bt_hal_manager_types.h:86
Bluetooth DM callback structure.
Definition: bt_hal_manager.h:671
BTPinRequestCallback_t pxPinRequestCb
Definition: bt_hal_manager.h:675
BTEnergyInfoCallback_t pxEnergyInfoCb
Definition: bt_hal_manager.h:681
BTPairingStateChangedCallback_t pxPairingStateChangedCb
Definition: bt_hal_manager.h:677
BTDevicePropertiesCallback_t pxAdapterPropertiesCb
Definition: bt_hal_manager.h:673
BTReadRssiCallback_t pxReadRssiCb
Definition: bt_hal_manager.h:682
BTAclStateChangedCallback_t pxAclStateChangedCb
Definition: bt_hal_manager.h:685
BTLeTestModeCallback_t pxleTestModeCb
Definition: bt_hal_manager.h:680
BTSspRequestCallback_t pxSspRequestCb
Definition: bt_hal_manager.h:676
BTDutModeRecvCallback_t pxDutModeRecvCb
Definition: bt_hal_manager.h:679
BTSlaveSecurityRequestCallBack_t pxSlaveSecurityRequestCb
Definition: bt_hal_manager.h:684
BTDeviceStateChangedCallback_t pxDeviceStateChangedCb
Definition: bt_hal_manager.h:672
BTBondedCallback_t pxBondedCb
Definition: bt_hal_manager.h:678
BTRemoteDevicePropertiesCallback_t pxRemoteDevicePropertiesCb
Definition: bt_hal_manager.h:674
BTTxPowerCallback_t pxTxPowerCb
Definition: bt_hal_manager.h:683
Represents the standard SAL device management interface.
Definition: bt_hal_manager.h:693
Bluetooth Out Of Band data for bonding.
Definition: bt_hal_manager.h:304
Bluetooth PinKey Code, Valid only for BT legacy.
Definition: bt_hal_manager.h:141
Bluetooth Adapter Property data structure.
Definition: bt_hal_manager.h:293
void * pvVal
Definition: bt_hal_manager.h:296
size_t xLen
Definition: bt_hal_manager.h:295
BTPropertyType_t xType
Definition: bt_hal_manager.h:294
UUID traffic info.
Definition: bt_hal_manager.h:368
int32_t lAppUid
Definition: bt_hal_manager.h:369
uint64_t ullRxBytes
Definition: bt_hal_manager.h:371
uint64_t ullTxBytes
Definition: bt_hal_manager.h:370