1 /** 2 ****************************************************************************** 3 * @file ble_conf.h 4 * @author MCD Application Team 5 * @brief BLE configuration file 6 ****************************************************************************** 7 * @attention 8 * 9 * <h2><center>© Copyright (c) 2019 STMicroelectronics. 10 * All rights reserved.</center></h2> 11 * 12 * This software component is licensed by ST under Ultimate Liberty license 13 * SLA0044, the "License"; You may not use this file except in compliance with 14 * the License. You may obtain a copy of the License at: 15 * www.st.com/SLA0044 16 * 17 ****************************************************************************** 18 */ 19 20 21 /* Define to prevent recursive inclusion -------------------------------------*/ 22 #ifndef __BLE_CONF_H 23 #define __BLE_CONF_H 24 25 #include "app_conf.h" 26 27 /****************************************************************************** 28 * 29 * BLE SERVICES CONFIGURATION 30 * blesvc 31 * 32 ******************************************************************************/ 33 /** 34 * There is one handler per service enabled 35 * Note: There is no handler for the Device Information Service 36 * 37 * This shall take into account all registered handlers 38 * (from either the provided services or the custom services) 39 */ 40 #define BLE_CFG_SVC_MAX_NBR_CB 7 41 42 #define BLE_CFG_CLT_MAX_NBR_CB 3 43 44 /****************************************************************************** 45 * Device Information Service (DIS) 46 ******************************************************************************/ 47 /**< Options: Supported(1) or Not Supported(0) */ 48 #define BLE_CFG_DIS_MANUFACTURER_NAME_STRING 1 49 #define BLE_CFG_DIS_MODEL_NUMBER_STRING 0 50 #define BLE_CFG_DIS_SERIAL_NUMBER_STRING 0 51 #define BLE_CFG_DIS_HARDWARE_REVISION_STRING 0 52 #define BLE_CFG_DIS_FIRMWARE_REVISION_STRING 0 53 #define BLE_CFG_DIS_SOFTWARE_REVISION_STRING 0 54 #define BLE_CFG_DIS_SYSTEM_ID 0 55 #define BLE_CFG_DIS_IEEE_CERTIFICATION 0 56 #define BLE_CFG_DIS_PNP_ID 0 57 58 /** 59 * device information service characteristic lengths 60 */ 61 #define BLE_CFG_DIS_SYSTEM_ID_LEN_MAX (8) 62 #define BLE_CFG_DIS_MODEL_NUMBER_STRING_LEN_MAX (32) 63 #define BLE_CFG_DIS_SERIAL_NUMBER_STRING_LEN_MAX (32) 64 #define BLE_CFG_DIS_FIRMWARE_REVISION_STRING_LEN_MAX (32) 65 #define BLE_CFG_DIS_HARDWARE_REVISION_STRING_LEN_MAX (32) 66 #define BLE_CFG_DIS_SOFTWARE_REVISION_STRING_LEN_MAX (32) 67 #define BLE_CFG_DIS_MANUFACTURER_NAME_STRING_LEN_MAX (32) 68 #define BLE_CFG_DIS_IEEE_CERTIFICATION_LEN_MAX (32) 69 #define BLE_CFG_DIS_PNP_ID_LEN_MAX (7) 70 71 /****************************************************************************** 72 * Heart Rate Service (HRS) 73 ******************************************************************************/ 74 #define BLE_CFG_HRS_BODY_SENSOR_LOCATION_CHAR 1 /**< BODY SENSOR LOCATION CHARACTERISTIC */ 75 #define BLE_CFG_HRS_ENERGY_EXPENDED_INFO_FLAG 1 /**< ENERGY EXTENDED INFO FLAG */ 76 #define BLE_CFG_HRS_ENERGY_RR_INTERVAL_FLAG 1 /**< Max number of RR interval values - Shall not be greater than 9 */ 77 78 79 80 81 #endif /*__BLE_CONF_H */ 82 83 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 84