1 /***************************************************************************//**
2 * \file cy_ble_defines.h
3 * \version 3.60
4 *
5 * \brief
6 *  This file contains common defines for the BLE.
7 *
8 ********************************************************************************
9 * \copyright
10 * Copyright 2017-2021, Cypress Semiconductor Corporation.  All rights reserved.
11 * You may use this file only in accordance with the license, terms, conditions,
12 * disclaimers, and limitations in the end user license agreement accompanying
13 * the software package with which this file was provided.
14 *******************************************************************************/
15 
16 #ifndef CY_BLE_DEFINES_H
17 #define CY_BLE_DEFINES_H
18 
19 /**
20  * Definitions for CY_BLE_MODE
21  */
22 #define CY_BLE_PROFILE                  (0U)  /* Complete BLE Protocol mode enables both BLE Host and Controller. */
23 #define CY_BLE_HCI                      (1U)  /* BLE Controller Only (HCI over UART) mode which enables the use of the
24                                                * device as a BLE controller. */
25 
26 /**
27  * Definitions for CY_BLE_STACK_MODE
28  */
29 #define CY_BLE_STACK_MODE_SINGLE_SOC    (3U)  /* Host and Controller with a software interface. */
30 #define CY_BLE_STACK_MODE_DUAL_IPC      (2U)  /* Host and Controller with an IPC interface. */
31 
32 /**
33  * Definitions (masks) for CY_BLE_GAP_ROLE
34  */
35 #define CY_BLE_GAP_HCI                  (0x00U) /* Used when the BLE operates in HCI mode. */
36 #define CY_BLE_GAP_PERIPHERAL           (0x01U) /* The device operates as peripheral. */
37 #define CY_BLE_GAP_CENTRAL              (0x02U) /* The device operates as central. */
38 #define CY_BLE_GAP_BROADCASTER          (0x04U) /* The device operates as a broadcaster. */
39 #define CY_BLE_GAP_OBSERVER             (0x08U) /* The device operates as an observer. */
40 
41 /**
42  * Definitions (masks) for CY_BLE_GATT_ROLE
43  */
44 #define CY_BLE_GATT_SERVER              (0x01U) /* Server */
45 #define CY_BLE_GATT_CLIENT              (0x02U) /* Client */
46 #define CY_BLE_GATT_BOTH                (CY_BLE_GATT_SERVER | CY_BLE_GATT_CLIENT)
47 
48 /**
49  * Definitions for Cortex cores
50  */
51 #define CY_BLE_CORE_CORTEX_M4           4U
52 #define CY_BLE_CORE_CORTEX_M0P          0U
53 #define CY_BLE_CORE_DUAL                255U
54 
55 /**
56  * Definitions for CY_BLE_BONDING_REQUIREMENT
57  */
58 #define CY_BLE_BONDING_YES              (0x01U)
59 #define CY_BLE_BONDING_NO               (0x00U)
60 
61 /**
62  * Definitions for CY_BLE_SHARING_MODE
63  */
64 #define CY_BLE_SHARING_NONE             (0U)  /* The OTA feature is disabled. */
65 #define CY_BLE_SHARING_EXPORT           (1U)  /* Stack and Profiles */
66 #define CY_BLE_SHARING_IMPORT           (2U)  /* Profile only. */
67 
68 
69 
70 #endif /* !defined(CY_BLE_DEFINES_H)*/
71 
72 /* [] END OF FILE */
73