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_DEVICEID_A module 24 // 25 // Script: 0.62 26 // Version: 1 27 28 #ifndef __SI32_DEVICEID_A_REGISTERS_H__ 29 #define __SI32_DEVICEID_A_REGISTERS_H__ 30 31 #include <stdint.h> 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 struct SI32_DEVICEID_A_DEVICEID0_Struct 38 { 39 union 40 { 41 struct 42 { 43 // Revision ID 44 volatile uint32_t REVID: 4; 45 uint32_t reserved0: 4; 46 // Package ID 47 volatile uint32_t PACKID: 24; 48 }; 49 volatile uint32_t U32; 50 }; 51 }; 52 53 #define SI32_DEVICEID_A_DEVICEID0_REVID_MASK 0x0000000F 54 #define SI32_DEVICEID_A_DEVICEID0_REVID_SHIFT 0 55 // Revision A. 56 #define SI32_DEVICEID_A_DEVICEID0_REVID_REVA_VALUE 0 57 #define SI32_DEVICEID_A_DEVICEID0_REVID_REVA_U32 \ 58 (SI32_DEVICEID_A_DEVICEID0_REVID_REVA_VALUE << SI32_DEVICEID_A_DEVICEID0_REVID_SHIFT) 59 // Revision B. 60 #define SI32_DEVICEID_A_DEVICEID0_REVID_REVB_VALUE 1 61 #define SI32_DEVICEID_A_DEVICEID0_REVID_REVB_U32 \ 62 (SI32_DEVICEID_A_DEVICEID0_REVID_REVB_VALUE << SI32_DEVICEID_A_DEVICEID0_REVID_SHIFT) 63 64 #define SI32_DEVICEID_A_DEVICEID0_PACKID_MASK 0xFFFFFF00 65 #define SI32_DEVICEID_A_DEVICEID0_PACKID_SHIFT 8 66 67 68 69 struct SI32_DEVICEID_A_DEVICEID1_Struct 70 { 71 union 72 { 73 struct 74 { 75 // Device ID 1 76 volatile uint32_t DEVICEID1_BITS; 77 }; 78 volatile uint32_t U32; 79 }; 80 }; 81 82 #define SI32_DEVICEID_A_DEVICEID1_DEVICEID1_MASK 0xFFFFFFFF 83 #define SI32_DEVICEID_A_DEVICEID1_DEVICEID1_SHIFT 0 84 85 86 87 struct SI32_DEVICEID_A_DEVICEID2_Struct 88 { 89 union 90 { 91 struct 92 { 93 // Device ID 2 94 volatile uint32_t DEVICEID2_BITS; 95 }; 96 volatile uint32_t U32; 97 }; 98 }; 99 100 #define SI32_DEVICEID_A_DEVICEID2_DEVICEID2_MASK 0xFFFFFFFF 101 #define SI32_DEVICEID_A_DEVICEID2_DEVICEID2_SHIFT 0 102 103 104 105 struct SI32_DEVICEID_A_DEVICEID3_Struct 106 { 107 union 108 { 109 struct 110 { 111 // Device ID 3 112 volatile uint32_t DEVICEID3_BITS; 113 }; 114 volatile uint32_t U32; 115 }; 116 }; 117 118 #define SI32_DEVICEID_A_DEVICEID3_DEVICEID3_MASK 0xFFFFFFFF 119 #define SI32_DEVICEID_A_DEVICEID3_DEVICEID3_SHIFT 0 120 121 122 123 typedef struct SI32_DEVICEID_A_Struct 124 { 125 struct SI32_DEVICEID_A_DEVICEID0_Struct DEVICEID0 ; // Base Address + 0x0 126 uint32_t reserved0; 127 uint32_t reserved1; 128 uint32_t reserved2; 129 struct SI32_DEVICEID_A_DEVICEID1_Struct DEVICEID1 ; // Base Address + 0x10 130 uint32_t reserved3; 131 uint32_t reserved4; 132 uint32_t reserved5; 133 struct SI32_DEVICEID_A_DEVICEID2_Struct DEVICEID2 ; // Base Address + 0x20 134 uint32_t reserved6; 135 uint32_t reserved7; 136 uint32_t reserved8; 137 struct SI32_DEVICEID_A_DEVICEID3_Struct DEVICEID3 ; // Base Address + 0x30 138 uint32_t reserved9; 139 uint32_t reserved10; 140 uint32_t reserved11; 141 } SI32_DEVICEID_A_Type; 142 143 #ifdef __cplusplus 144 } 145 #endif 146 147 #endif // __SI32_DEVICEID_A_REGISTERS_H__ 148 149 //-eof-------------------------------------------------------------------------- 150 151