SmartSnippets DA1459x SDK
Data Structures | Typedefs | Functions
ble_client.h File Reference

GATT Client handling routines API. More...

#include <stdbool.h>
#include "ble_gattc.h"
#include "ble_gap.h"

Go to the source code of this file.

Data Structures

struct  ble_client
 

Typedefs

typedef struct ble_client ble_client_t
 
typedef void(* read_completed_evt_t) (ble_client_t *client, const ble_evt_gattc_read_completed_t *evt)
 Read completed callback. More...
 
typedef void(* write_completed_evt_t) (ble_client_t *client, const ble_evt_gattc_write_completed_t *evt)
 Write completed callback. More...
 
typedef void(* notification_evt_t) (ble_client_t *client, const ble_evt_gattc_notification_t *evt)
 Notification callback. More...
 
typedef void(* indication_evt_t) (ble_client_t *client, const ble_evt_gattc_indication_t *evt)
 Indication callback. More...
 
typedef void(* disconnect_evt_t) (ble_client_t *client, const ble_evt_gap_disconnected_t *evt)
 Disconnected callback. More...
 
typedef void(* serialize_cb_t) (ble_client_t *client, void *data, size_t *length)
 Serialize callback. More...
 
typedef void(* attach_cb_t) (ble_client_t *client)
 Attach callback. More...
 
typedef void(* cleanup_cb_t) (ble_client_t *client)
 Cleanup callback. More...
 

Functions

void ble_client_add (ble_client_t *client)
 Add client. More...
 
void ble_client_remove (const ble_client_t *client)
 Remove client. More...
 
void ble_client_cleanup (ble_client_t *client)
 Cleanup client. More...
 
void ble_clients_cleanup (void)
 Cleanup all clients. More...
 
void ble_client_serialize (ble_client_t *client, void *data, size_t *length)
 Serialize client. More...
 
void ble_client_attach (ble_client_t *client, uint16_t conn_idx)
 Attach client. More...
 
void ble_client_handle_event (const ble_evt_hdr_t *evt)
 Handle BLE event. More...
 
__STATIC_INLINE bool ble_client_in_range (const ble_client_t *client, uint16_t start_h, uint16_t end_h)
 Check if client is in given handles range. More...
 

Detailed Description

GATT Client handling routines API.

Copyright (C) 2015-2023 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.