SmartSnippets DA1459x SDK
Data Structures | Enumerations | Functions
ble_gattc.h File Reference

BLE GATT Client API. More...

#include <stdint.h>
#include "ble_att.h"
#include "ble_common.h"
#include "ble_gatt.h"

Go to the source code of this file.

Data Structures

struct  gattc_item_t
 
struct  ble_evt_gattc_browse_svc_t
 
struct  ble_evt_gattc_browse_completed_t
 
struct  ble_evt_gattc_discover_svc_t
 
struct  ble_evt_gattc_discover_include_t
 
struct  ble_evt_gattc_discover_char_t
 
struct  ble_evt_gattc_discover_desc_t
 
struct  ble_evt_gattc_discover_completed_t
 
struct  ble_evt_gattc_read_completed_t
 
struct  ble_evt_gattc_write_completed_t
 
struct  ble_evt_gattc_notification_t
 
struct  ble_evt_gattc_indication_t
 
struct  ble_evt_gattc_mtu_changed_t
 

Enumerations

enum  ble_evt_gattc {
  BLE_EVT_GATTC_BROWSE_SVC = BLE_EVT_CAT_FIRST(BLE_EVT_CAT_GATTC), BLE_EVT_GATTC_BROWSE_COMPLETED, BLE_EVT_GATTC_DISCOVER_SVC, BLE_EVT_GATTC_DISCOVER_INCLUDE,
  BLE_EVT_GATTC_DISCOVER_CHAR, BLE_EVT_GATTC_DISCOVER_DESC, BLE_EVT_GATTC_DISCOVER_COMPLETED, BLE_EVT_GATTC_READ_COMPLETED,
  BLE_EVT_GATTC_WRITE_COMPLETED, BLE_EVT_GATTC_NOTIFICATION, BLE_EVT_GATTC_INDICATION, BLE_EVT_GATTC_MTU_CHANGED
}
 
enum  gattc_item_type_t { GATTC_ITEM_TYPE_NONE, GATTC_ITEM_TYPE_INCLUDE, GATTC_ITEM_TYPE_CHARACTERISTIC, GATTC_ITEM_TYPE_DESCRIPTOR }
 
enum  gattc_discovery_type_t { GATTC_DISCOVERY_TYPE_SVC, GATTC_DISCOVERY_TYPE_INCLUDED, GATTC_DISCOVERY_TYPE_CHARACTERISTICS, GATTC_DISCOVERY_TYPE_DESCRIPTORS }
 

Functions

ble_error_t ble_gattc_browse (uint16_t conn_idx, const att_uuid_t *uuid)
 Browse services on remote GATT server. More...
 
ble_error_t ble_gattc_browse_range (uint16_t conn_idx, uint16_t start_h, uint16_t end_h, const att_uuid_t *uuid)
 Browse services on remote GATT server in a given range. More...
 
ble_error_t ble_gattc_discover_svc (uint16_t conn_idx, const att_uuid_t *uuid)
 Discover services on remote GATT server. More...
 
ble_error_t ble_gattc_discover_include (uint16_t conn_idx, uint16_t start_h, uint16_t end_h)
 Discover included services on remote GATT server. More...
 
ble_error_t ble_gattc_discover_char (uint16_t conn_idx, uint16_t start_h, uint16_t end_h, const att_uuid_t *uuid)
 Discover characteristics on remote GATT server. More...
 
ble_error_t ble_gattc_discover_desc (uint16_t conn_idx, uint16_t start_h, uint16_t end_h)
 Discover descriptors on remote GATT server. More...
 
ble_error_t ble_gattc_read (uint16_t conn_idx, uint16_t handle, uint16_t offset)
 Read attribute from remote GATT server. More...
 
ble_error_t ble_gattc_write (uint16_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length, const uint8_t *value)
 Write attribute to remote GATT server. More...
 
ble_error_t ble_gattc_write_no_resp (uint16_t conn_idx, uint16_t handle, bool signed_write, uint16_t length, const uint8_t *value)
 Write attribute to remote GATT server (without response) More...
 
ble_error_t ble_gattc_write_prepare (uint16_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length, const uint8_t *value)
 Prepare long/reliable write to remote GATT server. More...
 
ble_error_t ble_gattc_write_execute (uint16_t conn_idx, bool commit)
 Execute reliable/long write to remote GATT server. More...
 
ble_error_t ble_gattc_indication_cfm (uint16_t conn_idx, uint16_t handle) __attribute__((deprecated))
 Send confirmation for received indication. More...
 
ble_error_t ble_gattc_get_mtu (uint16_t conn_idx, uint16_t *mtu)
 Get current TX MTU for peer. More...
 
ble_error_t ble_gattc_exchange_mtu (uint16_t conn_idx)
 Exchange MTU. More...
 

Detailed Description

BLE GATT Client API.

Copyright (C) 2015-2019 Renesas Electronics Corporation and/or its affiliates. All rights reserved. Confidential Information.

This software ("Software") is supplied by Renesas Electronics Corporation and/or its affiliates ("Renesas"). Renesas grants you a personal, non-exclusive, non-transferable, revocable, non-sub-licensable right and license to use the Software, solely if used in or together with Renesas products. You may make copies of this Software, provided this copyright notice and disclaimer ("Notice") is included in all such copies. Renesas reserves the right to change or discontinue the Software at any time without notice.

THE SOFTWARE IS PROVIDED "AS IS". RENESAS DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. TO THE MAXIMUM EXTENT PERMITTED UNDER LAW, IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE, EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. USE OF THIS SOFTWARE MAY BE SUBJECT TO TERMS AND CONDITIONS CONTAINED IN AN ADDITIONAL AGREEMENT BETWEEN YOU AND RENESAS. IN CASE OF CONFLICT BETWEEN THE TERMS OF THIS NOTICE AND ANY SUCH ADDITIONAL LICENSE AGREEMENT, THE TERMS OF THE AGREEMENT SHALL TAKE PRECEDENCE. BY CONTINUING TO USE THIS SOFTWARE, YOU AGREE TO THE TERMS OF THIS NOTICE.IF YOU DO NOT AGREE TO THESE TERMS, YOU ARE NOT PERMITTED TO USE THIS SOFTWARE.