1 /* 2 * Copyright 2023-2024 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef HAL_POWER_H_ 8 #define HAL_POWER_H_ 9 10 #include "fsl_common.h" 11 #include "hal_power_platform.h" 12 13 /******************************************************************************* 14 * Definitions 15 ******************************************************************************/ 16 typedef enum 17 { 18 hal_power_state_on = 0, 19 hal_power_state_off = 1, 20 hal_power_state_err = 2 21 } hal_pwr_st_e; 22 23 typedef struct 24 { 25 uint32_t did; /* domain ID */ 26 hal_pwr_st_e st; /* power state */ 27 } hal_pwr_s_t; 28 29 30 /******************************************************************************* 31 * API 32 ******************************************************************************/ 33 #if defined(__cplusplus) 34 extern "C" { 35 #endif /*__cplusplus */ 36 37 void HAL_PowerSetState(hal_pwr_s_t *pwr_st); 38 hal_pwr_st_e HAL_PowerGetState(hal_pwr_s_t *pwr_st); 39 40 #if defined(__cplusplus) 41 } 42 #endif /*__cplusplus */ 43 44 /*! @} */ 45 46 #endif /* HAL_POWER_H_ */ 47