44 #ifndef _BT_HAL_GATT_SERVER_H_ 45 #define _BT_HAL_GATT_SERVER_H_ 109 uint8_t ucServerIf );
144 uint16_t usServiceHandle );
160 uint16_t usServiceHandle,
161 uint16_t usInclSrvcHandle );
180 uint16_t usServiceHandle,
181 uint16_t usCharHandle );
191 uint16_t usAttrHandle );
210 uint16_t usServiceHandle,
211 uint16_t usDescrHandle );
225 uint16_t usServiceHandle );
239 uint16_t usServiceHandle );
253 uint16_t usServiceHandle );
275 uint16_t usAttrHandle,
306 uint16_t usAttrHandle,
311 uint8_t * pucValue );
491 BTService_t * pxService );
511 uint16_t usNumHandles );
530 uint16_t usServiceHandle,
531 uint16_t usIncludedHandle );
556 uint16_t usServiceHandle,
558 BTCharProperties_t xProperties,
559 BTCharPermissions_t xPermissions );
594 uint16_t usServiceHandle,
596 BTCharPermissions_t ulPermissions );
614 uint16_t usServiceHandle,
631 uint16_t usServiceHandle );
648 uint16_t usServiceHandle );
672 uint16_t usAttributeHandle,
730 BTStatus_t ( * pxAddDevicesToWhiteList )( uint8_t ucServerIf,
732 uint32_t ulNumberOfDevices );
748 BTStatus_t ( * pxRemoveDevicesFromWhiteList )( uint8_t ucServerIf,
750 uint32_t ulNumberOfDevices );
uint8_t * pucValue
Definition: bt_hal_gatt_server.h:68
void(* BTSetValCallback_t)(BTStatus_t xStatus, uint16_t usAttrHandle)
Callback invoked in response to pxSetVal.
Definition: bt_hal_gatt_server.h:190
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:158
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:340
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:362
Definition: bt_hal_gatt_server.h:402
BTGattValue_t xAttrValue
Definition: bt_hal_gatt_server.h:79
GATT value type used in response to remote read/Write requests.
Definition: bt_hal_gatt_server.h:65
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:303
void(* BTWhiteListChangedCallback_t)(const BTBdaddr_t *pxBdAddr, bool bIsAdded)
Callback for notifying modification in white list.
Definition: bt_hal_gatt_server.h:372
BTRspErrorStatus_t
Error status sent inside response to a read or write from the client.
Definition: bt_hal_gatt_server.h:53
Definition: bt_hal_gatt_server.h:59
Definition: bt_hal_gatt_server.h:58
void(* BTCongestionCallback_t)(uint16_t usConnId, bool bCongested)
Definition: bt_hal_gatt_types.h:311
void(* BTServiceStartedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, uint16_t usServiceHandle)
Callback invoked in response to pxStartService.
Definition: bt_hal_gatt_server.h:223
Callback structure for GATT server.
Definition: bt_hal_gatt_server.h:378
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:177
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:272
size_t xLen
Definition: bt_hal_gatt_server.h:70
Definition: bt_hal_gatt_server.h:56
void(* BTServiceStoppedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, uint16_t usServiceHandle)
Callback invoked in response to pxStopService.
Definition: bt_hal_gatt_server.h:237
UUID.
Definition: bt_hal_manager_types.h:83
Definition: bt_hal_gatt_server.h:57
T HAL provides the standard defintions used by BT GATT interfaces.
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:207
void(* BTRegisterServerCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, BTUuid_t *pxAppUuid)
Callback invoked in response to pxRegisterServer.
Definition: bt_hal_gatt_server.h:94
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:141
void(* BTServiceDeletedCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf, uint16_t usServiceHandle)
Callback invoked in response to pxDeleteService.
Definition: bt_hal_gatt_server.h:251
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:351
GATT response to read and write.
Definition: bt_hal_gatt_server.h:77
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:97
void(* BTUnregisterServerCallback_t)(BTStatus_t xStatus, uint8_t ucServerIf)
Callback invoked in response to pxUnregisterServer.
Definition: bt_hal_gatt_server.h:108
Definition: bt_hal_gatt_server.h:55
uint16_t usHandle
Definition: bt_hal_gatt_server.h:67
uint16_t usHandle
Definition: bt_hal_gatt_server.h:80
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:327
BT/BLE address.
Definition: bt_hal_manager_types.h:66
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:123
uint16_t usOffset
Definition: bt_hal_gatt_server.h:69
BTRspErrorStatus_t xRspErrorStatus
Definition: bt_hal_gatt_server.h:71
GATT Service ID.
Definition: bt_hal_gatt_types.h:155
BTTransport_t
Preferred physical Transport for GATT connection .
Definition: bt_hal_manager.h:107