44#ifndef _BT_HAL_GATT_SERVER_H_
45#define _BT_HAL_GATT_SERVER_H_
115 uint8_t ucServerIf );
154 uint16_t usServiceHandle );
172 uint16_t usServiceHandle,
173 uint16_t usInclSrvcHandle );
194 uint16_t usServiceHandle,
195 uint16_t usCharHandle );
207 uint16_t usAttrHandle );
228 uint16_t usServiceHandle,
229 uint16_t usDescrHandle );
245 uint16_t usServiceHandle );
261 uint16_t usServiceHandle );
277 uint16_t usServiceHandle );
301 uint16_t usAttrHandle,
334 uint16_t usAttrHandle,
339 uint8_t * pucValue );
534 BTService_t * pxService );
554 uint16_t usNumHandles );
573 uint16_t usServiceHandle,
574 uint16_t usIncludedHandle );
599 uint16_t usServiceHandle,
637 uint16_t usServiceHandle,
657 uint16_t usServiceHandle,
674 uint16_t usServiceHandle );
691 uint16_t usServiceHandle );
715 uint16_t usAttributeHandle,
773 BTStatus_t ( * pxAddDevicesToWhiteList )( uint8_t ucServerIf,
775 uint32_t ulNumberOfDevices );
791 BTStatus_t ( * pxRemoveDevicesFromWhiteList )( uint8_t ucServerIf,
793 uint32_t ulNumberOfDevices );
T HAL provides the standard defintions used by BT GATT interfaces.
uint16_t BTCharProperties_t
Definition: bt_hal_gatt_types.h:104
uint16_t BTCharPermissions_t
Definition: bt_hal_gatt_types.h:124
void(* BTCongestionCallback_t)(uint16_t usConnId, bool bCongested)
Definition: bt_hal_gatt_types.h:331
void(* BTServiceDeletedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, uint16_t usServiceHandle)
Callback invoked in response to pxDeleteService.
Definition: bt_hal_gatt_server.h:275
void(* BTMtuChangedCallback_t)(uint16_t usConnId, uint16_t usMtu)
Callback invoked when the MTU for a given connection changes.
Definition: bt_hal_gatt_server.h:398
void(* BTResponseConfirmationCallback_t)(BTStatus_t xStatus, uint16_t usHandle)
Callback triggered in response to sendResponse if the remote device sends a confirmation.
Definition: bt_hal_gatt_server.h:372
void(* BTServiceStoppedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, uint16_t usServiceHandle)
Callback invoked in response to pxStopService.
Definition: bt_hal_gatt_server.h:259
void(* BTServiceAddedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, BTGattSrvcId_t *pxSrvcId, uint16_t usServiceHandle)
Callback invoked in response to pxAddService.
Definition: bt_hal_gatt_server.h:151
void(* BTIncludedServiceAddedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, uint16_t usServiceHandle, uint16_t usInclSrvcHandle)
Callback invoked in response to pxAddIncludedService.
Definition: bt_hal_gatt_server.h:170
void(* BTRegisterServerCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, BTUuid_t *pxAppUuid)
Callback invoked in response to pxRegisterServer.
Definition: bt_hal_gatt_server.h:98
void(* BTServiceStartedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, uint16_t usServiceHandle)
Callback invoked in response to pxStartService.
Definition: bt_hal_gatt_server.h:243
void(* BTConnectionCallback_t)(uint16_t usConnId, uint8_t ucServerIf, bool bConnected, BTBdaddr_t *pxBda)
Callback invoked on a connection event.
Definition: bt_hal_gatt_server.h:131
void(* BTRequestExecWriteCallback_t)(uint16_t usConnId, uint32_t ulTransId, BTBdaddr_t *pxBda, bool bExecWrite)
Callback invoked on execute write event.
Definition: bt_hal_gatt_server.h:357
void(* BTWhiteListChangedCallback_t)(const BTBdaddr_t *pxBdAddr, bool bIsAdded)
Callback for notifying modification in white list.
Definition: bt_hal_gatt_server.h:410
void(* BTCharacteristicAddedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, BTUuid_t *pxUuid, uint16_t usServiceHandle, uint16_t usCharHandle)
Callback invoked in response to pxAddCharacteristic.
Definition: bt_hal_gatt_server.h:191
void(* BTDescriptorAddedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, BTUuid_t *pxUuid, uint16_t usServiceHandle, uint16_t usDescrHandle)
Callback invoked in response to pxAddDescriptor.
Definition: bt_hal_gatt_server.h:225
void(* BTIndicationSentCallback_t)(uint16_t usConnId, BTStatus_t xStatus)
Callback on confirmation device from the remote device to an indication. Or confirm a Notification as...
Definition: bt_hal_gatt_server.h:385
void(* BTRequestReadCallback_t)(uint16_t usConnId, uint32_t ulTransId, BTBdaddr_t *pxBda, uint16_t usAttrHandle, uint16_t usOffset)
Callback invoked on read event.
Definition: bt_hal_gatt_server.h:298
void(* BTSetValCallback_t)(BTStatus_t xStatus, uint16_t usAttrHandle)
Callback invoked in response to pxSetVal.
Definition: bt_hal_gatt_server.h:206
void(* BTRequestWriteCallback_t)(uint16_t usConnId, uint32_t ulTransId, BTBdaddr_t *pxBda, uint16_t usAttrHandle, uint16_t usOffset, size_t xLength, bool bNeedRsp, bool bIsPrep, uint8_t *pucValue)
Callback invoked on write event.
Definition: bt_hal_gatt_server.h:331
void(* BTUnregisterServerCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf)
Callback invoked in response to pxUnregisterServer.
Definition: bt_hal_gatt_server.h:114
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
BTRspErrorStatus_t
Error status sent inside response to a read or write from the client.
Definition: bt_hal_gatt_server.h:55
@ eBTRspErrorSignedMitm
Definition: bt_hal_gatt_server.h:60
@ eBTRspErrorNo_mitm
Definition: bt_hal_gatt_server.h:57
@ eBTRspErrorMitm
Definition: bt_hal_gatt_server.h:58
@ eBTRspErrorNone
Definition: bt_hal_gatt_server.h:56
@ eBTRspErrorSignedNoMitm
Definition: bt_hal_gatt_server.h:59
BT/BLE address.
Definition: bt_hal_manager_types.h:77
Callback structure for GATT server.
Definition: bt_hal_gatt_server.h:418
BTDescriptorAddedCallback_t pxDescriptorAddedCb
Definition: bt_hal_gatt_server.h:426
BTWhiteListChangedCallback_t pxBTWhiteListChangedCb
Definition: bt_hal_gatt_server.h:437
BTSetValCallback_t pxSetValCallbackCb
Definition: bt_hal_gatt_server.h:425
BTUnregisterServerCallback_t pxUnregisterServerCb
Definition: bt_hal_gatt_server.h:420
BTRegisterServerCallback_t pxRegisterServerCb
Definition: bt_hal_gatt_server.h:419
BTServiceStoppedCallback_t pxServiceStoppedCb
Definition: bt_hal_gatt_server.h:428
BTServiceStartedCallback_t pxServiceStartedCb
Definition: bt_hal_gatt_server.h:427
BTIncludedServiceAddedCallback_t pxIncludedServiceAddedCb
Definition: bt_hal_gatt_server.h:423
BTIndicationSentCallback_t pxIndicationSentCb
Definition: bt_hal_gatt_server.h:434
BTResponseConfirmationCallback_t pxResponseConfirmationCb
Definition: bt_hal_gatt_server.h:433
BTConnectionCallback_t pxConnectionCb
Definition: bt_hal_gatt_server.h:421
BTRequestExecWriteCallback_t pxRequestExecWriteCb
Definition: bt_hal_gatt_server.h:432
BTCharacteristicAddedCallback_t pxCharacteristicAddedCb
Definition: bt_hal_gatt_server.h:424
BTCongestionCallback_t pxCongestionCb
Definition: bt_hal_gatt_server.h:435
BTServiceDeletedCallback_t pxServiceDeletedCb
Definition: bt_hal_gatt_server.h:429
BTMtuChangedCallback_t pxMtuChangedCb
Definition: bt_hal_gatt_server.h:436
BTRequestReadCallback_t pxRequestReadCb
Definition: bt_hal_gatt_server.h:430
BTServiceAddedCallback_t pxServiceAddedCb
Definition: bt_hal_gatt_server.h:422
BTRequestWriteCallback_t pxRequestWriteCb
Definition: bt_hal_gatt_server.h:431
Represents the standard BT-GATT server interface.
Definition: bt_hal_gatt_server.h:446
GATT Service ID.
Definition: bt_hal_gatt_types.h:164
GATT value type used in response to remote read/Write requests.
Definition: bt_hal_gatt_server.h:68
uint16_t usHandle
Definition: bt_hal_gatt_server.h:69
BTRspErrorStatus_t xRspErrorStatus
Definition: bt_hal_gatt_server.h:73
uint16_t usOffset
Definition: bt_hal_gatt_server.h:71
size_t xLen
Definition: bt_hal_gatt_server.h:72
uint8_t * pucValue
Definition: bt_hal_gatt_server.h:70
UUID.
Definition: bt_hal_manager_types.h:96
GATT response to read and write.
Definition: bt_hal_gatt_server.h:80
uint16_t usHandle
Definition: bt_hal_gatt_server.h:82
BTGattValue_t xAttrValue
Definition: bt_hal_gatt_server.h:81