41 #ifndef _BT_HAL_MANAGER_ADAPTER_BLE_H_ 42 #define _BT_HAL_MANAGER_ADAPTER_BLE_H_ 50 #define BT_HAL_BLE_ADV_TX_PWR_ULTRA_LOW 0 51 #define BT_HAL_BLE_ADV_TX_PWR_LOW 1 52 #define BT_HAL_BLE_ADV_TX_PWR_MEDIUM 2 53 #define BT_HAL_BLE_ADV_TX_PWR_HIGH 3 54 #define BT_HAL_BLE_ADV_TX_PWR_ULTRA_HIGH 4 65 uint16_t usListLogicType;
66 uint8_t ucFiltLogicType;
67 uint8_t ucRssiHighThres;
68 uint8_t ucRssiLowThres;
70 uint16_t usFoundTimeout;
71 uint16_t usLostTimeout;
72 uint8_t ucFoundTimeout_cnt;
73 uint16_t usNumOfTrackingEntries;
83 BTAddrTypeStaticRandom,
106 BTGattAdvNameComplete
108 uint8_t ucShortNameLen;
119 bool bIncludeTxPower;
122 uint32_t ulAppearance;
136 uint8_t ucPrimaryAdvertisingPhy;
137 uint8_t ucSecondaryAdvertisingPhy;
146 uint16_t usVersionSupported;
147 uint8_t ucLocalPrivacyEnabled;
148 uint8_t ucMaxAdvInstance;
149 uint8_t ucRpaOffloadSupported;
150 uint8_t ucMaxIrkListSize;
151 uint8_t ucMaxAdFilterSupported;
152 uint8_t ucActivityEnergyInfoSupported;
153 uint16_t usScanResultStorageSize;
154 uint16_t usTotalTrackableAdvertisers;
155 bool bExtendedScanSupport;
156 bool bDebugLoggingSupported;
205 uint32_t ulNumProperties,
219 uint32_t ulNumProperties,
232 uint8_t * pucAdvData );
271 uint32_t ulMinInterval,
272 uint32_t ulMaxInterval,
274 uint32_t usConnInterval,
275 uint32_t ulTimeout );
291 uint32_t ulAvblSpace );
305 uint32_t ulAvblSpace );
395 uint32_t ulReportFormat,
396 uint32_t ulNumRecords,
398 uint8_t * pucRepData );
677 uint32_t ulFiltIndex,
678 uint32_t ulCompanyId,
679 uint32_t ulCompanyIdMask,
698 uint32_t ulFiltIndex );
740 uint16_t usManufacturerLen,
741 char * pcManufacturerData,
742 uint16_t usServiceDataLen,
743 char * pcServiceData,
745 size_t xNbServices );
774 uint32_t ulMinInterval,
775 uint32_t ulMaxInterval,
777 uint32_t ulTimeout );
789 uint32_t ulScanInterval,
790 uint32_t ulScanWindow );
835 uint32_t ulAppearance,
836 size_t xManufacturerLen,
837 char * pcManufacturerData,
838 size_t xServiceDataLen,
839 char * pcServiceData,
841 size_t xNbServices );
863 uint32_t ulBatchScanFullMax,
864 uint32_t ulBatchScanTruncMax,
865 uint32_t ulBatchScanNotifyThreshold );
881 BTStatus_t ( * pxBatchscanEndBatchScan )( uint8_t ucAdapterIf,
883 uint32_t ulScanInterval,
884 uint32_t ulScanWindow,
886 uint32_t ulDiscardRule );
895 BTStatus_t ( * pxBatchscanDisBatchScan )( uint8_t ucAdapterIf );
905 BTStatus_t ( * pxBatchscanReadReports )( uint8_t ucAdapterIf,
906 uint32_t ulScanMode );
921 uint16_t usPhyOptions );
938 const void * ( *ppvGetGattClientInterface )( );
944 const void * ( *ppvGetGattServerInterface )( );
958 BTStatus_t ( * pxMultiAdvSetInstRawData )( uint8_t ucAdapterIf,
973 uint32_t ulScanIntervalTime,
974 uint32_t ulScanWindowTime );
uint8_t ucTimeout
Definition: bt_hal_manager_adapter_ble.h:134
void(* BTBleDevicePropertiesCallback_t)(BTStatus_t xStatus, uint32_t ulNumProperties, BTBleProperty_t *pxProperties)
Callback invoked in response to pxGetBleAdapterProperty and pxSetBleAdapterProperty.
Definition: bt_hal_manager_adapter_ble.h:204
Structure that contains all advertisements info. Used to compress parameters in BTTrackAdvEventCallba...
Definition: bt_hal_gatt_types.h:165
void(* BTConnParameterUpdateCallback_t)(BTStatus_t xStatus, const BTBdaddr_t *pxBdAddr, uint32_t ulMinInterval, uint32_t ulMaxInterval, uint32_t ulLatency, uint32_t usConnInterval, uint32_t ulTimeout)
Callback invoked on when a peer device makes a request. The callback is triggered by pxConnParameterU...
Definition: bt_hal_manager_adapter_ble.h:269
void(* BTBatchscanCfgStorageCallback_t)(uint8_t ucAdapterIf, BTStatus_t xStatus)
Callback invoked on pxBatchscanCfgStorage.
Definition: bt_hal_manager_adapter_ble.h:367
uint32_t ulMinInterval
Definition: bt_hal_manager_adapter_ble.h:123
void(* BTMultiAdvEnableCallback_t)(uint8_t ucAdapterIf, BTStatus_t xStatus)
Callback invoked on pxMultiAdvEnable.
Definition: bt_hal_manager_adapter_ble.h:326
void(* BTScanFilterParamCallback_t)(uint32_t ulAction, uint8_t ucAdapterIf, BTStatus_t xStatus, uint32_t ulAvblSpace)
Callback invoked on pxScanFilterParamSetup.
Definition: bt_hal_manager_adapter_ble.h:302
uint32_t ulMaxInterval
Definition: bt_hal_manager_adapter_ble.h:124
void(* BTScanFilterCfgCallback_t)(uint32_t ulAction, uint8_t ucAdapterIf, BTStatus_t xStatus, uint32_t ulFiltType, uint32_t ulAvblSpace)
Callback invoked when a scan filter configuration command has completed.
Definition: bt_hal_manager_adapter_ble.h:287
uint16_t usMinAdvInterval
Definition: bt_hal_manager_adapter_ble.h:125
void(* BTBatchscanEnableDisableCallback_t)(uint32_t ulAction, uint8_t ucAdapterIf, BTStatus_t xStatus)
Callback invoked on pxBatchscanDisBatchScan and TBD.
Definition: bt_hal_manager_adapter_ble.h:378
void(* BTBatchscanThresholdCallback_t)(uint8_t ucAdapterIf)
Callback invoked when batchscan storage threshold limit is crossed.
Definition: bt_hal_manager_adapter_ble.h:406
BLE adapter API.
Definition: bt_hal_manager_adapter_ble.h:492
BTAddrType_t
Advertising Address Type.
Definition: bt_hal_manager_adapter_ble.h:79
BTAdvProperties_t
Advertising Type.
Definition: bt_hal_manager_adapter_ble.h:90
void(* BTCongestionCallback_t)(uint16_t usConnId, bool bCongested)
Definition: bt_hal_gatt_types.h:311
void(* BTScanFilterStatusCallback_t)(bool bEnable, uint8_t ucAdapterIf, BTStatus_t xStatus)
Callback invoked on pxScanFilterEnable.
Definition: bt_hal_manager_adapter_ble.h:315
void(* BTBatchscanReportsCallback_t)(uint8_t ucAdapterIf, BTStatus_t xStatus, uint32_t ulReportFormat, uint32_t ulNumRecords, size_t XDataLen, uint8_t *pucRepData)
Callback invoked on pxBatchscanReadReports.
Definition: bt_hal_manager_adapter_ble.h:393
void(* BTBleRemoteDevicePropertiesCallback_t)(BTStatus_t xStatus, BTBdaddr_t *pxBdAddr, uint32_t ulNumProperties, BTBleProperty_t *pxProperties)
Callback invoked in response to pxGetBleRemoteDeviceProperty and pxSetBleRemoteDeviceProperty.
Definition: bt_hal_manager_adapter_ble.h:217
void(* BTMultiAdvUpdateCallback_t)(uint8_t ucAdapterIf, BTStatus_t xStatus)
Callback invoked on pxMultiAdvUpdate.
Definition: bt_hal_manager_adapter_ble.h:336
uint16_t usMaxAdvInterval
Definition: bt_hal_manager_adapter_ble.h:129
void(* BTRegisterBleAdapterCallback_t)(BTStatus_t xStatus, uint8_t ucAdapterIf, BTUuid_t *pxAppUuid)
Callback invoked in response pxRegisterBleApp.
Definition: bt_hal_manager_adapter_ble.h:192
void(* BTScanParameterSetupCompletedCallback_t)(uint8_t ucAdapterIf, BTStatus_t xStatus)
Callback invoked when scan parameter setup has completed.
Definition: bt_hal_manager_adapter_ble.h:424
void(* BTReadClientPhyCallback_t)(uint16_t usConnId, uint8_t ucTxPhy, uint8_t ucRxPhy, BTStatus_t xStatus)
Callback invoked on pxReadPhy.
Definition: bt_hal_manager_adapter_ble.h:450
void(* BTAdvStatusCallback_t)(BTStatus_t xStatus, uint8_t ucAdapterIf, bool bStart)
Callback invoked on pxStartAdv and stop advertisement.
Definition: bt_hal_manager_adapter_ble.h:244
void(* BTReadRemoteRssiCallback_t)(uint8_t ucClientIf, BTBdaddr_t *pxBda, uint32_t ulRssi, BTStatus_t xStatus)
Definition: bt_hal_gatt_types.h:301
UUID.
Definition: bt_hal_manager_types.h:83
void(* BTSetAdvDataCallback_t)(BTStatus_t xStatus)
Callback invoked on pxSetAdvData.
Definition: bt_hal_manager_adapter_ble.h:254
T HAL provides the standard defintions used by BT GATT interfaces.
void(* BTPhyUpdatedCallback_t)(uint16_t usConnId, uint8_t ucTxPhy, uint8_t ucRxPhy, BTStatus_t xStatus)
Callback invoked on pxSetPreferredPhy.
Definition: bt_hal_manager_adapter_ble.h:436
Advertising Name Format.
Definition: bt_hal_manager_adapter_ble.h:100
void(* BTScanResultCallback_t)(BTBdaddr_t *pxBda, uint32_t ulRssi, uint8_t *pucAdvData)
Callback invoked in response to pxScan.
Definition: bt_hal_manager_adapter_ble.h:230
void(* BTDisconnectCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint8_t ucClientIf, BTBdaddr_t *pxBda)
Definition: bt_hal_gatt_types.h:294
Definition: bt_hal_manager_adapter_ble.h:169
void(* BTMultiAdvDisableCallback_t)(uint8_t ucAdapterIf, BTStatus_t xStatus)
Callback invoked on pxMultiAdvDisable.
Definition: bt_hal_manager_adapter_ble.h:357
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:97
BTBlePropertyType_t
BLE device property type.
Definition: bt_hal_manager_adapter_ble.h:162
Callback structure for BLE adapter.
Definition: bt_hal_manager_adapter_ble.h:458
uint16_t usTimeout
Definition: bt_hal_manager_adapter_ble.h:135
Advertising Parameters.
Definition: bt_hal_manager_adapter_ble.h:116
BT/BLE address.
Definition: bt_hal_manager_types.h:66
Scan Filter Parameters.
Definition: bt_hal_manager_adapter_ble.h:59
BLE Device Property.
Definition: bt_hal_manager_adapter_ble.h:175
Local supported LE features.
Definition: bt_hal_manager_adapter_ble.h:144
void(* BTMultiAdvDataCallback_t)(uint8_t ucAdapterIf, BTStatus_t xStatus)
Callback invoked on pxMultiAdvSetInstData and pxMultiAdvSetInstRawData.
Definition: bt_hal_manager_adapter_ble.h:346
void(* BTConnectCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint8_t ucClientIf, BTBdaddr_t *pxBda)
Definition: bt_hal_gatt_types.h:288
void(* BTTrackAdvEventCallback_t)(BTGattTrackAdvInfo_t *pxTrackAdvInfo)
Track ADV VSE callback invoked when tracked device is found or lost.
Definition: bt_hal_manager_adapter_ble.h:414
uint8_t ucChannelMap
Definition: bt_hal_manager_adapter_ble.h:132
BTTransport_t
Preferred physical Transport for GATT connection .
Definition: bt_hal_manager.h:107