40#ifndef _BT_HAL_GATT_CLIENT_H_
41#define _BT_HAL_GATT_CLIENT_H_
287 uint32_t ulServerIf );
335 uint16_t usStartHandle,
336 uint16_t usEndHandle );
352 uint32_t ulAddedCount );
500 uint32_t ulAuthReq );
542 uint32_t ulAuthReq );
598 BTStatus_t ( * pxRegisterForNotification )( uint8_t ucClientIf,
616 BTStatus_t ( * pxUnregisterForNotification )( uint8_t ucClientIf,
T HAL provides the standard defintions used by BT GATT interfaces.
void(* BTConnectCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint8_t ucClientIf, BTBdaddr_t *pxBda)
Definition: bt_hal_gatt_types.h:308
void(* BTDisconnectCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint8_t ucClientIf, BTBdaddr_t *pxBda)
Definition: bt_hal_gatt_types.h:314
void(* BTReadRemoteRssiCallback_t)(uint8_t ucClientIf, BTBdaddr_t *pxBda, uint32_t ulRssi, BTStatus_t xStatus)
Definition: bt_hal_gatt_types.h:321
void(* BTCongestionCallback_t)(uint16_t usConnId, bool bCongested)
Definition: bt_hal_gatt_types.h:331
This BT HAL provides the interfaces to control the Bluetooth power states ,local device control and d...
void(* BTListenCallback_t)(BTGattStatus_t xStatus, uint32_t ulServerIf)
Callback indicating the status of a listen() operation.
Definition: bt_hal_gatt_client.h:286
void(* BTNotifyCallback_t)(uint16_t usConnId, BTGattNotifyParams_t *pxData)
Remote device notification callback, invoked when a remote device sends a notification or indication ...
Definition: bt_hal_gatt_client.h:197
void(* BTGetGattDbCallback_t)(uint16_t usConnId, BTGattDbElement_t *pxDb, uint32_t ulCount)
GATT get database callback. Triggered by pxGetGattDb.
Definition: bt_hal_gatt_client.h:318
void(* BTServicesAddedCallback_t)(uint16_t usConnId, BTGattDbElement_t *pxAdded, uint32_t ulAddedCount)
GATT services were added.
Definition: bt_hal_gatt_client.h:350
void(* BTRegisterClientCallback_t)(BTGattStatus_t xStatus, uint8_t ucClientIf, BTUuid_t *pxAppUuid)
Callback invoked in response pxRegisterClient when the GATT client registration has been completed.
Definition: bt_hal_gatt_client.h:147
void(* BTReadDescriptorCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, BTGattReadParams_t *pxData)
Callback invoked in response to pxReadDescriptor.
Definition: bt_hal_gatt_client.h:258
void(* BTReadCharacteristicCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, BTGattReadParams_t *pxData)
Reports result of a GATT read operation. Triggered by pxReadCharacteristic.
Definition: bt_hal_gatt_client.h:212
void(* BTServicesRemovedCallback_t)(uint16_t usConnId, uint16_t usStartHandle, uint16_t usEndHandle)
GATT services between startHandle and endHandle were removed.
Definition: bt_hal_gatt_client.h:334
void(* BTConfigureMtuCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint32_t ulMtu)
Callback invoked when the MTU for a given connection changes. Triggered by pxConfigureMtu.
Definition: bt_hal_gatt_client.h:302
void(* BTSearchCompleteCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus)
Callback invoked in response to pxSearchService when the GATT service search has been completed.
Definition: bt_hal_gatt_client.h:162
void(* BTWriteDescriptorCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint16_t usHandle)
Callback invoked in response to pxWriteDescriptor.
Definition: bt_hal_gatt_client.h:274
void(* BTExecuteWriteCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus)
GATT execute prepared write callback. Triggered by pxExecuteWrite.
Definition: bt_hal_gatt_client.h:243
void(* BTWriteCharacteristicCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint16_t usHandle)
GATT write characteristic operation callback. Triggered by pxWriteCharacteristic.
Definition: bt_hal_gatt_client.h:229
void(* BTRegisterForNotificationCallback_t)(uint16_t usConnId, bool bRegistered, BTGattStatus_t xStatus, uint16_t usHandle)
Callback invoked in response to pxRegisterForNotification and pxUnregisterForNotification.
Definition: bt_hal_gatt_client.h:181
#define btGATT_MAX_ATTR_LEN
Definition: bt_hal_gatt_types.h:50
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:111
BTTransport_t
Preferred physical Transport for GATT connection .
Definition: bt_hal_manager.h:120
BTAttrWriteRequests_t
Write request type.
Definition: bt_hal_gatt_types.h:131
BTGattcError_t
BT GATT client error codes.
Definition: bt_hal_gatt_client.h:116
BTGattStatus_t
GATT Status Codes.
Definition: bt_hal_gatt_types.h:59
@ eBTGattcDelayedEncryptionCheck
Definition: bt_hal_gatt_client.h:129
@ eBTGattcIncorrectState
Definition: bt_hal_gatt_client.h:124
@ eBTGattcUnknownAddr
Definition: bt_hal_gatt_client.h:125
@ eBTGattcCommandStarted
Definition: bt_hal_gatt_client.h:118
@ eBTGattcIllegalValue
Definition: bt_hal_gatt_client.h:123
@ eBTGattcInvalidControllerOutput
Definition: bt_hal_gatt_client.h:127
@ eBTGattcCommandSuccess
Definition: bt_hal_gatt_client.h:117
@ eBTGattcCommandBusy
Definition: bt_hal_gatt_client.h:119
@ eBTGattcCommandStored
Definition: bt_hal_gatt_client.h:120
@ eBTGattcNoResources
Definition: bt_hal_gatt_client.h:121
@ eBTGattcErrProcessing
Definition: bt_hal_gatt_client.h:130
@ eBTGattcSecurityError
Definition: bt_hal_gatt_client.h:128
@ eBTGattcModeUnsupported
Definition: bt_hal_gatt_client.h:122
@ eBTGattcDeviceTimeout
Definition: bt_hal_gatt_client.h:126
BT/BLE address.
Definition: bt_hal_manager_types.h:77
Represents the BT-GATT client callbacks.
Definition: bt_hal_gatt_client.h:359
BTNotifyCallback_t pxNotifyCb
Definition: bt_hal_gatt_client.h:365
BTDisconnectCallback_t pxCloseCb
Definition: bt_hal_gatt_client.h:362
BTConfigureMtuCallback_t pxConfigureMtuCb
Definition: bt_hal_gatt_client.h:373
BTReadDescriptorCallback_t pxReadDescriptorCb
Definition: bt_hal_gatt_client.h:368
BTListenCallback_t pxListenCb
Definition: bt_hal_gatt_client.h:372
BTWriteCharacteristicCallback_t pxWriteCharacteristicCb
Definition: bt_hal_gatt_client.h:367
BTWriteDescriptorCallback_t pxWriteDescriptorCb
Definition: bt_hal_gatt_client.h:369
BTReadRemoteRssiCallback_t pxReadRemoteRssiCb
Definition: bt_hal_gatt_client.h:371
BTServicesAddedCallback_t pxServicesAddedCb
Definition: bt_hal_gatt_client.h:377
BTServicesRemovedCallback_t pxServicesRemovedCb
Definition: bt_hal_gatt_client.h:376
BTGetGattDbCallback_t pxGetGattDbCb
Definition: bt_hal_gatt_client.h:375
BTSearchCompleteCallback_t pxSearchCompleteCb
Definition: bt_hal_gatt_client.h:363
BTRegisterClientCallback_t pxRegisterClientCb
Definition: bt_hal_gatt_client.h:360
BTConnectCallback_t pxOpenCb
Definition: bt_hal_gatt_client.h:361
BTCongestionCallback_t pxCongestionCb
Definition: bt_hal_gatt_client.h:374
BTRegisterForNotificationCallback_t pxRegisterForNotificationCb
Definition: bt_hal_gatt_client.h:364
BTReadCharacteristicCallback_t pxReadCharacteristicCb
Definition: bt_hal_gatt_client.h:366
BTExecuteWriteCallback_t pxExecuteWriteCb
Definition: bt_hal_gatt_client.h:370
Represents the standard BT-GATT client interface.
Definition: bt_hal_gatt_client.h:385
BLE GATT Db element.
Definition: bt_hal_gatt_types.h:286
GATT service instance ID.
Definition: bt_hal_gatt_types.h:154
Parameters for attribute change notifications.
Definition: bt_hal_gatt_client.h:87
size_t xLen
Definition: bt_hal_gatt_client.h:91
BTBdaddr_t xBda
Definition: bt_hal_gatt_client.h:89
bool bIsNotify
Definition: bt_hal_gatt_client.h:92
uint16_t usHandle
Definition: bt_hal_gatt_client.h:90
Parameters for GATT read operations.
Definition: bt_hal_gatt_client.h:63
uint8_t ucStatus
Definition: bt_hal_gatt_client.h:67
uint16_t usHandle
Definition: bt_hal_gatt_client.h:64
uint16_t usValueType
Definition: bt_hal_gatt_client.h:66
BTGattUnformattedValue_t xValue
Definition: bt_hal_gatt_client.h:65
GATT Service ID.
Definition: bt_hal_gatt_types.h:164
Parameters for test command interface.
Definition: bt_hal_gatt_client.h:100
BTBdaddr_t * pxBda1
Definition: bt_hal_gatt_client.h:101
BTUuid_t * pxUuid1
Definition: bt_hal_gatt_client.h:102
uint16_t usU4
Definition: bt_hal_gatt_client.h:106
uint16_t usU1
Definition: bt_hal_gatt_client.h:103
uint16_t usU2
Definition: bt_hal_gatt_client.h:104
uint16_t usU3
Definition: bt_hal_gatt_client.h:105
uint16_t usU5
Definition: bt_hal_gatt_client.h:107
Parameters for GATT write operations.
Definition: bt_hal_gatt_client.h:75
BTGattSrvcId_t xSrvcId
Definition: bt_hal_gatt_client.h:76
BTGattInstanceId_t xCharId
Definition: bt_hal_gatt_client.h:77
uint8_t ucStatus
Definition: bt_hal_gatt_client.h:79
BTGattInstanceId_t xDescrId
Definition: bt_hal_gatt_client.h:78
UUID.
Definition: bt_hal_manager_types.h:96