FreeRTOS: BLE
BLE
Return to main page ↑
BTBleAdapter_t Struct Reference

BLE adapter API. More...

#include <bt_hal_manager_adapter_ble.h>

Data Fields

BTStatus_t(* pxRegisterBleApp )(BTUuid_t *pxAppUuid)
 Registers a BLE application with the stack. More...
 
BTStatus_t(* pxUnregisterBleApp )(uint8_t ucAdapterIf)
 Unregister a BLE application from the stack. More...
 
BTStatus_t(* pxBleAdapterInit )(const BTBleAdapterCallbacks_t *pxCallbacks)
 Initializes the interface and provides callback routines. More...
 
BTStatus_t(* pxGetBleAdapterProperty )(BTBlePropertyType_t xType)
 Get Bluetooth LE Adapter property of 'type'. More...
 
BTStatus_t(* pxSetBleAdapterProperty )(const BTBleProperty_t *pxProperty)
 Set Bluetooth LE Adapter property of 'type'. More...
 
BTStatus_t(* pxGetallBleRemoteDeviceProperties )(BTBdaddr_t *pxRremoteAddr)
 Get all Remote Device properties. More...
 
BTStatus_t(* pxGetBleRemoteDeviceProperty )(BTBdaddr_t *pxRemoteAddr, BTBleProperty_t xType)
 Get Remote Device property of 'type'. More...
 
BTStatus_t(* pxSetBleRemoteDeviceProperty )(BTBdaddr_t *pxRemoteAddr, const BTBleProperty_t *pxProperty)
 Set Remote Device property of 'type' . More...
 
BTStatus_t(* pxScan )(bool bStart)
 Start or stop LE device scanning. More...
 
BTStatus_t(* pxConnect )(uint8_t ucAdapterIf, const BTBdaddr_t *pxBdAddr, bool bIsDirect, BTTransport_t ulTransport)
 Create a connection to a remote LE or dual-mode device. More...
 
BTStatus_t(* pxDisconnect )(uint8_t ucAdapterIf, const BTBdaddr_t *pxBdAddr, uint16_t usConnId)
 Disconnect a remote device or cancel a pending connection. More...
 
BTStatus_t(* pxStartAdv )(uint8_t ucAdapterIf)
 Start advertisements to listen for incoming connections. More...
 
BTStatus_t(* pxStopAdv )(uint8_t ucAdapterIf)
 Stop advertisements to listen for incoming connections. More...
 
BTStatus_t(* pxReadRemoteRssi )(uint8_t ucAdapterIf, const BTBdaddr_t *pxBdAddr)
 Request RSSI for a given remote device. More...
 
BTStatus_t(* pxScanFilterParamSetup )(BTGattFiltParamSetup_t xFiltParam)
 Setup scan filter params. More...
 
BTStatus_t(* pxScanFilterAddRemove )(uint8_t ucAdapterIf, uint32_t ulAction, uint32_t ulFiltType, uint32_t ulFiltIndex, uint32_t ulCompanyId, uint32_t ulCompanyIdMask, const BTUuid_t *pxUuid, const BTUuid_t *pxUuidMask, const BTBdaddr_t *pxBdAddr, char cAddrType, size_t xDataLen, char *pcData, size_t xMaskLen, char *pcMask)
 Configure a scan filter condition. More...
 
BTStatus_t(* pxScanFilterClear )(uint8_t ucAdapterIf, uint32_t ulFiltIndex)
 Clear all scan filter conditions for specific filter index. More...
 
BTStatus_t(* pxScanFilterEnable )(uint8_t ucAdapterIf, bool bEnable)
 Enable / disable scan filter feature. More...
 
BTTransport_t(* pxGetDeviceType )(const BTBdaddr_t *pxBdAddr)
 Determine the type of the remote device (LE, BR/EDR, Dual-mode). More...
 
BTStatus_t(* pxSetAdvData )(uint8_t ucAdapterIf, BTGattAdvertismentParams_t *pxParams, uint16_t usManufacturerLen, char *pcManufacturerData, uint16_t usServiceDataLen, char *pcServiceData, BTUuid_t *pxServiceUuid, size_t xNbServices)
 Set the advertising data or scan response data. More...
 
BTStatus_t(* pxSetAdvRawData )(uint8_t ucAdapterIf, uint8_t *pucData, uint8_t ucLen)
 Set the advertising data of complete 31 bytes or scan response data. More...
 
BTStatus_t(* pxConnParameterUpdateRequest )(const BTBdaddr_t *pxBdAddr, uint32_t ulMinInterval, uint32_t ulMaxInterval, uint32_t ulLatency, uint32_t ulTimeout)
 
BTStatus_t(* pxSetScanParameters )(uint8_t ucAdapterIf, uint32_t ulScanInterval, uint32_t ulScanWindow)
 Sets the LE scan interval and window in units of N*0.625 msec. More...
 
BTStatus_t(* pxMultiAdvEnable )(uint8_t ucAdapterIf, BTGattAdvertismentParams_t *xAdvParams)
 Setup the parameters as per spec, user manual specified values and enable multi ADV. More...
 
BTStatus_t(* pxMultiAdvUpdate )(uint8_t ucAdapterIf, BTGattAdvertismentParams_t *advParams)
 Update the parameters as per spec, user manual specified values and restart multi ADV. More...
 
BTStatus_t(* pxMultiAdvSetInstData )(uint8_t ucAdapterIf, bool bSetScanRsp, bool bIncludeName, bool bInclTxpower, uint32_t ulAppearance, size_t xManufacturerLen, char *pcManufacturerData, size_t xServiceDataLen, char *pcServiceData, BTUuid_t *pxServiceUuid, size_t xNbServices)
 Setup the data for the specified instance. More...
 
BTStatus_t(* pxMultiAdvDisable )(uint8_t ucAdapterIf)
 Disable the multi adv instance. More...
 
BTStatus_t(* pxBatchscanCfgStorage )(uint8_t ucAdapterIf, uint32_t ulBatchScanFullMax, uint32_t ulBatchScanTruncMax, uint32_t ulBatchScanNotifyThreshold)
 Configure the batchscan storage. More...
 
BTStatus_t(* pxBatchscanEndBatchScan )(uint8_t ucAdapterIf, uint32_t ulScanMode, uint32_t ulScanInterval, uint32_t ulScanWindow, uint32_t ulAddrType, uint32_t ulDiscardRule)
 Enable batchscan. More...
 
BTStatus_t(* pxBatchscanDisBatchScan )(uint8_t ucAdapterIf)
 Disable batchscan. More...
 
BTStatus_t(* pxBatchscanReadReports )(uint8_t ucAdapterIf, uint32_t ulScanMode)
 Read out batchscan reports. More...
 
BTStatus_t(* pxSetPreferredPhy )(uint16_t usConnId, uint8_t ucTxPhy, uint8_t ucRxPhy, uint16_t usPhyOptions)
 
BTStatus_t(* pxReadPhy )(uint16_t usConnId, BTReadClientPhyCallback_t xCb)
 
const void *(* ppvGetGattClientInterface )()
 returns the GATT client interface, see bt_hal_gatt_client.h
 
const void *(* ppvGetGattServerInterface )()
 returns the GATT server interface, see bt_hal_gatt_server.h
 
BTStatus_t(* pxMultiAdvSetInstRawData )(uint8_t ucAdapterIf, bool bSetScanRsp, uint8_t *pucData, size_t xDataLen)
 Setup the raw data for the specified instance. More...
 
BTStatus_t(* pxSetBgScanParameters )(uint8_t ucAdapterIf, uint32_t ulScanIntervalTime, uint32_t ulScanWindowTime)
 Sets the LE background scan interval and window in units of N*0.625 msec. More...
 

Detailed Description

BLE adapter API.

Represents the standard BT-GATT client interface.

Field Documentation

◆ pxRegisterBleApp

BTStatus_t( * BTBleAdapter_t::pxRegisterBleApp) (BTUuid_t *pxAppUuid)

Registers a BLE application with the stack.

Triggers BTRegisterBleAdapterCallback_t.

Parameters
[in]pxAppUuidAPP UUID
Returns
Returns eBTStatusSuccess on successful call.

◆ pxUnregisterBleApp

BTStatus_t( * BTBleAdapter_t::pxUnregisterBleApp) (uint8_t ucAdapterIf)

Unregister a BLE application from the stack.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxBleAdapterInit

BTStatus_t( * BTBleAdapter_t::pxBleAdapterInit) (const BTBleAdapterCallbacks_t *pxCallbacks)

Initializes the interface and provides callback routines.

Parameters
[in]pxCallbacksCallbacks initializer for BLE adapter.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxGetBleAdapterProperty

BTStatus_t( * BTBleAdapter_t::pxGetBleAdapterProperty) (BTBlePropertyType_t xType)

Get Bluetooth LE Adapter property of 'type'.

Triggers BTRegisterBleAdapterCallback_t.

Parameters
[in]xTypeProperty type.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxSetBleAdapterProperty

BTStatus_t( * BTBleAdapter_t::pxSetBleAdapterProperty) (const BTBleProperty_t *pxProperty)

Set Bluetooth LE Adapter property of 'type'.

Triggers BTBleDevicePropertiesCallback_t.

Parameters
[in]pxPropertyProperty type.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxGetallBleRemoteDeviceProperties

BTStatus_t( * BTBleAdapter_t::pxGetallBleRemoteDeviceProperties) (BTBdaddr_t *pxRremoteAddr)

Get all Remote Device properties.

Parameters
[in]pxRremoteAddrRemote device address.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxGetBleRemoteDeviceProperty

BTStatus_t( * BTBleAdapter_t::pxGetBleRemoteDeviceProperty) (BTBdaddr_t *pxRemoteAddr, BTBleProperty_t xType)

Get Remote Device property of 'type'.

Parameters
[in]pxRemoteAddrRemote device address.
[in]xType
Returns
Returns eBTStatusSuccess on successful call.

◆ pxSetBleRemoteDeviceProperty

BTStatus_t( * BTBleAdapter_t::pxSetBleRemoteDeviceProperty) (BTBdaddr_t *pxRemoteAddr, const BTBleProperty_t *pxProperty)

Set Remote Device property of 'type' .

Parameters
[in]pxRemoteAddrRemote device address.
[in]pxPropertyRemote device property
Returns
Returns eBTStatusSuccess on successful call.

◆ pxScan

BTStatus_t( * BTBleAdapter_t::pxScan) (bool bStart)

Start or stop LE device scanning.

Parameters
[in]bStart
Returns
Returns eBTStatusSuccess on successful call.

◆ pxConnect

BTStatus_t( * BTBleAdapter_t::pxConnect) (uint8_t ucAdapterIf, const BTBdaddr_t *pxBdAddr, bool bIsDirect, BTTransport_t ulTransport)

Create a connection to a remote LE or dual-mode device.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
[in]pxBdAddrAddress of the Remote device
[in]bIsDirectTrue if a direct connection is desired.
[in]xTransportSpecify if BLE and BT classic is being used.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxDisconnect

BTStatus_t( * BTBleAdapter_t::pxDisconnect) (uint8_t ucAdapterIf, const BTBdaddr_t *pxBdAddr, uint16_t usConnId)

Disconnect a remote device or cancel a pending connection.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
[in]pxBdAddrAddress of the Remote device
[in]usConnIdConnection ID return from BTConnectCallback_t
Returns
Returns eBTStatusSuccess on successful call.

◆ pxStartAdv

BTStatus_t( * BTBleAdapter_t::pxStartAdv) (uint8_t ucAdapterIf)

Start advertisements to listen for incoming connections.

Triggers BTAdvStatusCallback_t with bStart = true.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
Returns
Returns eBTStatusSuccess on successful call.

◆ pxStopAdv

BTStatus_t( * BTBleAdapter_t::pxStopAdv) (uint8_t ucAdapterIf)

Stop advertisements to listen for incoming connections.

Triggers BTAdvStatusCallback_t with bStart = false.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxReadRemoteRssi

BTStatus_t( * BTBleAdapter_t::pxReadRemoteRssi) (uint8_t ucAdapterIf, const BTBdaddr_t *pxBdAddr)

Request RSSI for a given remote device.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
[in]pxBdAddrAddress of the Remote device.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxScanFilterParamSetup

BTStatus_t( * BTBleAdapter_t::pxScanFilterParamSetup) (BTGattFiltParamSetup_t xFiltParam)

Setup scan filter params.

Parameters
[in]xFiltParam
Returns
Returns eBTStatusSuccess on successful call.

◆ pxScanFilterAddRemove

BTStatus_t( * BTBleAdapter_t::pxScanFilterAddRemove) (uint8_t ucAdapterIf, uint32_t ulAction, uint32_t ulFiltType, uint32_t ulFiltIndex, uint32_t ulCompanyId, uint32_t ulCompanyIdMask, const BTUuid_t *pxUuid, const BTUuid_t *pxUuidMask, const BTBdaddr_t *pxBdAddr, char cAddrType, size_t xDataLen, char *pcData, size_t xMaskLen, char *pcMask)

Configure a scan filter condition.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
[in]ulAction
[in]ulFiltType
[in]ulFiltIndex
[in]ulCompanyId
[in]ulCompanyIdMask
[in]pxUuidUUID of the attribute.
[in]pxUuidMask
[in]pxBdAddrAddress of the Remote device.
[in]cAddrType
[in]xDataLen
[in]pcData
[in]xMaskLen
[in]pcMask
Returns
Returns eBTStatusSuccess on successful call.

◆ pxScanFilterClear

BTStatus_t( * BTBleAdapter_t::pxScanFilterClear) (uint8_t ucAdapterIf, uint32_t ulFiltIndex)

Clear all scan filter conditions for specific filter index.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
[in]ulFiltIndex
Returns
Returns eBTStatusSuccess on successful call.

◆ pxScanFilterEnable

BTStatus_t( * BTBleAdapter_t::pxScanFilterEnable) (uint8_t ucAdapterIf, bool bEnable)

Enable / disable scan filter feature.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
[in]bEnableSet to true to enable the scan filter, false to disable.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxGetDeviceType

BTTransport_t( * BTBleAdapter_t::pxGetDeviceType) (const BTBdaddr_t *pxBdAddr)

Determine the type of the remote device (LE, BR/EDR, Dual-mode).

Parameters
[in]pxBdAddrAddress of the Remote device,
Returns
Returns eBTStatusSuccess on successful call.

◆ pxSetAdvData

BTStatus_t( * BTBleAdapter_t::pxSetAdvData) (uint8_t ucAdapterIf, BTGattAdvertismentParams_t *pxParams, uint16_t usManufacturerLen, char *pcManufacturerData, uint16_t usServiceDataLen, char *pcServiceData, BTUuid_t *pxServiceUuid, size_t xNbServices)

Set the advertising data or scan response data.

Triggers BTSetAdvDataCallback_t.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
[in]pxParamsAdvertisement parameters.
[in]usManufacturerLenLength of Advertisement type Manufacturer data
[in]pcManufacturerDataAdvertisement type Manufacturer data
[in]usServiceDataLenLength of Advertisement type service data
[in]pcServiceDataAdvertisement type service data. UUIDs used in this service data can be only be 16bit. If longer UUIDs are needed, use pxSetAdvRawData() instead.
[in]pxServiceUuidArray of UUIDs of advertised services. At most one UUID of each size (16 bit, 32 bit, 128 bit) can be included in the advertisement packet.
[in]xNbServicesNumber of services.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxSetAdvRawData

BTStatus_t( * BTBleAdapter_t::pxSetAdvRawData) (uint8_t ucAdapterIf, uint8_t *pucData, uint8_t ucLen)

Set the advertising data of complete 31 bytes or scan response data.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
[in]pucDataAd Types serialized.
[in]ucLenAd types serialized array len.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxConnParameterUpdateRequest

BTStatus_t( * BTBleAdapter_t::pxConnParameterUpdateRequest) (const BTBdaddr_t *pxBdAddr, uint32_t ulMinInterval, uint32_t ulMaxInterval, uint32_t ulLatency, uint32_t ulTimeout)

a connection parameter update. If the request is accepted, it will trigger BTConnParameterUpdateRequestCallback_t.

Parameters
[in]pxBdAddrAddress of the Remote device.
[in]ulMinIntervalMinimum connection interval.
[in]ulMaxIntervalMaximum connection interval.
[in]ulLatencySlave latency.
[in]ulTimeoutConnection timeout.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxSetScanParameters

BTStatus_t( * BTBleAdapter_t::pxSetScanParameters) (uint8_t ucAdapterIf, uint32_t ulScanInterval, uint32_t ulScanWindow)

Sets the LE scan interval and window in units of N*0.625 msec.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
[in]ulScanInterval
[in]ulScanWindow
Returns
Returns eBTStatusSuccess on successful call.

◆ pxMultiAdvEnable

BTStatus_t( * BTBleAdapter_t::pxMultiAdvEnable) (uint8_t ucAdapterIf, BTGattAdvertismentParams_t *xAdvParams)

Setup the parameters as per spec, user manual specified values and enable multi ADV.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
[in]xAdvParamsAdvertisement parameters.
Returns
Returns eBTStatusSuccess on successful call.

◆ pxMultiAdvUpdate

BTStatus_t( * BTBleAdapter_t::pxMultiAdvUpdate) (uint8_t ucAdapterIf, BTGattAdvertismentParams_t *advParams)

Update the parameters as per spec, user manual specified values and restart multi ADV.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
[in]advParams
Returns
Returns eBTStatusSuccess on successful call.

◆ pxMultiAdvSetInstData

BTStatus_t( * BTBleAdapter_t::pxMultiAdvSetInstData) (uint8_t ucAdapterIf, bool bSetScanRsp, bool bIncludeName, bool bInclTxpower, uint32_t ulAppearance, size_t xManufacturerLen, char *pcManufacturerData, size_t xServiceDataLen, char *pcServiceData, BTUuid_t *pxServiceUuid, size_t xNbServices)

Setup the data for the specified instance.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
[in]bSetScanRsp
[in]bIncludeName
[in]bInclTxpower
[in]ulAppearance
[in]xManufacturerLen
[in]pcManufacturerData
[in]xServiceDataLen
[in]pcServiceData
[in]pxServiceUuid
[in]xNbServices
Returns
Returns eBTStatusSuccess on successful call.

◆ pxMultiAdvDisable

BTStatus_t( * BTBleAdapter_t::pxMultiAdvDisable) (uint8_t ucAdapterIf)

Disable the multi adv instance.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
Returns
Returns eBTStatusSuccess on successful call.

◆ pxBatchscanCfgStorage

BTStatus_t( * BTBleAdapter_t::pxBatchscanCfgStorage) (uint8_t ucAdapterIf, uint32_t ulBatchScanFullMax, uint32_t ulBatchScanTruncMax, uint32_t ulBatchScanNotifyThreshold)

Configure the batchscan storage.

Parameters
ucAdapterIf
ulBatchScanFullMax
ulBatchScanTruncMax
ulBatchScanNotifyThreshold
Returns
.

◆ pxBatchscanEndBatchScan

BTStatus_t( * BTBleAdapter_t::pxBatchscanEndBatchScan) (uint8_t ucAdapterIf, uint32_t ulScanMode, uint32_t ulScanInterval, uint32_t ulScanWindow, uint32_t ulAddrType, uint32_t ulDiscardRule)

Enable batchscan.

!TODO enum for addrType

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
[in]ulScanMode
[in]ulScanInterval
[in]ulScanWindow
[in]ulAddrType
[in]ulDiscardRule
Returns
Returns eBTStatusSuccess on successful call.

◆ pxBatchscanDisBatchScan

BTStatus_t( * BTBleAdapter_t::pxBatchscanDisBatchScan) (uint8_t ucAdapterIf)

Disable batchscan.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
Returns
.

◆ pxBatchscanReadReports

BTStatus_t( * BTBleAdapter_t::pxBatchscanReadReports) (uint8_t ucAdapterIf, uint32_t ulScanMode)

Read out batchscan reports.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
[in]ulScanMode
Returns
Returns eBTStatusSuccess on successful call.

◆ pxSetPreferredPhy

BTStatus_t( * BTBleAdapter_t::pxSetPreferredPhy) (uint16_t usConnId, uint8_t ucTxPhy, uint8_t ucRxPhy, uint16_t usPhyOptions)

Parameters
[in]usConnIdConnection ID return from BTConnectCallback_t.
[in]ucTxPhy
[in]ucRxPhy
[in]usPhyOptions
Returns
Returns eBTStatusSuccess on successful call.

◆ pxReadPhy

BTStatus_t( * BTBleAdapter_t::pxReadPhy) (uint16_t usConnId, BTReadClientPhyCallback_t xCb)

Parameters
[in]usConnIdConnection ID return from BTConnectCallback_t.
[in]xCb
Returns
Returns eBTStatusSuccess on successful call.

◆ pxMultiAdvSetInstRawData

BTStatus_t( * BTBleAdapter_t::pxMultiAdvSetInstRawData) (uint8_t ucAdapterIf, bool bSetScanRsp, uint8_t *pucData, size_t xDataLen)

Setup the raw data for the specified instance.

Triggers BTMultiAdvDataCallback_t.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp
[in]pucDataraw data serialized
[in]xDataLenserialized data length
[in]bSetScanRsp
Returns
Returns eBTStatusSuccess on successful call.

◆ pxSetBgScanParameters

BTStatus_t( * BTBleAdapter_t::pxSetBgScanParameters) (uint8_t ucAdapterIf, uint32_t ulScanIntervalTime, uint32_t ulScanWindowTime)

Sets the LE background scan interval and window in units of N*0.625 msec.

Parameters
[in]ucAdapterIfAdapter interface ID. Returned from BTRegisterBleAdapterCallback_t after calling pxRegisterBleApp.
[in]ulScanIntervalTimescan interval time in units of 0.625Ms
[in]ulScanWindowTimescan window time in units of 0.625Ms
Returns
Returns eBTStatusSuccess on successful call.

The documentation for this struct was generated from the following file: