1 /***************************************************************************//**
2  * @file
3  * @brief ETAMPDET 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_ETAMPDET_COMPAT_H
32 #define SL_HAL_ETAMPDET_COMPAT_H
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /*******************************************************************************
39  *********************************   DEFINES   *********************************
40  ******************************************************************************/
41 
42 // Enum.
43 #define sl_etampdet_channel_t                         sl_hal_etampdet_channel_t
44 #define sl_etampdet_channel_cnt_mismatch_threshold_t  sl_hal_etampdet_channel_cnt_mismatch_threshold_t
45 #define sl_etampdet_channel_filt_win_size_t           sl_hal_etampdet_channel_filt_win_size_t
46 #define sl_etampdet_upper_clk_presc_t                 sl_hal_etampdet_upper_clk_presc_t
47 #define sl_etampdet_lower_clk_presc_t                 sl_hal_etampdet_lower_clk_presc_t
48 
49 // Structure.
50 #define sl_etampdet_config_channel_t                  sl_hal_etampdet_config_channel_t
51 #define sl_etampdet_config_t                          sl_hal_etampdet_config_t
52 
53 // Function.
54 #define sl_etampdet_init                              sl_hal_etampdet_init
55 #define sl_etampdet_init_channel                      sl_hal_etampdet_init_channel
56 #define sl_etampdet_wait_sync                         sl_hal_etampdet_wait_sync
57 #define sl_etampdet_wait_ready                        sl_hal_etampdet_wait_ready
58 #define sl_etampdet_enable                            sl_hal_etampdet_enable
59 #define sl_etampdet_disable                           sl_hal_etampdet_disable
60 #define sl_etampdet_load                              sl_hal_etampdet_load
61 #define sl_etampdet_start                             sl_hal_etampdet_start
62 #define sl_etampdet_stop                              sl_hal_etampdet_stop
63 #define sl_etampdet_enable_interrupts                 sl_hal_etampdet_enable_interrupts
64 #define sl_etampdet_disable_interrupts                sl_hal_etampdet_disable_interrupts
65 #define sl_etampdet_set_interrupts                    sl_hal_etampdet_set_interrupts
66 #define sl_etampdet_clear_interrupts                  sl_hal_etampdet_clear_interrupts
67 #define sl_etampdet_get_interrupts                    sl_hal_etampdet_get_interrupts
68 #define sl_etampdet_get_enabled_interrupts            sl_hal_etampdet_get_enabled_interrupts
69 #define sl_etampdet_lock                              sl_hal_etampdet_lock
70 #define sl_etampdet_unlock                            sl_hal_etampdet_unlock
71 #define sl_etampdet_get_status                        sl_hal_etampdet_get_status
72 #define sl_etampdet_set_seed_value                    sl_hal_etampdet_set_seed_value
73 #define sl_etampdet_get_seed_value                    sl_hal_etampdet_get_seed_value
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif // SL_HAL_ETAMPDET_COMPAT_H
80