1 /***********************************************************************************************//** 2 * \file cybsp_pm_callbacks.h 3 * 4 * \brief 5 * Basic API for setting up boards containing an Infineon MCU. 6 * 7 *************************************************************************************************** 8 * \copyright 9 * Copyright 2018-2022 Cypress Semiconductor Corporation (an Infineon company) or 10 * an affiliate of Cypress Semiconductor Corporation 11 * 12 * SPDX-License-Identifier: Apache-2.0 13 * 14 * Licensed under the Apache License, Version 2.0 (the "License"); 15 * you may not use this file except in compliance with the License. 16 * You may obtain a copy of the License at 17 * 18 * http://www.apache.org/licenses/LICENSE-2.0 19 * 20 * Unless required by applicable law or agreed to in writing, software 21 * distributed under the License is distributed on an "AS IS" BASIS, 22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 23 * See the License for the specific language governing permissions and 24 * limitations under the License. 25 **************************************************************************************************/ 26 27 #pragma once 28 29 #include "cy_syspm.h" 30 31 #if defined(__cplusplus) 32 extern "C" { 33 #endif 34 35 /** 36 * \brief Get number of PM callbacks, that are available for specific BSP 37 * \param[out] arr_ptr Pointer to store array of callback pointers 38 * \param[out] number_of_elements Pointer to store number of elements in array of callback 39 * pointers 40 */ 41 void _cybsp_pm_callbacks_get_ptr_and_number(cy_stc_syspm_callback_t*** arr_ptr, 42 size_t* number_of_elements); 43 44 #ifdef __cplusplus 45 } 46 #endif // __cplusplus 47