ble_enh_prf.h File Reference

BLE PRF ENHANCED API. More...

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

Go to the source code of this file.

Functions

uint16_t ble_gatts_enh_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, including manager callback functions and GATT server callback functions. This API should be called in application initialization function. More...
 
uint16_t ble_gatts_enh_read_cfm (uint8_t conn_idx, uint16_t cid, const ble_gatts_read_cfm_t *p_param)
 Respond to an attribute read request. It is used in gatts event handle function BLE_GATTS_EVT_ENH_READ_REQUEST to send attribute value to stack which is saved in user space. More...
 
uint16_t ble_gatts_enh_write_cfm (uint8_t conn_idx, uint16_t cid, const ble_gatts_write_cfm_t *p_param)
 Respond to an attribute write request. It is used in gatts event handler function BLE_GATTS_EVT_ENH_WRITE_REQUEST to send write operation status to stack. More...
 
uint16_t ble_gatts_enh_prepare_write_cfm (uint8_t conn_idx, uint16_t cid, const ble_gatts_prep_write_cfm_t *p_param)
 Respond to an attribute prepare write request. It is used in gatts event handler function BLE_GATTS_EVT_ENH_PREP_WRITE_REQUEST to send prepare write operation status to stack. More...
 
uint16_t ble_gatts_enh_noti_ind (uint8_t conn_idx, uint16_t cid, const ble_gatts_noti_ind_t *p_param)
 Send out a notification or an indication. The execution status of sending notification or indication will be retrieved in the event BLE_GATTS_EVT_ENH_NTF_IND. More...
 
uint16_t ble_gatts_enh_mult_noti (uint8_t conn_idx, uint16_t cid, const ble_gatts_noti_multiple_t *p_param)
 Send out Multiple Variable Length Notifications. The execution status of sending notification or indication will be retrieved in the event BLE_GATTS_EVT_ENH_MULT_NTF. More...
 
uint16_t ble_gattc_prf_enh_add (uint8_t *p_client_prf_id, ble_evt_handler_t evt_handler)
 Add a client profile by providing its detail information, including manager callback functions and GATT client callback functions. This API should be called in application initialization function. More...
 
uint16_t ble_gattc_enh_prf_services_browse (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, const ble_uuid_t *p_srvc_uuid)
 Profile client Browse Specific Primary Service information on remote GATT server. More...
 
uint16_t ble_gattc_enh_prf_primary_services_discover (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, const ble_uuid_t *p_srvc_uuid)
 Profile client Discover Primary Services on remote GATT server. More...
 
uint16_t ble_gattc_enh_prf_included_services_discover (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, uint16_t start_hdl, uint16_t end_hdl)
 Profile client Discover Included Services on remote GATT server. More...
 
uint16_t ble_gattc_enh_prf_char_discover (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, ble_gattc_disc_char_t *p_disc_char)
 Profile client Discover Characteristics on remote GATT server. More...
 
uint16_t ble_gattc_enh_prf_char_desc_discover (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, uint16_t start_hdl, uint16_t end_hdl)
 Profile client Discover Characteristics Descriptors on remote GATT server. More...
 
uint16_t ble_gattc_enh_prf_read (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, uint16_t handle, uint16_t offset)
 Profile client Read Attribute from remote GATT server. More...
 
uint16_t ble_gattc_enh_prf_read_by_uuid (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, ble_gattc_read_by_uuid_t *p_read_by_uuid)
 Profile client Read Attribute by UUID. More...
 
uint16_t ble_gattc_enh_prf_read_multiple (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, const ble_gattc_read_multiple_t *p_param)
 Profile client Initiate a Read Multiple Characteristic Values procedure. More...
 
uint16_t ble_gattc_enh_prf_write (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, ble_gattc_write_attr_value_t *p_write_attr_value)
 Profile client Write (Long) Characteristic (Descriptor) Value. More...
 
uint16_t ble_gattc_enh_prf_write_prepare (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, ble_gattc_write_attr_value_t *p_write_attr_value)
 Profile client Prepare Long/Reliable Write to remote GATT server. More...
 
uint16_t ble_gattc_enh_prf_write_execute (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, bool execute)
 Profile client Execute Reliable/Long Write to remote GATT server. More...
 
uint16_t ble_gattc_enh_prf_write_no_resp (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, ble_gattc_write_no_resp_t *p_write_no_resp)
 Profile client Write Attribute to remote GATT server (without response). More...
 
uint16_t ble_gattc_enh_prf_indicate_cfm (uint8_t prf_id, uint8_t conn_idx, uint16_t cid, uint16_t handle)
 Profile client Confirm Reception of Indication. More...
 

Detailed Description

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