Infineon Logo AIROC BTSDK v4.8 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Generic Attribute (GATT) Utility Functions. More...

Functions

wiced_bt_gatt_status_t wiced_bt_util_set_gatt_client_config_descriptor (uint16_t conn_id, uint16_t handle, uint16_t value)
 Sets the value of the Client Configuration Descriptor. More...
 
wiced_bt_gatt_status_t wiced_bt_util_send_gatt_discover (uint16_t conn_id, wiced_bt_gatt_discovery_type_t type, uint16_t uuid, uint16_t s_handle, uint16_t e_handle)
 Formats and sends a GATT discover request. More...
 
wiced_bt_gatt_status_t wiced_bt_util_send_gatt_read_by_handle (uint16_t conn_id, uint16_t handle)
 Formats and sends a Read By Handle GATT request. More...
 
wiced_bt_gatt_status_t wiced_bt_util_send_gatt_read_by_type (uint16_t conn_id, uint16_t s_handle, uint16_t e_handle, uint16_t uuid)
 Formats and sends a Read by Type GATT request. More...
 
int wiced_bt_util_uuid_cpy (wiced_bt_uuid_t *p_dst, wiced_bt_uuid_t *p_src)
 Copies a UUID. More...
 
int wiced_bt_util_uuid_cmp (wiced_bt_uuid_t *p_uuid1, wiced_bt_uuid_t *p_uuid2)
 Compares two UUIDs. More...
 

Detailed Description

Generic Attribute (GATT) Utility Functions.

Function Documentation

wiced_bt_gatt_status_t wiced_bt_util_send_gatt_discover ( uint16_t  conn_id,
wiced_bt_gatt_discovery_type_t  type,
uint16_t  uuid,
uint16_t  s_handle,
uint16_t  e_handle 
)

Formats and sends a GATT discover request.

Parameters
[in]conn_id: connection identifier.
[in]type: GATT discovery type.
[in]uuid: UUID of the attribute to search for.
[in]s_handle: Start handle.
[in]e_handle: Start handle.
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_util_send_gatt_read_by_handle ( uint16_t  conn_id,
uint16_t  handle 
)

Formats and sends a Read By Handle GATT request.

Parameters
[in]conn_id: connection identifier.
[in]handle: Attribute handle of the attribute to read.
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_util_send_gatt_read_by_type ( uint16_t  conn_id,
uint16_t  s_handle,
uint16_t  e_handle,
uint16_t  uuid 
)

Formats and sends a Read by Type GATT request.

Parameters
[in]conn_id: Connection handle
[in]s_handle: Start handle
[in]e_handle: End handle
[in]uuid: UUID of the attribute to read
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_util_set_gatt_client_config_descriptor ( uint16_t  conn_id,
uint16_t  handle,
uint16_t  value 
)

Sets the value of the Client Configuration Descriptor.

Parameters
[in]conn_id: GATT connection ID
[in]handle: Handle of the descriptor to modify
[in]value: Value to set
Returns
wiced_bt_gatt_status_t
int wiced_bt_util_uuid_cmp ( wiced_bt_uuid_t p_uuid1,
wiced_bt_uuid_t p_uuid2 
)

Compares two UUIDs.

Note
Can only compare UUIDs of the same length.
Parameters
[out]p_uuid1: First UUID
[in]p_uuid2: Second UUID
Returns
int 0 if UUID are equal; -1 if error, 1 if UUIDs are different.
int wiced_bt_util_uuid_cpy ( wiced_bt_uuid_t p_dst,
wiced_bt_uuid_t p_src 
)

Copies a UUID.

Parameters
[out]p_dst: Destination UUID
[in]p_src: Source UUID
Returns
int 0 if success, -1 if error