3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2019 Nest Labs, Inc.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 * Provides an generic implementation of ConnectivityManager features
22 * for use on platforms that support BLE.
25 #ifndef GENERIC_CONNECTIVITY_MANAGER_IMPL_BLE_CPP
26 #define GENERIC_CONNECTIVITY_MANAGER_IMPL_BLE_CPP
28 #include <platform/internal/GenericConnectivityManagerImpl_BLE.h>
31 namespace DeviceLayer {
34 // Fully instantiate the template class in whatever compilation unit includes this file.
35 template class GenericConnectivityManagerImpl_BLE<ConnectivityManagerImpl>;
37 template <class ImplClass>
38 const char * GenericConnectivityManagerImpl_BLE<ImplClass>::_CHIPoBLEServiceModeToStr(ConnectivityManager::CHIPoBLEServiceMode mode)
42 case ConnectivityManager::kCHIPoBLEServiceMode_NotSupported:
43 return "NotSupported";
44 case ConnectivityManager::kCHIPoBLEServiceMode_Enabled:
46 case ConnectivityManager::kCHIPoBLEServiceMode_Disabled:
53 } // namespace Internal
54 } // namespace DeviceLayer
57 #endif // GENERIC_CONNECTIVITY_MANAGER_IMPL_BLE_CPP