1 /***************************************************************************//** 2 * @file 3 * @brief DCDC_COULOMB_COUNTER Compatibility Layer. 4 ******************************************************************************* 5 * # License 6 * <b>Copyright 2024 Silicon Laboratories Inc. www.silabs.com</b> 7 ******************************************************************************* 8 * 9 * SPDX-License-Identifier: Zlib 10 * 11 * The licensor of this software is Silicon Laboratories Inc. 12 * 13 * This software is provided 'as-is', without any express or implied 14 * warranty. In no event will the authors be held liable for any damages 15 * arising from the use of this software. 16 * 17 * Permission is granted to anyone to use this software for any purpose, 18 * including commercial applications, and to alter it and redistribute it 19 * freely, subject to the following restrictions: 20 * 21 * 1. The origin of this software must not be misrepresented; you must not 22 * claim that you wrote the original software. If you use this software 23 * in a product, an acknowledgment in the product documentation would be 24 * appreciated but is not required. 25 * 2. Altered source versions must be plainly marked as such, and must not be 26 * misrepresented as being the original software. 27 * 3. This notice may not be removed or altered from any source distribution. 28 * 29 ******************************************************************************/ 30 31 #ifndef SL_HAL_DCDC_COULOMB_COUNTER_COMPAT_H 32 #define SL_HAL_DCDC_COULOMB_COUNTER_COMPAT_H 33 34 #ifdef __cplusplus 35 extern "C" { 36 #endif 37 38 /******************************************************************************* 39 ********************************* DEFINES ********************************* 40 ******************************************************************************/ 41 42 // Enum. 43 #define SL_DCDC_COULOMB_COUNTER_EM0 SL_HAL_DCDC_COULOMB_COUNTER_EM0 44 #define SL_DCDC_COULOMB_COUNTER_EM2 SL_HAL_DCDC_COULOMB_COUNTER_EM2 45 #define SL_DCDC_COULOMB_COUNTER_CAL_LOAD0 SL_HAL_DCDC_COULOMB_COUNTER_CAL_LOAD0 46 #define SL_DCDC_COULOMB_COUNTER_CAL_LOAD1 SL_HAL_DCDC_COULOMB_COUNTER_CAL_LOAD1 47 #define SL_DCDC_COULOMB_COUNTER_CAL_LOAD2 SL_HAL_DCDC_COULOMB_COUNTER_CAL_LOAD2 48 #define SL_DCDC_COULOMB_COUNTER_CAL_LOAD3 SL_HAL_DCDC_COULOMB_COUNTER_CAL_LOAD3 49 #define SL_DCDC_COULOMB_COUNTER_CAL_LOAD4 SL_HAL_DCDC_COULOMB_COUNTER_CAL_LOAD4 50 #define SL_DCDC_COULOMB_COUNTER_CAL_LOAD5 SL_HAL_DCDC_COULOMB_COUNTER_CAL_LOAD5 51 #define SL_DCDC_COULOMB_COUNTER_CAL_LOAD6 SL_HAL_DCDC_COULOMB_COUNTER_CAL_LOAD6 52 #define SL_DCDC_COULOMB_COUNTER_CAL_LOAD7 SL_HAL_DCDC_COULOMB_COUNTER_CAL_LOAD7 53 #define sl_dcdc_coulomb_counter_emode_t sl_hal_dcdc_coulomb_counter_emode_t 54 #define sl_dcdc_coulomb_counter_calibration_load_level_t sl_hal_dcdc_coulomb_counter_calibration_load_level_t 55 56 // Structure. 57 #define sl_dcdc_coulomb_counter_config_t sl_hal_dcdc_coulomb_counter_config_t 58 #define sl_dcdc_coulomb_counter_calibration_config_t sl_hal_dcdc_coulomb_counter_calibration_config_t 59 60 // Function. 61 #define sl_dcdc_coulomb_counter_init sl_hal_dcdc_coulomb_counter_init 62 #define sl_dcdc_coulomb_counter_enable sl_hal_dcdc_coulomb_counter_enable 63 #define sl_dcdc_coulomb_counter_disable sl_hal_dcdc_coulomb_counter_disable 64 #define sl_dcdc_coulomb_counter_wait_start sl_hal_dcdc_coulomb_counter_wait_start 65 #define sl_dcdc_coulomb_counter_wait_stop sl_hal_dcdc_coulomb_counter_wait_stop 66 #define sl_dcdc_coulomb_counter_wait_clear_counters sl_hal_dcdc_coulomb_counter_wait_clear_counters 67 #define sl_dcdc_coulomb_counter_start sl_hal_dcdc_coulomb_counter_start 68 #define sl_dcdc_coulomb_counter_stop sl_hal_dcdc_coulomb_counter_stop 69 #define sl_dcdc_coulomb_counter_clear_counters sl_hal_dcdc_coulomb_counter_clear_counters 70 #define sl_dcdc_coulomb_counter_get_count sl_hal_dcdc_coulomb_counter_get_count 71 #define sl_dcdc_coulomb_counter_get_status sl_hal_dcdc_coulomb_counter_get_status 72 #define sl_dcdc_coulomb_counter_enable_interrupts sl_hal_dcdc_coulomb_counter_enable_interrupts 73 #define sl_dcdc_coulomb_counter_disable_interrupts sl_hal_dcdc_coulomb_counter_disable_interrupts 74 #define sl_dcdc_coulomb_counter_clear_interrupts sl_hal_dcdc_coulomb_counter_clear_interrupts 75 #define sl_dcdc_coulomb_counter_get_interrupts sl_hal_dcdc_coulomb_counter_get_interrupts 76 #define sl_dcdc_coulomb_counter_get_enabled_interrupts sl_hal_dcdc_coulomb_counter_get_enabled_interrupts 77 #define sl_dcdc_coulomb_counter_set_interrupts sl_hal_dcdc_coulomb_counter_set_interrupts 78 #define sl_dcdc_coulomb_counter_cal_init sl_hal_dcdc_coulomb_counter_cal_init 79 #define sl_dcdc_coulomb_counter_cal_start sl_hal_dcdc_coulomb_counter_cal_start 80 #define sl_dcdc_coulomb_counter_cal_stop sl_hal_dcdc_coulomb_counter_cal_stop 81 #define sl_dcdc_coulomb_counter_enable_cal_load sl_hal_dcdc_coulomb_counter_enable_cal_load 82 #define sl_dcdc_coulomb_counter_disable_cal_load sl_hal_dcdc_coulomb_counter_disable_cal_load 83 #define sl_dcdc_coulomb_counter_set_cal_load_level sl_hal_dcdc_coulomb_counter_set_cal_load_level 84 #define sl_dcdc_coulomb_counter_get_cal_load_current sl_hal_dcdc_coulomb_counter_get_cal_load_current 85 #define sl_dcdc_coulomb_counter_get_cal_reference_freq sl_hal_dcdc_coulomb_counter_get_cal_reference_freq 86 #define sl_dcdc_coulomb_counter_set_calhalt sl_hal_dcdc_coulomb_counter_set_calhalt 87 #define sl_dcdc_coulomb_counter_calhalt_is_set sl_hal_dcdc_coulomb_counter_calhalt_is_set 88 89 #ifdef __cplusplus 90 } 91 #endif 92 93 #endif // SL_HAL_DCDC_COULOMB_COUNTER_COMPAT_H 94