//----------------------------------------------------------------------------- // Copyright 2012 (c) Silicon Laboratories Inc. // // SPDX-License-Identifier: Zlib // // This siHAL software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute it // freely, subject to the following restrictions: // // 1. The origin of this software must not be misrepresented; you must not // claim that you wrote the original software. If you use this software // in a product, an acknowledgment in the product documentation would be // appreciated but is not required. // 2. Altered source versions must be plainly marked as such, and must not be // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. //----------------------------------------------------------------------------- // // This file applies to the SIM3L1XX_DEVICEID_A module // // Script: 0.61 // Version: 1 #ifndef __SI32_DEVICEID_A_REGISTERS_H__ #define __SI32_DEVICEID_A_REGISTERS_H__ #include #ifdef __cplusplus extern "C" { #endif struct SI32_DEVICEID_A_DEVICEID0_Struct { union { struct { // Revision ID volatile uint32_t REVID: 4; // Device ID 0 volatile uint32_t DEVICEID0_BITS: 28; }; volatile uint32_t U32; }; }; #define SI32_DEVICEID_A_DEVICEID0_REVID_MASK 0x0000000F #define SI32_DEVICEID_A_DEVICEID0_REVID_SHIFT 0 // Revision A. #define SI32_DEVICEID_A_DEVICEID0_REVID_REVA_VALUE 0 #define SI32_DEVICEID_A_DEVICEID0_REVID_REVA_U32 \ (SI32_DEVICEID_A_DEVICEID0_REVID_REVA_VALUE << SI32_DEVICEID_A_DEVICEID0_REVID_SHIFT) // Revision B. #define SI32_DEVICEID_A_DEVICEID0_REVID_REVB_VALUE 1 #define SI32_DEVICEID_A_DEVICEID0_REVID_REVB_U32 \ (SI32_DEVICEID_A_DEVICEID0_REVID_REVB_VALUE << SI32_DEVICEID_A_DEVICEID0_REVID_SHIFT) // Revision C. #define SI32_DEVICEID_A_DEVICEID0_REVID_REVC_VALUE 2 #define SI32_DEVICEID_A_DEVICEID0_REVID_REVC_U32 \ (SI32_DEVICEID_A_DEVICEID0_REVID_REVC_VALUE << SI32_DEVICEID_A_DEVICEID0_REVID_SHIFT) #define SI32_DEVICEID_A_DEVICEID0_DEVICEID0_MASK 0xFFFFFFF0 #define SI32_DEVICEID_A_DEVICEID0_DEVICEID0_SHIFT 4 struct SI32_DEVICEID_A_DEVICEID1_Struct { union { struct { // Device ID 1 volatile uint32_t DEVICEID1_BITS; }; volatile uint32_t U32; }; }; #define SI32_DEVICEID_A_DEVICEID1_DEVICEID1_MASK 0xFFFFFFFF #define SI32_DEVICEID_A_DEVICEID1_DEVICEID1_SHIFT 0 struct SI32_DEVICEID_A_DEVICEID2_Struct { union { struct { // Device ID 2 volatile uint32_t DEVICEID2_BITS; }; volatile uint32_t U32; }; }; #define SI32_DEVICEID_A_DEVICEID2_DEVICEID2_MASK 0xFFFFFFFF #define SI32_DEVICEID_A_DEVICEID2_DEVICEID2_SHIFT 0 struct SI32_DEVICEID_A_DEVICEID3_Struct { union { struct { // Device ID 3 volatile uint32_t DEVICEID3_BITS; }; volatile uint32_t U32; }; }; #define SI32_DEVICEID_A_DEVICEID3_DEVICEID3_MASK 0xFFFFFFFF #define SI32_DEVICEID_A_DEVICEID3_DEVICEID3_SHIFT 0 typedef struct SI32_DEVICEID_A_Struct { struct SI32_DEVICEID_A_DEVICEID0_Struct DEVICEID0 ; // Base Address + 0x0 uint32_t reserved0; uint32_t reserved1; uint32_t reserved2; struct SI32_DEVICEID_A_DEVICEID1_Struct DEVICEID1 ; // Base Address + 0x10 uint32_t reserved3; uint32_t reserved4; uint32_t reserved5; struct SI32_DEVICEID_A_DEVICEID2_Struct DEVICEID2 ; // Base Address + 0x20 uint32_t reserved6; uint32_t reserved7; uint32_t reserved8; struct SI32_DEVICEID_A_DEVICEID3_Struct DEVICEID3 ; // Base Address + 0x30 uint32_t reserved9; uint32_t reserved10; uint32_t reserved11; uint32_t reserved12[4]; } SI32_DEVICEID_A_Type; #ifdef __cplusplus } #endif #endif // __SI32_DEVICEID_A_REGISTERS_H__ //-eof--------------------------------------------------------------------------