FreeRTOS:
BLE
BLE
|
Return to main page ↑ |
#include <bt_hal_gatt_client.h>
Data Fields | |
BTStatus_t(* | pxRegisterClient )(BTUuid_t *pxUuid) |
Registers a GATT client application with the stack. Triggers BTRegisterClientCallback_t. More... | |
BTStatus_t(* | pxUnregisterClient )(uint8_t ucClientIf) |
Unregister a client application from the stack. This api does not trigger a callback. More... | |
BTStatus_t(* | pxGattClientInit )(const BTGattClientCallbacks_t *pxCallbacks) |
Initializes the interface and provides callback routines. This api does not trigger a callback. More... | |
BTStatus_t(* | pxConnect )(uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr, bool bIsDirect, BTTransport_t xTransport) |
Create a connection to a remote LE or dual-mode device. Triggers BTConnectCallback_t. More... | |
BTStatus_t(* | pxDisconnect )(uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr, uint16_t usConnId) |
Disconnect a remote device or cancel a pending connection. Triggers BTDisconnectCallback_t. More... | |
BTStatus_t(* | pxRefresh )(uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr) |
Clear the attribute cache for a given device. This API does not trigger a callback. More... | |
BTStatus_t(* | pxSearchService )(uint16_t usConnId, BTUuid_t *pxFilterUuid) |
Enumerate all GATT services on a connected device. Optionally, the results can be filtered for a given UUID. Triggers BTSearchCompleteCallback_t. More... | |
BTStatus_t(* | pxReadCharacteristic )(uint16_t usConnId, uint16_t usHandle, uint32_t ulAuthReq) |
Read a characteristic on a remote device. Triggers BTReadCharacteristicCallback_t. More... | |
BTStatus_t(* | pxWriteCharacteristic )(uint16_t usConnId, uint16_t usHandle, BTAttrWriteRequests_t xWriteType, size_t xLen, uint32_t ulAuthReq, char *pcValue) |
Write a characteristic on a remote device. Triggers BTWriteCharacteristicCallback_t. More... | |
BTStatus_t(* | pxReadDescriptor )(uint16_t usConnId, uint16_t usHandle, uint32_t ulAuthReq) |
Read the descriptor for a given characteristic on a remote device. Triggers BTReadDescriptorCallback_t. More... | |
BTStatus_t(* | pxWriteDescriptor )(uint16_t usConnId, uint16_t usHandle, BTAttrWriteRequests_t xWriteType, size_t xLen, uint32_t ulAuthReq, char *pcValue) |
Write a remote descriptor for a given characteristic on a remote device. Triggers BTWriteDescriptorCallback_t. More... | |
BTStatus_t(* | pxExecuteWrite )(uint16_t usConnId, bool bExecute) |
Execute (or abort) a prepared write operation. Triggers BTExecuteWriteCallback_t. More... | |
BTStatus_t(* | pxRegisterForNotification )(uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr, uint16_t usHandle) |
Register to receive notifications or indications for a given characteristic. Triggers BTRegisterForNotificationCallback_t. More... | |
BTStatus_t(* | pxUnregisterForNotification )(uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr, uint16_t usHandle) |
Deregister a previous request for notifications/indications. Triggers BTRegisterForNotificationCallback_t. More... | |
BTStatus_t(* | pxReadRemoteRssi )(uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr) |
Request RSSI for a given remote device. Triggers BTReadRemoteRssiCallback_t in found in bt_hal_gatt_types.h. More... | |
BTTransport_t(* | pxGetDeviceType )(const BTBdaddr_t *pxBdAddr) |
Determine the type of the remote device (LE, BR/EDR, Dual-mode). This api does not trigger a callback. More... | |
BTStatus_t(* | pxConfigureMtu )(uint16_t usConnId, uint16_t usMtu) |
Configure the MTU for a given connection. Triggers BTConfigureMtuCallback_t. More... | |
BTStatus_t(* | pxTestCommand )(uint32_t ulCommand, BTGattTestParams_t *pxParams) |
Test mode interface. More... | |
BTStatus_t(* | pxGetGattDb )(uint16_t usConnId) |
Get gatt db content. Triggers BTGetGattDbCallback_t. More... | |
Represents the standard BT-GATT client interface.
BTStatus_t( * BTGattClientInterface_t::pxRegisterClient) (BTUuid_t *pxUuid) |
Registers a GATT client application with the stack. Triggers BTRegisterClientCallback_t.
[in] | pxUuid | Server UUID. |
BTStatus_t( * BTGattClientInterface_t::pxUnregisterClient) (uint8_t ucClientIf) |
Unregister a client application from the stack. This api does not trigger a callback.
[in] | ucClientIf | Client interface, returned on the callback BTRegisterClientCallback_t after successful pxRegisterClient call. |
BTStatus_t( * BTGattClientInterface_t::pxGattClientInit) (const BTGattClientCallbacks_t *pxCallbacks) |
Initializes the interface and provides callback routines. This api does not trigger a callback.
[in] | pxCallbacks | Initialized callbacks for GATT client. |
BTStatus_t( * BTGattClientInterface_t::pxConnect) (uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr, bool bIsDirect, BTTransport_t xTransport) |
Create a connection to a remote LE or dual-mode device. Triggers BTConnectCallback_t.
[in] | ucClientIf | Client interface, return on the callback BTRegisterClientCallback_t after successful pxRegisterClient call. |
[in] | pxBdAddr | Address of the Remote device. |
[in] | bIsDirect | Set to True for direct connection. |
[in] | xTransport | Specify if BLE or BT classic is being used. |
BTStatus_t( * BTGattClientInterface_t::pxDisconnect) (uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr, uint16_t usConnId) |
Disconnect a remote device or cancel a pending connection. Triggers BTDisconnectCallback_t.
[in] | ucClientIf | Client interface, return on the callback BTRegisterClientCallback_t after successful pxRegisterClient call. |
[in] | pxBdAddr | Address of the Remote device. |
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectCallback_t is invoked. |
BTStatus_t( * BTGattClientInterface_t::pxRefresh) (uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr) |
Clear the attribute cache for a given device. This API does not trigger a callback.
[in] | ucClientIf | Client interface, return on the callback BTRegisterClientCallback_t after successful pxRegisterClient call. |
[in] | pxBdAddr | Address of the Remote device. |
BTStatus_t( * BTGattClientInterface_t::pxSearchService) (uint16_t usConnId, BTUuid_t *pxFilterUuid) |
Enumerate all GATT services on a connected device. Optionally, the results can be filtered for a given UUID. Triggers BTSearchCompleteCallback_t.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | pxFilterUuid | Filter UUID, if set will filter by UUID. If set to NULL, no filtering will occur. |
BTStatus_t( * BTGattClientInterface_t::pxReadCharacteristic) (uint16_t usConnId, uint16_t usHandle, uint32_t ulAuthReq) |
Read a characteristic on a remote device. Triggers BTReadCharacteristicCallback_t.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | usHandle | Handle of the characteristic to be read. |
[in] | ulAuthReq | Authentication requirement. |
BTStatus_t( * BTGattClientInterface_t::pxWriteCharacteristic) (uint16_t usConnId, uint16_t usHandle, BTAttrWriteRequests_t xWriteType, size_t xLen, uint32_t ulAuthReq, char *pcValue) |
Write a characteristic on a remote device. Triggers BTWriteCharacteristicCallback_t.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | usHandle | Handle of the characteristic to be written. |
[in] | xWriteType | Write request type. |
[in] | xLen | Data length of data to be written to characteristic attribute. |
[in] | ulAuthReq | Authentication requirement. |
[in] | pcValue | Data to be written to characteristic attribute. |
BTStatus_t( * BTGattClientInterface_t::pxReadDescriptor) (uint16_t usConnId, uint16_t usHandle, uint32_t ulAuthReq) |
Read the descriptor for a given characteristic on a remote device. Triggers BTReadDescriptorCallback_t.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | usHandle | Handle of the descriptor to be read. |
[in] | ulAuthReq | Authentication requirement. |
BTStatus_t( * BTGattClientInterface_t::pxWriteDescriptor) (uint16_t usConnId, uint16_t usHandle, BTAttrWriteRequests_t xWriteType, size_t xLen, uint32_t ulAuthReq, char *pcValue) |
Write a remote descriptor for a given characteristic on a remote device. Triggers BTWriteDescriptorCallback_t.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | usHandle | Handle of the descriptor to be read. |
[in] | xWriteType | Write request type. |
[in] | xLen | Data length of data to be written to descriptor attribute. |
[in] | ulAuthReq | Authentication requirement. |
[in] | pcValue | Data to be written to descriptor attribute. |
BTStatus_t( * BTGattClientInterface_t::pxExecuteWrite) (uint16_t usConnId, bool bExecute) |
Execute (or abort) a prepared write operation. Triggers BTExecuteWriteCallback_t.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | bExecute | If set to True, will execute the prepared write. If set to false, will abort prepared write. |
BTStatus_t( * BTGattClientInterface_t::pxRegisterForNotification) (uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr, uint16_t usHandle) |
Register to receive notifications or indications for a given characteristic. Triggers BTRegisterForNotificationCallback_t.
[in] | ucClientIf | Client interface, return on the callback BTRegisterClientCallback_t after successful pxRegisterClient call. |
[in] | pxBdAddr | Address of the Remote device. |
[in] | usHandle | Handle number of attribute registered for notifications. |
BTStatus_t( * BTGattClientInterface_t::pxUnregisterForNotification) (uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr, uint16_t usHandle) |
Deregister a previous request for notifications/indications. Triggers BTRegisterForNotificationCallback_t.
[in] | ucClientIf | Client interface, return on the callback BTRegisterClientCallback_t after successful pxRegisterClient call. |
[in] | pxBdAddr | Address of the Remote device. |
[in] | usHandle | Handle number of attribute deregistered for notifications. |
BTStatus_t( * BTGattClientInterface_t::pxReadRemoteRssi) (uint8_t ucClientIf, const BTBdaddr_t *pxBdAddr) |
Request RSSI for a given remote device. Triggers BTReadRemoteRssiCallback_t in found in bt_hal_gatt_types.h.
[in] | ucClientIf | Client interface, return on the callback BTRegisterClientCallback_t after successful pxRegisterClient call. |
[in] | pxBdAddr | Address of the Remote device. |
BTTransport_t( * BTGattClientInterface_t::pxGetDeviceType) (const BTBdaddr_t *pxBdAddr) |
Determine the type of the remote device (LE, BR/EDR, Dual-mode). This api does not trigger a callback.
[in] | pxBdAddr | Address of the Remote device. |
BTStatus_t( * BTGattClientInterface_t::pxConfigureMtu) (uint16_t usConnId, uint16_t usMtu) |
Configure the MTU for a given connection. Triggers BTConfigureMtuCallback_t.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | usMtu | MTU size. |
BTStatus_t( * BTGattClientInterface_t::pxTestCommand) (uint32_t ulCommand, BTGattTestParams_t *pxParams) |
Test mode interface.
[in] | ulCommand | Test command to be executed. |
[in] | pxParams | Parameters for test command interface. |
BTStatus_t( * BTGattClientInterface_t::pxGetGattDb) (uint16_t usConnId) |
Get gatt db content. Triggers BTGetGattDbCallback_t.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |