1 /******************************************************************************* 2 * \file cybt_platform_util.h 3 * 4 * \brief 5 * Define utility API(s), which are to be used by all bt platform files. 6 * 7 ******************************************************************************** 8 * \copyright 9 * Copyright 2018-2019 Cypress Semiconductor Corporation 10 * SPDX-License-Identifier: Apache-2.0 11 * 12 * Licensed under the Apache License, Version 2.0 (the "License"); 13 * you may not use this file except in compliance with the License. 14 * You may obtain a copy of the License at 15 * 16 * http://www.apache.org/licenses/LICENSE-2.0 17 * 18 * Unless required by applicable law or agreed to in writing, software 19 * distributed under the License is distributed on an "AS IS" BASIS, 20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21 * See the License for the specific language governing permissions and 22 * limitations under the License. 23 *******************************************************************************/ 24 25 #ifndef CYBT_PLATFORM_UTIL_H 26 #define CYBT_PLATFORM_UTIL_H 27 28 #include <stdbool.h> 29 30 #ifdef __cplusplus 31 extern "C" 32 { 33 #endif 34 35 /***************************************************************************** 36 * Function Declarations 37 ****************************************************************************/ 38 39 /** 40 * Get platform configuration structure. 41 * 42 * @returns the pointer of platform config structure. 43 * 44 */ 45 const cybt_platform_config_t* cybt_platform_get_config(void); 46 47 48 /** 49 * Get current status of sleep mode. 50 * 51 * @returns true : bt sleep mode is already enabled 52 * false: bt sleep mode is disabled 53 * 54 */ 55 bool cybt_platform_get_sleep_mode_status(void); 56 57 58 #ifdef __cplusplus 59 } /* extern "C" */ 60 #endif 61 62 #endif 63 64