1 /**************************************************************************//**
2  * @file
3  * @brief EFR32MG24 LDMAXBAR register and bit field definitions
4  ******************************************************************************
5  * # License
6  * <b>Copyright 2022 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 #ifndef EFR32MG24_LDMAXBAR_H
31 #define EFR32MG24_LDMAXBAR_H
32 #define LDMAXBAR_HAS_SET_CLEAR
33 
34 /**************************************************************************//**
35 * @addtogroup Parts
36 * @{
37 ******************************************************************************/
38 /**************************************************************************//**
39  * @defgroup EFR32MG24_LDMAXBAR LDMAXBAR
40  * @{
41  * @brief EFR32MG24 LDMAXBAR Register Declaration.
42  *****************************************************************************/
43 
44 /** LDMAXBAR CH Register Group Declaration. */
45 typedef struct {
46   __IOM uint32_t REQSEL;                             /**< Channel Peripheral Request Select Reg...           */
47 } LDMAXBAR_CH_TypeDef;
48 
49 /** LDMAXBAR Register Declaration. */
50 typedef struct {
51   __IM uint32_t       IPVERSION;                /**< IP veersion ID                                     */
52   LDMAXBAR_CH_TypeDef CH[8U];                   /**< DMA Channel Registers                              */
53   uint32_t            RESERVED0[1015U];         /**< Reserved for future use                            */
54   __IM uint32_t       IPVERSION_SET;            /**< IP veersion ID                                     */
55   LDMAXBAR_CH_TypeDef CH_SET[8U];               /**< DMA Channel Registers                              */
56   uint32_t            RESERVED1[1015U];         /**< Reserved for future use                            */
57   __IM uint32_t       IPVERSION_CLR;            /**< IP veersion ID                                     */
58   LDMAXBAR_CH_TypeDef CH_CLR[8U];               /**< DMA Channel Registers                              */
59   uint32_t            RESERVED2[1015U];         /**< Reserved for future use                            */
60   __IM uint32_t       IPVERSION_TGL;            /**< IP veersion ID                                     */
61   LDMAXBAR_CH_TypeDef CH_TGL[8U];               /**< DMA Channel Registers                              */
62 } LDMAXBAR_TypeDef;
63 /** @} End of group EFR32MG24_LDMAXBAR */
64 
65 /**************************************************************************//**
66  * @addtogroup EFR32MG24_LDMAXBAR
67  * @{
68  * @defgroup EFR32MG24_LDMAXBAR_BitFields LDMAXBAR Bit Fields
69  * @{
70  *****************************************************************************/
71 
72 /* Bit fields for LDMAXBAR IPVERSION */
73 #define _LDMAXBAR_IPVERSION_RESETVALUE           0x00000003UL                                 /**< Default value for LDMAXBAR_IPVERSION        */
74 #define _LDMAXBAR_IPVERSION_MASK                 0xFFFFFFFFUL                                 /**< Mask for LDMAXBAR_IPVERSION                 */
75 #define _LDMAXBAR_IPVERSION_IPVERSION_SHIFT      0                                            /**< Shift value for LDMAXBAR_IPVERSION          */
76 #define _LDMAXBAR_IPVERSION_IPVERSION_MASK       0xFFFFFFFFUL                                 /**< Bit mask for LDMAXBAR_IPVERSION             */
77 #define _LDMAXBAR_IPVERSION_IPVERSION_DEFAULT    0x00000003UL                                 /**< Mode DEFAULT for LDMAXBAR_IPVERSION         */
78 #define LDMAXBAR_IPVERSION_IPVERSION_DEFAULT     (_LDMAXBAR_IPVERSION_IPVERSION_DEFAULT << 0) /**< Shifted mode DEFAULT for LDMAXBAR_IPVERSION */
79 
80 /* Bit fields for LDMAXBAR CH_REQSEL */
81 #define _LDMAXBAR_CH_REQSEL_RESETVALUE           0x00000000UL                                  /**< Default value for LDMAXBAR_CH_REQSEL        */
82 #define _LDMAXBAR_CH_REQSEL_MASK                 0x003F000FUL                                  /**< Mask for LDMAXBAR_CH_REQSEL                 */
83 #define _LDMAXBAR_CH_REQSEL_SIGSEL_SHIFT         0                                             /**< Shift value for LDMAXBAR_SIGSEL             */
84 #define _LDMAXBAR_CH_REQSEL_SIGSEL_MASK          0xFUL                                         /**< Bit mask for LDMAXBAR_SIGSEL                */
85 #define _LDMAXBAR_CH_REQSEL_SIGSEL_DEFAULT       0x00000000UL                                  /**< Mode DEFAULT for LDMAXBAR_CH_REQSEL         */
86 #define LDMAXBAR_CH_REQSEL_SIGSEL_DEFAULT        (_LDMAXBAR_CH_REQSEL_SIGSEL_DEFAULT << 0)     /**< Shifted mode DEFAULT for LDMAXBAR_CH_REQSEL */
87 #define _LDMAXBAR_CH_REQSEL_SOURCESEL_SHIFT      16                                            /**< Shift value for LDMAXBAR_SOURCESEL          */
88 #define _LDMAXBAR_CH_REQSEL_SOURCESEL_MASK       0x3F0000UL                                    /**< Bit mask for LDMAXBAR_SOURCESEL             */
89 #define _LDMAXBAR_CH_REQSEL_SOURCESEL_DEFAULT    0x00000000UL                                  /**< Mode DEFAULT for LDMAXBAR_CH_REQSEL         */
90 #define LDMAXBAR_CH_REQSEL_SOURCESEL_DEFAULT     (_LDMAXBAR_CH_REQSEL_SOURCESEL_DEFAULT << 16) /**< Shifted mode DEFAULT for LDMAXBAR_CH_REQSEL */
91 
92 /** @} End of group EFR32MG24_LDMAXBAR_BitFields */
93 /** @} End of group EFR32MG24_LDMAXBAR */
94 /** @} End of group Parts */
95 
96 #endif /* EFR32MG24_LDMAXBAR_H */
97