ble_prf.h File Reference

BLE PRF API. More...

#include "ble_error.h"
#include "ble_att.h"
#include "ble_gatts.h"
#include "ble_gattc.h"
#include "ble_gatt.h"
#include "ble_gapc.h"
#include "ble_event.h"

Go to the source code of this file.

Classes

struct  ble_prf_manager_cbs_t
 Profile manager callbacks. More...
 
struct  gatts_read_req_cb_t
 GATT read request struct. More...
 
struct  gatts_write_req_cb_t
 GATT write request struct. More...
 
struct  gatts_prep_write_req_cb_t
 GATT prepare write request struct. More...
 
struct  ble_gatts_ntf_ind_t
 GATTS Operation Complete event structure. More...
 
struct  prf_server_info_t
 Profile server register information structure. More...
 

Typedefs

typedef uint8_t(* prf_init_func_t) (void)
 Initialization of the Profile module. More...
 
typedef void(* prf_on_connect_func_t) (uint8_t conn_idx, const ble_gap_bdaddr_t *p_peer_bd_addr)
 Handles Connection creation. There is no need to recovery CCCD because stack will do that. More...
 
typedef void(* prf_on_disconnect_func_t) (uint8_t conn_idx, uint8_t reason)
 Handles Disconnection. There is no need to recovery CCCD because stack will do that. More...
 

Functions

sdk_err_t ble_gatts_prf_add (ble_gatts_create_db_t *p_gatts_db, ble_evt_handler_t evt_handler)
 Add a server profile by providing its detailed information.. More...
 
uint16_t ble_gattc_prf_add (ble_uuid_t *p_uuid, ble_evt_handler_t evt_handler)
 Add a client profile by providing its detail information. More...
 

Detailed Description

BLE PRF 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_prf.h.