1 //------------------------------------------------------------------------------ 2 // Copyright 2012 (c) Silicon Laboratories Inc. 3 // 4 // SPDX-License-Identifier: Zlib 5 // 6 // This siHAL software is provided 'as-is', without any express or implied 7 // warranty. In no event will the authors be held liable for any damages 8 // arising from the use of this software. 9 // 10 // Permission is granted to anyone to use this software for any purpose, 11 // including commercial applications, and to alter it and redistribute it 12 // freely, subject to the following restrictions: 13 // 14 // 1. The origin of this software must not be misrepresented; you must not 15 // claim that you wrote the original software. If you use this software 16 // in a product, an acknowledgment in the product documentation would be 17 // appreciated but is not required. 18 // 2. Altered source versions must be plainly marked as such, and must not be 19 // misrepresented as being the original software. 20 // 3. This notice may not be removed or altered from any source distribution. 21 //------------------------------------------------------------------------------ 22 // 23 // This file applies to the SIM3U1XX_SCONFIG_A module 24 // 25 // Script: 0.57 26 // Version: 1 27 28 #ifndef __SI32_SCONFIG_A_REGISTERS_H__ 29 #define __SI32_SCONFIG_A_REGISTERS_H__ 30 31 #include <stdint.h> 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 struct SI32_SCONFIG_A_CONFIG_Struct 38 { 39 union 40 { 41 struct 42 { 43 // Faster DMA Mode Enable 44 volatile uint32_t FDMAEN: 1; 45 uint32_t reserved0: 31; 46 }; 47 volatile uint32_t U32; 48 }; 49 }; 50 51 #define SI32_SCONFIG_A_CONFIG_FDMAEN_MASK 0x00000001 52 #define SI32_SCONFIG_A_CONFIG_FDMAEN_SHIFT 0 53 // Disable the faster DMA mode. The DMA module and channels will behave like a 54 // standard uDMA. 55 #define SI32_SCONFIG_A_CONFIG_FDMAEN_DISABLED_VALUE 0 56 #define SI32_SCONFIG_A_CONFIG_FDMAEN_DISABLED_U32 \ 57 (SI32_SCONFIG_A_CONFIG_FDMAEN_DISABLED_VALUE << SI32_SCONFIG_A_CONFIG_FDMAEN_SHIFT) 58 // Enable the faster DMA mode. 59 #define SI32_SCONFIG_A_CONFIG_FDMAEN_ENABLED_VALUE 1 60 #define SI32_SCONFIG_A_CONFIG_FDMAEN_ENABLED_U32 \ 61 (SI32_SCONFIG_A_CONFIG_FDMAEN_ENABLED_VALUE << SI32_SCONFIG_A_CONFIG_FDMAEN_SHIFT) 62 63 64 65 typedef struct SI32_SCONFIG_A_Struct 66 { 67 struct SI32_SCONFIG_A_CONFIG_Struct CONFIG ; // Base Address + 0x0 68 volatile uint32_t CONFIG_SET; 69 volatile uint32_t CONFIG_CLR; 70 uint32_t reserved0; 71 } SI32_SCONFIG_A_Type; 72 73 #ifdef __cplusplus 74 } 75 #endif 76 77 #endif // __SI32_SCONFIG_A_REGISTERS_H__ 78 79 //-eof-------------------------------------------------------------------------- 80 81