Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
BLERoles.h
00001 #ifndef MBED_BLE_ROLES_H__ 00002 #define MBED_BLE_ROLES_H__ 00003 00004 #if !(BLE_ROLE_OBSERVER) && !(BLE_ROLE_BROADCASTER) 00005 #error "BLE requires at least one role 'BROADCASTER' or 'OBSERVER' to be enabled" 00006 #endif 00007 00008 #if (BLE_ROLE_PERIPHERAL) || (BLE_ROLE_CENTRAL) 00009 #define BLE_FEATURE_CONNECTABLE 1 00010 #endif 00011 00012 #if (BLE_FEATURE_GATT_CLIENT) || (BLE_FEATURE_GATT_SERVER) 00013 #define BLE_FEATURE_ATT 1 00014 #endif 00015 00016 #if BLE_ROLE_PERIPHERAL 00017 #if !(BLE_ROLE_BROADCASTER) 00018 #error "BLE role 'PERIPHERAL' depends on role 'BROADCASTER'" 00019 #endif 00020 #endif // BLE_ROLE_PERIPHERAL 00021 00022 #if BLE_ROLE_CENTRAL 00023 #if !(BLE_ROLE_OBSERVER) 00024 #error "BLE role 'CENTRAL' depends on role 'OBSERVER'" 00025 #endif 00026 #endif // BLE_ROLE_CENTRAL 00027 00028 #if BLE_FEATURE_SECURITY 00029 #if !(BLE_ROLE_PERIPHERAL) && !(BLE_ROLE_CENTRAL) 00030 #error "BLE feature 'SECURITY' requires 'PERIPHERAL' or 'CENTRAL' role" 00031 #endif 00032 #endif // BLE_FEATURE_SECURITY 00033 00034 #if BLE_FEATURE_SECURE_CONNECTIONS 00035 #if !(BLE_FEATURE_SECURITY) 00036 #error "BLE feature 'SECURE CONNECTIONS' requires the 'SECURITY' feature" 00037 #endif 00038 #endif // BLE_FEATURE_SECURE_CONNECTIONS 00039 00040 #if BLE_FEATURE_SIGNING 00041 #if !(BLE_FEATURE_SECURITY) 00042 #error "BLE feature 'SIGNING' requires the 'SECURITY' feature" 00043 #endif 00044 #endif // BLE_FEATURE_SIGNING 00045 00046 #if BLE_FEATURE_WHITELIST 00047 #if !(BLE_FEATURE_SECURITY) 00048 #error "BLE feature 'WHITELIST' requires the 'SECURITY' feature" 00049 #endif 00050 #endif // BLE_FEATURE_WHITELIST 00051 00052 #if BLE_FEATURE_PRIVACY 00053 #if !(BLE_FEATURE_SECURITY) 00054 #error "BLE feature 'PRIVACY' requires the 'SECURITY' feature" 00055 #endif 00056 #endif // BLE_FEATURE_PRIVACY 00057 00058 #if BLE_FEATURE_PERIODIC_ADVERTISING 00059 #if !(BLE_FEATURE_EXTENDED_ADVERTISING) 00060 #error "BLE feature 'PERIODIC ADVERTISING' requires the 'EXTENDED ADVERTISING' feature" 00061 #endif 00062 #endif // BLE_FEATURE_PERIODIC_ADVERTISING 00063 00064 #if BLE_FEATURE_GATT_CLIENT 00065 #if !(BLE_FEATURE_CONNECTABLE) 00066 #error "BLE feature 'GATT CLIENT' requires 'PERIPHERAL' or 'CENTRAL' role" 00067 #endif 00068 #endif // BLE_FEATURE_GATT_CLIENT 00069 00070 #if BLE_FEATURE_GATT_SERVER 00071 #if !(BLE_FEATURE_CONNECTABLE) 00072 #error "BLE feature 'GATT SERVER' requires 'PERIPHERAL' or 'CENTRAL' role" 00073 #endif 00074 #endif // BLE_FEATURE_GATT_SERVER 00075 00076 #endif // MBED_BLE_ROLES_H__
Generated on Tue Jul 12 2022 13:54:03 by
