BLE_Nano nRF51 Central heart rate
Embed:
(wiki syntax)
Show/hide line numbers
ble_gatt_db.h
Go to the documentation of this file.
00001 /* Copyright (c) 2016 Nordic Semiconductor. All Rights Reserved. 00002 * 00003 * The information contained herein is property of Nordic Semiconductor ASA. 00004 * Terms and conditions of usage are described in detail in NORDIC 00005 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 00006 * 00007 * Licensees are granted free, non-transferable use of the information. NO 00008 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from 00009 * the file. 00010 */ 00011 00012 /**@file 00013 * 00014 * @defgroup ble_sdk_lib_gatt_db GATT Database Service Structure 00015 * @{ 00016 * @ingroup app_common 00017 */ 00018 00019 #ifndef BLE_GATT_DB_H__ 00020 #define BLE_GATT_DB_H__ 00021 00022 #include <stdint.h> 00023 #include "ble.h" 00024 #include "ble_gattc.h" 00025 00026 #define BLE_GATT_DB_MAX_CHARS 5 /**< The maximum number of characteristics present in a service record. */ 00027 00028 /**@brief Structure for holding the characteristic and the handle of its CCCD present on a server. 00029 */ 00030 typedef struct 00031 { 00032 ble_gattc_char_t characteristic; /**< Structure containing information about the characteristic. */ 00033 uint16_t cccd_handle; /**< CCCD Handle value for this characteristic. This will be set to BLE_GATT_HANDLE_INVALID if a CCCD is not present at the server. */ 00034 } ble_gatt_db_char_t; 00035 00036 /**@brief Structure for holding information about the service and the characteristics present on a 00037 * server. 00038 */ 00039 typedef struct 00040 { 00041 ble_uuid_t srv_uuid; /**< UUID of the service. */ 00042 uint8_t char_count; /**< Number of characteristics present in the service. */ 00043 ble_gattc_handle_range_t handle_range; /**< Service Handle Range. */ 00044 ble_gatt_db_char_t charateristics[BLE_GATT_DB_MAX_CHARS]; /**< Array of information related to the characteristics present in the service. This list can extend further than one. */ 00045 } ble_gatt_db_srv_t; 00046 00047 #endif /* BLE_GATT_DB_H__ */ 00048 00049 /** @} */ 00050
Generated on Wed Jul 13 2022 07:07:19 by 1.7.2