FreeRTOS: BLE
BLE
Return to main page ↑
bt_hal_manager.h
Go to the documentation of this file.
1 /*
2  * FreeRTOS BLE HAL V5.0.0
3  * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
6  * this software and associated documentation files (the "Software"), to deal in
7  * the Software without restriction, including without limitation the rights to
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9  * the Software, and to permit persons to whom the Software is furnished to do so,
10  * subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  * http://aws.amazon.com/freertos
23  * http://www.FreeRTOS.org
24  */
25 
40 #ifndef _BT_HAL_MANAGER_H_
41 #define _BT_HAL_MANAGER_H_
42 
43 #include <stdint.h>
44 
45 #include "bt_hal_manager_types.h"
46 
50 #define btMAJOR_VERSION 5
51 
55 #define btMINOR_VERSION 0
56 
60 #define btPATCH_VERSION 1
61 
65 #define btSTR_HELPER( x, y, z ) # x "." # y "." # z
66 #define btSTR( x, y, z ) btSTR_HELPER( x, y, z )
67 
71 #define btSTRING_VERSION btSTR( btMAJOR_VERSION, btMINOR_VERSION, btPATCH_VERSION )
72 
76 #define btBLE_ADD_BLOB_SERVICE_SUPPORTED_BIT 0x0001
77 #define btBLE_ADD_BLE_DYNAMIC_PRIVACY 0x0002
78 #define btBLE_BLE_CENTRAL_WHITELISTING 0x0004
83 enum
84 {
89 };
90 typedef uint8_t BTSecurityLevel_t;
91 
95 enum
96 {
98  eBTAuthReqMitm = 0x03,
100  eBTAuthReqKeyPress = 0x05,
101 };
102 typedef uint8_t BTAuthReq_t;
103 
107 typedef enum
108 {
112 } BTTransport_t;
113 
117 typedef enum
118 {
121 } BTState_t;
122 
126 typedef struct
127 {
128  uint8_t ucPin[ 16 ];
129 } BTPinCode_t;
130 
134 typedef enum
135 {
158 
159 
164 typedef enum
165 {
194  /* Properties unique to remote device */
195 
260 
264 typedef struct
265 {
267  size_t xLen;
268  void * pvVal;
269 } BTProperty_t;
270 
274 typedef struct
275 {
276  uint8_t ucBleDevAddr[ btADDRESS_LEN ];
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 ];
285 
289 typedef enum
290 {
295 
297 typedef enum
298 {
299  eBTbondStateNone,
300  eBTbondStateBonding,
301  eBTbondStateBonded,
302 } BTBondState_t;
303 
307 typedef enum
308 {
314 
318 typedef struct
319 {
320  uint8_t ucStatus;
321  uint8_t ucCtrlState;
322  uint64_t ullTxTime;
323  uint64_t ullRxTime;
324  uint64_t ullIdleTime;
325  uint64_t ullEnergyUsed;
327 
331 typedef struct
332 {
333  int32_t lAppUid;
334  uint64_t ullTxBytes;
335  uint64_t ullRxBytes;
337 
343 typedef void ( * BTDeviceStateChangedCallback_t )( BTState_t xState );
344 
352 typedef void ( * BTDevicePropertiesCallback_t )( BTStatus_t xStatus,
353  uint32_t ulNumProperties,
354  BTProperty_t * pxProperties );
355 
365 typedef void ( * BTRemoteDevicePropertiesCallback_t )( BTStatus_t xStatus,
366  BTBdaddr_t * pxBdAddr,
367  uint32_t ulNumProperties,
368  BTProperty_t * pxProperties );
369 
379 typedef void (* BTPinRequestCallback_t)( BTBdaddr_t * pxRemoteBdAddr,
380  BTBdname_t * pxBdName,
381  uint32_t ulCod,
382  uint8_t ucMin16Digit );
383 
384 
399 typedef void ( * BTSspRequestCallback_t )( BTBdaddr_t * pxRemoteBdAddr,
400  BTBdname_t * pxRemoteBdName,
401  uint32_t ulCod,
402  BTSspVariant_t xPairingVariant,
403  uint32_t ulPassKey );
404 
417 typedef void ( * BTPairingStateChangedCallback_t )( BTStatus_t xStatus,
418  BTBdaddr_t * pxRemoteBdAddr,
419  BTBondState_t xState,
420  BTSecurityLevel_t xSecurityLevel,
421  BTAuthFailureReason_t xReason );
422 
437 typedef void ( * BTEnergyInfoCallback_t )( BTActivityEnergyInfo * pxEnergyInfo,
438  BTUidTraffic_t * pxUidData );
439 
447 /* Receive any HCI event from controller. Must be in DUT Mode for this callback to be received */
448 typedef void ( * BTDutModeRecvCallback_t )( uint16_t usOpcode,
449  uint8_t * pucBuf,
450  size_t xLen );
451 
452 /*
453  * This callback shall be invoked whenever the le_tx_test, le_rx_test or le_test_end is invoked
454  * The num_packets is valid only for le_test_end command */
455 
462 typedef void ( * BTLeTestModeCallback_t )( BTStatus_t xStatus,
463  uint16_t usNumPackets );
464 
472 typedef void ( * BTReadRssiCallback_t )( BTBdaddr_t * pxBda,
473  uint32_t ulRssi,
474  BTStatus_t xStatus );
475 
483 typedef void ( * BTSlaveSecurityRequestCallBack_t )( BTBdaddr_t * pxBda,
484  BTSecurityLevel_t xSecurityLevel,
485  bool bBonding );
486 
495 typedef void ( * BTTxPowerCallback_t )( BTBdaddr_t * pxBda,
496  BTTransport_t xTransport,
497  uint8_t ucTxPowerValue,
498  BTStatus_t xStatus );
499 
508 typedef void ( * BTBondedCallback_t)( BTStatus_t xStatus,
509  BTBdaddr_t * pxRemoteBdAddr,
510  bool bIsBonded );
511 
515 typedef struct
516 {
519  BTDevicePropertiesCallback_t pxAdapterPropertiesCb;
520  BTRemoteDevicePropertiesCallback_t pxRemoteDevicePropertiesCb;
521  BTPinRequestCallback_t pxPinRequestCb;
522  BTSspRequestCallback_t pxSspRequestCb;
523  BTPairingStateChangedCallback_t pxPairingStateChangedCb;
524  BTBondedCallback_t pxBondedCb;
526  BTLeTestModeCallback_t pxleTestModeCb;
527  BTEnergyInfoCallback_t pxEnergyInfoCb;
528  BTReadRssiCallback_t pxReadRssiCb;
529  BTTxPowerCallback_t pxTxPowerCb;
530  BTSlaveSecurityRequestCallBack_t pxSlaveSecurityRequestCb;
531 } BTCallbacks_t;
532 
536 typedef struct
537 {
544  BTStatus_t ( * pxBtManagerInit )( const BTCallbacks_t * pxCallbacks );
545 
553  BTStatus_t ( * pxBtManagerCleanup )( void );
554 
563  BTStatus_t ( * pxEnable )( uint8_t ucGuestMode );
564 
572  BTStatus_t ( * pxDisable )();
573 
583  BTStatus_t ( * pxGetAllDeviceProperties )();
584 
596  BTStatus_t ( * pxGetDeviceProperty )( BTPropertyType_t xType );
597 
607  BTStatus_t ( * pxSetDeviceProperty )( const BTProperty_t * pxProperty );
608 
619  BTStatus_t ( * pxGetAllRemoteDeviceProperties )( BTBdaddr_t * pxRemoteAddr );
620 
632  BTStatus_t ( * pxGetRemoteDeviceProperty )( BTBdaddr_t * pxRemoteAddr,
633  BTPropertyType_t xType );
634 
644  BTStatus_t ( * pxSetRemoteDeviceProperty )( BTBdaddr_t * pxRemoteAddr,
645  const BTProperty_t * pxProperty );
646 
658  BTStatus_t ( * pxPair )( const BTBdaddr_t * pxBdAddr,
659  BTTransport_t xTransport,
660  bool bCreateBond );
661 
672  BTStatus_t ( * pxCreateBondOutOfBand )( const BTBdaddr_t * pxBdAddr,
673  BTTransport_t xTransport,
674  const BTOutOfBandData_t * pxOobData );
675 
686  BTStatus_t ( * pxSendSlaveSecurityRequest )( const BTBdaddr_t * pxBdAddr,
687  BTSecurityLevel_t xSecurityLevel,
688  bool bBonding );
689 
690  /* TODO:Handle out of band pairing in better way */
691 
700  BTStatus_t ( * pxCancelBond )( const BTBdaddr_t * pxBdAddr );
701 
711  BTStatus_t ( * pxRemoveBond )( const BTBdaddr_t * pxBdAddr );
722  BTStatus_t ( * pxGetConnectionState )( const BTBdaddr_t * pxBdAddr,
723  bool * bConnectionState );
724 
734  BTStatus_t ( * pxPinReply )( const BTBdaddr_t * pxBdAddr,
735  uint8_t ucAccept,
736  uint8_t ucPinLen,
737  BTPinCode_t * pxPinCode );
738 
750  BTStatus_t ( * pxSspReply )( const BTBdaddr_t * pxBdAddr,
751  BTSspVariant_t xVariant,
752  uint8_t ucAccept,
753  uint32_t ulPasskey );
754 
763  BTStatus_t ( * pxReadEnergyInfo )();
764 
771  BTStatus_t ( * pxDutModeConfigure )( bool bEnable );
772 
783  BTStatus_t ( * pxDutModeSend )( uint16_t usOpcode,
784  uint8_t * pucBuf,
785  size_t xLen );
786 
798  BTStatus_t ( * pxLeTestMode )( uint16_t usOpcode,
799  uint8_t * pucBuf,
800  size_t xLen );
801 
808  BTStatus_t ( * pxConfigHCISnoopLog )( bool bEnable );
809 
815  BTStatus_t ( * pxConfigClear )();
816 
825  BTStatus_t ( * pxReadRssi )( const BTBdaddr_t * pxBdAddr );
826 
836  BTStatus_t ( * pxGetTxpower )( const BTBdaddr_t * pxBdAddr,
837  BTTransport_t xTransport );
838 
845  const void * ( *pxGetClassicAdapter )( );
846 
852  const void * ( *pxGetLeAdapter )( );
853 
858  uint32_t ( * pxGetLastError )();
859 
867  BTStatus_t ( * pxGetStackFeaturesSupport )( uint32_t * pulFeatureMask );
868 } BTInterface_t;
869 
870 const BTInterface_t * BTGetBluetoothInterface();
871 
872 #endif /* _BT_HAL_MANAGER_H_ */
873 
eBTSecLevelSecureConnect
@ eBTSecLevelSecureConnect
Definition: bt_hal_manager.h:88
BTPropertyType_t
BTPropertyType_t
Bluetooth local device and Remote Device property types. Properties common to both adapter and remote...
Definition: bt_hal_manager.h:165
eBTauthFailLmpRespTimeout
@ eBTauthFailLmpRespTimeout
Definition: bt_hal_manager.h:137
BTPinCode_t
Bluetooth PinKey Code, Valid only for BT legacy.
Definition: bt_hal_manager.h:127
BTRemoteDevicePropertiesCallback_t
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
@ eBTstateOff
Definition: bt_hal_manager.h:119
eBTauthFailSmp
@ eBTauthFailSmp
Definition: bt_hal_manager.h:149
eBTauthFailPageTimeout
@ eBTauthFailPageTimeout
Definition: bt_hal_manager.h:144
eBTpropertySecureConnectionOnly
@ eBTpropertySecureConnectionOnly
Definition: bt_hal_manager.h:258
eBTpropertyLocalMTUSize
@ eBTpropertyLocalMTUSize
Definition: bt_hal_manager.h:222
eBTpropertyIO
@ eBTpropertyIO
Definition: bt_hal_manager.h:240
eBTsspVariantConsent
@ eBTsspVariantConsent
Definition: bt_hal_manager.h:311
eBTauthFailPeerUser
@ eBTauthFailPeerUser
Definition: bt_hal_manager.h:155
BTBondedCallback_t
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
BTActivityEnergyInfo::ucCtrlState
uint8_t ucCtrlState
Definition: bt_hal_manager.h:321
eBTpropertyBdname
@ eBTpropertyBdname
Definition: bt_hal_manager.h:171
BTBondState_t
BTBondState_t
Definition: bt_hal_manager.h:298
eBTSecLevelAuthenticatedPairing
@ eBTSecLevelAuthenticatedPairing
Definition: bt_hal_manager.h:87
eBTpropertyTypeOfDevice
@ eBTpropertyTypeOfDevice
Definition: bt_hal_manager.h:185
BTTxPowerCallback_t
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
@ eBTsspVariantPasskeyEntry
Definition: bt_hal_manager.h:310
eBTsspVariantPasskeyNotification
@ eBTsspVariantPasskeyNotification
Definition: bt_hal_manager.h:312
BTLeTestModeCallback_t
void(* BTLeTestModeCallback_t)(BTStatus_t xStatus, uint16_t usNumPackets)
LE Test mode callbacks. Invoked on pxLeTestMode.
Definition: bt_hal_manager.h:462
BTStatus_t
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:98
eBTauthFailKeyMissing
@ eBTauthFailKeyMissing
Definition: bt_hal_manager.h:138
eBTauthFailSmpCfrmValue
@ eBTauthFailSmpCfrmValue
Definition: bt_hal_manager.h:141
eBTdeviceDevtypeBle
@ eBTdeviceDevtypeBle
Definition: bt_hal_manager.h:292
eBTpropertyRemoteRssi
@ eBTpropertyRemoteRssi
Definition: bt_hal_manager.h:208
BTActivityEnergyInfo::ullTxTime
uint64_t ullTxTime
Definition: bt_hal_manager.h:322
BTSspRequestCallback_t
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
BTReadRssiCallback_t
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
@ eBTSecLevelUnauthenticatedPairing
Definition: bt_hal_manager.h:86
eBTpropertyRemoteVersionInfo
@ eBTpropertyRemoteVersionInfo
Definition: bt_hal_manager.h:215
eBTpropertyConnectable
@ eBTpropertyConnectable
Definition: bt_hal_manager.h:247
eBTauthFailConnTimeout
@ eBTauthFailConnTimeout
Definition: bt_hal_manager.h:148
eBTAuthReqMitm
@ eBTAuthReqMitm
Definition: bt_hal_manager.h:98
eBTpropertyAdapterBondedDevices
@ eBTpropertyAdapterBondedDevices
Definition: bt_hal_manager.h:193
btADDRESS_LEN
#define btADDRESS_LEN
Size in byte of BT/BLE addresses.
Definition: bt_hal_manager_types.h:50
eBTauthFailUnitKey
@ eBTauthFailUnitKey
Definition: bt_hal_manager.h:140
BTActivityEnergyInfo
Energy info.
Definition: bt_hal_manager.h:319
BTSlaveSecurityRequestCallBack_t
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
BTDutModeRecvCallback_t
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
@ eBTdeviceDevtypeBredr
Definition: bt_hal_manager.h:291
eBTAuthReqSecureConnect
@ eBTAuthReqSecureConnect
Definition: bt_hal_manager.h:99
BTProperty_t
Bluetooth Adapter Property data structure.
Definition: bt_hal_manager.h:265
BTProperty_t::xLen
size_t xLen
Definition: bt_hal_manager.h:267
eBTSecLevelNoSecurity
@ eBTSecLevelNoSecurity
Definition: bt_hal_manager.h:85
eBTauthSuccess
@ eBTauthSuccess
Definition: bt_hal_manager.h:136
BTTransportLe
@ BTTransportLe
Definition: bt_hal_manager.h:111
bt_hal_manager_types.h
BTActivityEnergyInfo::ullRxTime
uint64_t ullRxTime
Definition: bt_hal_manager.h:323
eBTauthFailSmpPasskeyFail
@ eBTauthFailSmpPasskeyFail
Definition: bt_hal_manager.h:145
BTCallbacks_t
Bluetooth DM callback structure.
Definition: bt_hal_manager.h:516
BTUidTraffic_t
UUID traffic info.
Definition: bt_hal_manager.h:332
eBTauthFailUnspecified
@ eBTauthFailUnspecified
Definition: bt_hal_manager.h:156
BTPairingStateChangedCallback_t
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
@ eBTauthFailSmpFail
Definition: bt_hal_manager.h:147
BTTransport_t
BTTransport_t
Preferred physical Transport for GATT connection .
Definition: bt_hal_manager.h:108
BTAuthFailureReason_t
BTAuthFailureReason_t
Authentication failure reasons.
Definition: bt_hal_manager.h:135
BTCallbacks_t::pxDeviceStateChangedCb
BTDeviceStateChangedCallback_t pxDeviceStateChangedCb
Definition: bt_hal_manager.h:518
BTDevicePropertiesCallback_t
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
@ eBTauthFailSmpTimeout
Definition: bt_hal_manager.h:143
BTSspVariant_t
BTSspVariant_t
Bluetooth SSP Bonding Variant.
Definition: bt_hal_manager.h:308
eBTsspVariantPasskeyConfirmation
@ eBTsspVariantPasskeyConfirmation
Definition: bt_hal_manager.h:309
eBTAuthReqBonding
@ eBTAuthReqBonding
Definition: bt_hal_manager.h:97
eBTpropertyBondable
@ eBTpropertyBondable
Definition: bt_hal_manager.h:229
BTCallbacks_t::pxDutModeRecvCb
BTDutModeRecvCallback_t pxDutModeRecvCb
Definition: bt_hal_manager.h:525
BTBdaddr_t
BT/BLE address.
Definition: bt_hal_manager_types.h:67
BTDeviceType_t
BTDeviceType_t
Bluetooth Device Type.
Definition: bt_hal_manager.h:290
eBTauthFailSmpUnknownIo
@ eBTauthFailSmpUnknownIo
Definition: bt_hal_manager.h:151
eBTstateOn
@ eBTstateOn
Definition: bt_hal_manager.h:120
BTTransportAuto
@ BTTransportAuto
Definition: bt_hal_manager.h:109
eBTauthFailSmpOobFail
@ eBTauthFailSmpOobFail
Definition: bt_hal_manager.h:146
BTState_t
BTState_t
Bluetooth power State.
Definition: bt_hal_manager.h:118
eBTpropertyRemoteFriendlyName
@ eBTpropertyRemoteFriendlyName
Definition: bt_hal_manager.h:201
eBTauthFailSmpEnc
@ eBTauthFailSmpEnc
Definition: bt_hal_manager.h:142
BTActivityEnergyInfo::ullIdleTime
uint64_t ullIdleTime
Definition: bt_hal_manager.h:324
eBTpropertyBdaddr
@ eBTpropertyBdaddr
Definition: bt_hal_manager.h:178
BTBdname_t
Device Name.
Definition: bt_hal_manager_types.h:75
eBTauthFailHostRejectSecurity
@ eBTauthFailHostRejectSecurity
Definition: bt_hal_manager.h:153
eBTauthFailInsuffSecurity
@ eBTauthFailInsuffSecurity
Definition: bt_hal_manager.h:154
eBTdeviceDevtypeDual
@ eBTdeviceDevtypeDual
Definition: bt_hal_manager.h:293
eBTauthFailSmpUnknown
@ eBTauthFailSmpUnknown
Definition: bt_hal_manager.h:152
BTInterface_t
Represents the standard SAL device management interface.
Definition: bt_hal_manager.h:537
BTActivityEnergyInfo::ullEnergyUsed
uint64_t ullEnergyUsed
Definition: bt_hal_manager.h:325
BTTransportBredr
@ BTTransportBredr
Definition: bt_hal_manager.h:110
BTProperty_t::pvVal
void * pvVal
Definition: bt_hal_manager.h:268
BTOutOfBandData_t
Bluetooth Out Of Band data for bonding.
Definition: bt_hal_manager.h:275
BTEnergyInfoCallback_t
void(* BTEnergyInfoCallback_t)(BTActivityEnergyInfo *pxEnergyInfo, BTUidTraffic_t *pxUidData)
Callback invoked on pxReadEnergyInfo. Invoked on pxReadEnergyInfo.
Definition: bt_hal_manager.h:437
BTPinRequestCallback_t
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
@ eBTauthFailEncrypMode
Definition: bt_hal_manager.h:139
BTDeviceStateChangedCallback_t
void(* BTDeviceStateChangedCallback_t)(BTState_t xState)
Bluetooth state change Callback. Invoked on pxEnable/pxDisable.
Definition: bt_hal_manager.h:343
BTProperty_t::xType
BTPropertyType_t xType
Definition: bt_hal_manager.h:266
eBTauthFailSmpPairNotSupport
@ eBTauthFailSmpPairNotSupport
Definition: bt_hal_manager.h:150