Go to the documentation of this file.
40 #ifndef _BT_HAL_GATT_CLIENT_H_
41 #define _BT_HAL_GATT_CLIENT_H_
261 uint32_t ulServerIf );
303 uint16_t usStartHandle,
304 uint16_t usEndHandle );
318 uint32_t ulAddedCount );
459 uint32_t ulAuthReq );
501 uint32_t ulAuthReq );
557 BTStatus_t ( * pxRegisterForNotification )( uint8_t ucClientIf,
575 BTStatus_t ( * pxUnregisterForNotification )( uint8_t ucClientIf,
void(* BTListenCallback_t)(BTGattStatus_t xStatus, uint32_t ulServerIf)
Callback indicating the status of a listen() operation.
Definition: bt_hal_gatt_client.h:260
void(* BTReadRemoteRssiCallback_t)(uint8_t ucClientIf, BTBdaddr_t *pxBda, uint32_t ulRssi, BTStatus_t xStatus)
Definition: bt_hal_gatt_types.h:301
void(* BTReadDescriptorCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, BTGattReadParams_t *pxData)
Callback invoked in response to pxReadDescriptor.
Definition: bt_hal_gatt_client.h:236
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:196
void(* BTDisconnectCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint8_t ucClientIf, BTBdaddr_t *pxBda)
Definition: bt_hal_gatt_types.h:294
@ eBTGattcInvalidControllerOutput
Definition: bt_hal_gatt_client.h:121
UUID.
Definition: bt_hal_manager_types.h:84
void(* BTConnectCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint8_t ucClientIf, BTBdaddr_t *pxBda)
Definition: bt_hal_gatt_types.h:288
@ eBTGattcModeUnsupported
Definition: bt_hal_gatt_client.h:116
@ eBTGattcIncorrectState
Definition: bt_hal_gatt_client.h:118
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:211
@ eBTGattcCommandStored
Definition: bt_hal_gatt_client.h:114
@ eBTGattcDeviceTimeout
Definition: bt_hal_gatt_client.h:120
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:169
Parameters for test command interface.
Definition: bt_hal_gatt_client.h:95
@ eBTGattcIllegalValue
Definition: bt_hal_gatt_client.h:117
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:98
Definition: bt_hal_gatt_client.h:321
@ eBTGattcCommandBusy
Definition: bt_hal_gatt_client.h:113
void(* BTExecuteWriteCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus)
GATT execute prepared write callback. Triggered by pxExecuteWrite.
Definition: bt_hal_gatt_client.h:223
#define btGATT_MAX_ATTR_LEN
Definition: bt_hal_gatt_types.h:49
void(* BTServicesAddedCallback_t)(uint16_t usConnId, BTGattDbElement_t *pxAdded, uint32_t ulAddedCount)
GATT services were added.
Definition: bt_hal_gatt_client.h:316
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:152
BTAttrWriteRequests_t
Write request type.
Definition: bt_hal_gatt_types.h:126
Definition: bt_hal_gatt_client.h:344
void(* BTCongestionCallback_t)(uint16_t usConnId, bool bCongested)
Definition: bt_hal_gatt_types.h:311
Parameters for attribute change notifications.
Definition: bt_hal_gatt_client.h:83
@ eBTGattcUnknownAddr
Definition: bt_hal_gatt_client.h:119
GATT Service ID.
Definition: bt_hal_gatt_types.h:156
Parameters for GATT read operations.
Definition: bt_hal_gatt_client.h:61
GATT service instance ID.
Definition: bt_hal_gatt_types.h:147
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:288
@ eBTGattcCommandStarted
Definition: bt_hal_gatt_client.h:112
T HAL provides the standard defintions used by BT GATT interfaces.
BTConfigureMtuCallback_t pxConfigureMtuCb
Definition: bt_hal_gatt_client.h:335
BTTransport_t
Preferred physical Transport for GATT connection .
Definition: bt_hal_manager.h:108
BT/BLE address.
Definition: bt_hal_manager_types.h:67
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:274
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:302
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:139
Definition: bt_hal_gatt_types.h:266
@ eBTGattcErrProcessing
Definition: bt_hal_gatt_client.h:124
@ eBTGattcNoResources
Definition: bt_hal_gatt_client.h:115
BTGattStatus_t
GATT Status Codes.
Definition: bt_hal_gatt_types.h:57
void(* BTWriteDescriptorCallback_t)(uint16_t usConnId, BTGattStatus_t xStatus, uint16_t usHandle)
Callback invoked in response to pxWriteDescriptor.
Definition: bt_hal_gatt_client.h:250
@ eBTGattcSecurityError
Definition: bt_hal_gatt_client.h:122
Parameters for GATT write operations.
Definition: bt_hal_gatt_client.h:72
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:183
@ eBTGattcDelayedEncryptionCheck
Definition: bt_hal_gatt_client.h:123
BTGattcError_t
BT GATT client error codes.
Definition: bt_hal_gatt_client.h:110
@ eBTGattcCommandSuccess
Definition: bt_hal_gatt_client.h:111