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

GATT Database Access Functions. More...

Typedefs

typedef int32_t(* wiced_bt_gatt_GATTDB_WRITE_CB )(void *)
 

Functions

wiced_gattdb_entry_twiced_bt_gattdb_next_entry (wiced_gattdb_entry_t *p_db_entry)
 Function Name: wiced_bt_gattdb_next_entry. More...
 
uint16_t wiced_bt_gattdb_get_handle (wiced_gattdb_entry_t *p_db_entry)
 Function Name: 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 Name: wiced_bt_gattdb_get_attribute_uuid. More...
 
uint16_t wiced_bt_gattdb_get_attribute_value_uuid16 (wiced_gattdb_entry_t *p_db_entry)
 Function Name: 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 Name: wiced_bt_gattdb_get_charcteristic_descriptor_handle. More...
 
BOOL32 wiced_bt_gatt_legattdb_regWriteHandleCb (wiced_bt_gatt_GATTDB_WRITE_CB cb)
 

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 Name: wiced_bt_gattdb_get_attribute_uuid.

Gets the attribute UUID from GATT DB entry.

Parameters
[in]p_db_entry: GATT DB attribute entry
[out]p_uuid: The 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 Name: wiced_bt_gattdb_get_attribute_value_uuid16.

Gets the service UUID from GATTDB Primary/Secondary services.

Parameters
[in]p_db_entry: GATT DB attribute entry
Returns
16-bit UUID
uint16_t wiced_bt_gattdb_get_charcteristic_descriptor_handle ( uint16_t  char_handle,
uint16_t  descriptor_uuid 
)

Function Name: wiced_bt_gattdb_get_charcteristic_descriptor_handle.

Gets the characteristic descriptor handle value from GATTDB. If characteristic does not have a characteristic descriptor with specified UUID, the 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 Name: wiced_bt_gattdb_get_handle.

Gets attribute handle from GATT DB entry. To get the next attribute handle, the application needs traverse by wiced_bt_gattdb_next_entry.

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

Function Name: wiced_bt_gattdb_next_entry.

Finds 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 attribute entry
Returns
The pointer to next attribute entry.