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

GATT Database Access Functions. More...

Functions

wiced_gattdb_entry_twiced_bt_gattdb_next_entry (wiced_gattdb_entry_t *p_db_entry)
 Function wiced_bt_gattdb_next_entry. More...
 
uint16_t wiced_bt_gattdb_get_handle (wiced_gattdb_entry_t *p_db_entry)
 Function wiced_bt_gattdb_get_handle. More...
 
int wiced_bt_gattdb_get_attribute_uuid (wiced_gattdb_entry_t *p_db_entry, uint8_t *p_uuid)
 Function wiced_bt_gattdb_get_attribute_uuid. More...
 
uint16_t wiced_bt_gattdb_get_attribute_value_uuid16 (wiced_gattdb_entry_t *p_db_entry)
 Function wiced_bt_gattdb_get_attribute_value_uuid16. More...
 
uint16_t wiced_bt_gattdb_get_charcteristic_descriptor_handle (uint16_t char_handle, uint16_t descriptor_uuid)
 Function wiced_bt_gattdb_get_charcteristic_descriptor_handle. More...
 

Detailed Description

GATT Database Access Functions.

Function Documentation

int wiced_bt_gattdb_get_attribute_uuid ( wiced_gattdb_entry_t p_db_entry,
uint8_t *  p_uuid 
)

Function wiced_bt_gattdb_get_attribute_uuid.

Parameters
[in]p_db_entry: GATT DB atrribute entry
[out]p_uuid: pointer to UUID holder. Application should pass the required size of UUID It is recommended to pass uint8_t[16], so that we can avoid overflow in case of 128 bit uuid
Returns
size of the UUID
uint16_t wiced_bt_gattdb_get_attribute_value_uuid16 ( wiced_gattdb_entry_t p_db_entry)

Function wiced_bt_gattdb_get_attribute_value_uuid16.

Utility to get service UUID from GATTDB Primary/Secondary services

Parameters
[in]p_db_entry: GATT DB atrribute entry
Returns
16 bit uuid
uint16_t wiced_bt_gattdb_get_charcteristic_descriptor_handle ( uint16_t  char_handle,
uint16_t  descriptor_uuid 
)

Function wiced_bt_gattdb_get_charcteristic_descriptor_handle.

Utility to get characteristic descriptor handle value from GATTDB. If characteristic does not have a characteristic descriptor with specified UUID, function will return zero

Parameters
[in]char_handle: GATT DB characteristic handle
[in]descriptor_uuid: Characteristic descriptor UUID
Returns
characteristic descriptor handle
uint16_t wiced_bt_gattdb_get_handle ( wiced_gattdb_entry_t p_db_entry)

Function wiced_bt_gattdb_get_handle.

Utility to get attribute handle from GATT DB entry To get next attribute handle, application needs traverse by wiced_bt_gattdb_next_entry

Parameters
[in]p_db_entry: GATT DB atrribute entry
Returns
attribute handle
wiced_gattdb_entry_t* wiced_bt_gattdb_next_entry ( wiced_gattdb_entry_t p_db_entry)

Function wiced_bt_gattdb_next_entry.

Find the next GATT attribute entry in the local GATT database To find the first attribute entry pass the address of the local GATT database as a parameter

Parameters
[in]p_db_entry: GATT DB atrribute entry
Returns
pointer to next attribute entry