Classes | Macros | Enumerations | Functions
ble_gattc_cache.h File Reference

BLE GATTC API. More...

`#include "ble_error.h"`
`#include "ble_gatt.h"`
`#include "ble_att.h"`
`#include "ble_gapc.h"`
`#include <stdint.h>`
`#include <stdbool.h>`

Go to the source code of this file.

## Classes
struct | ble_gattc_cache_service_t
| GATTC Cache service attribute structure. More...
struct | ble_gattc_cache_include_t
| GATTC Cache include attribute structure. More...
struct | ble_gattc_cache_char_t
| GATTC Cache characteristic attribute structure. More...
struct | ble_gattc_cache_desc_t
| GATTC Cache characteristic descriptor attribute structure. More...
union | attr_cache_info
| GATTC cache attribute information uinon. More...
struct | attr_cache_info_t
| GATTC cache attribute information structure. More...
struct | gatt_cache_list_t
| GATT caching list. More...

## Macros
#define | MAX_GATT_CACHE_NUM (0x10)

## Enumerations
enum | gattc_cache_attr_t { BLE_GATTC_CACHE_PRI_SERV, BLE_GATTC_CACHE_SEC_SERV, BLE_GATTC_CACHE_INC_SRVC, BLE_GATTC_CACHE_ATTR_CHAR, BLE_GATTC_CACHE_ATTR_DESC }
| GATT Client Cache Attribute type IDs. More...

## Functions
uint16_t | ble_gattc_cache_enable (uint8_t conn_idx)
| GATTC cache feature enable. More...
uint16_t | ble_gattc_cache_disable (uint8_t conn_idx)
| GATTC cache feature disable. More...
bool | ble_gattc_cache_feat_get (uint8_t conn_idx)
| GATTC Get cache feature state. More...
uint16_t | ble_gattc_cache_get (uint8_t conn_idx, attr_cache_info_t *p_cache_data, uint16_t *p_cache_count)
| GATTC cache data get. More...
uint16_t | ble_gattc_cache_list_get (gatt_cache_list_t *p_cache_list)
| Get the content of the whole GATT caching list. More...
uint16_t | ble_gattc_cache_delete (ble_gap_bdaddr_t *p_peer_bd_addr)
| GATTC cache date delete on disconnection state. More...

## Detailed Description

BLE GATTC API.

Attention
  #####Copyright (c) 2019 GOODIX All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file ble_gattc_cache.h.