ble_srv_disc_utils.h File Reference

Service Discovery Utilities API. More...

#include <stdint.h>
+ Include dependency graph for ble_srv_disc_utils.h:

Go to the source code of this file.

Macros

#define BLE_SRV_DISC_PROC_MAX   6
 Maximum number of services discovery procedure in one application. More...
 

Enumerations

enum  ble_srv_disc_state_t { BLE_SRV_DISC_NO_IMPLEMENT, BLE_SRV_DISC_UNDERWAY, BLE_SRV_DISC_COMPLETELY }
 BLE Service Discovery Procedure State. More...
 
enum  ble_srv_disc_proc_t {
  BLE_SRV_DISC_PROC_ID_0, BLE_SRV_DISC_PROC_ID_1, BLE_SRV_DISC_PROC_ID_2, BLE_SRV_DISC_PROC_ID_3,
  BLE_SRV_DISC_PROC_ID_4, BLE_SRV_DISC_PROC_ID_5, BLE_SRV_DISC_PROC_NB
}
 BLE Service Discovery Procedure ID. More...
 

Functions

void ble_srv_disc_proc_state_set (uint8_t srv_disc_proc_id, ble_srv_disc_state_t srv_disc_state)
 Service discovery procedure state set. More...
 
ble_srv_disc_state_t ble_srv_disc_proc_state_get (uint8_t srv_disc_proc_id)
 Get service discovery procedure state. More...
 

Detailed Description

Service Discovery Utilities 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_srv_disc_utils.h.