|
| 1 | +/** |
| 2 | + * @file aes_key_regs.h |
| 3 | + * @brief Registers, Bit Masks and Bit Positions for the AES_KEY Peripheral Module. |
| 4 | + */ |
| 5 | + |
| 6 | +/* **************************************************************************** |
| 7 | + * Copyright (C) 2022 Maxim Integrated Products, Inc., All Rights Reserved. |
| 8 | + * |
| 9 | + * Permission is hereby granted, free of charge, to any person obtaining a |
| 10 | + * copy of this software and associated documentation files (the "Software"), |
| 11 | + * to deal in the Software without restriction, including without limitation |
| 12 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 13 | + * and/or sell copies of the Software, and to permit persons to whom the |
| 14 | + * Software is furnished to do so, subject to the following conditions: |
| 15 | + * |
| 16 | + * The above copyright notice and this permission notice shall be included |
| 17 | + * in all copies or substantial portions of the Software. |
| 18 | + * |
| 19 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 20 | + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 21 | + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 22 | + * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
| 23 | + * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 24 | + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 25 | + * OTHER DEALINGS IN THE SOFTWARE. |
| 26 | + * |
| 27 | + * Except as contained in this notice, the name of Maxim Integrated |
| 28 | + * Products, Inc. shall not be used except as stated in the Maxim Integrated |
| 29 | + * Products, Inc. Branding Policy. |
| 30 | + * |
| 31 | + * The mere transfer of this software does not imply any licenses |
| 32 | + * of trade secrets, proprietary technology, copyrights, patents, |
| 33 | + * trademarks, maskwork rights, or any other form of intellectual |
| 34 | + * property whatsoever. Maxim Integrated Products, Inc. retains all |
| 35 | + * ownership rights. |
| 36 | + * |
| 37 | + * |
| 38 | + *************************************************************************** */ |
| 39 | + |
| 40 | +#ifndef _AES_KEY_REGS_H_ |
| 41 | +#define _AES_KEY_REGS_H_ |
| 42 | + |
| 43 | +/* **** Includes **** */ |
| 44 | +#include <stdint.h> |
| 45 | + |
| 46 | +#ifdef __cplusplus |
| 47 | +extern "C" { |
| 48 | +#endif |
| 49 | + |
| 50 | +#if defined (__ICCARM__) |
| 51 | + #pragma system_include |
| 52 | +#endif |
| 53 | + |
| 54 | +#if defined (__CC_ARM) |
| 55 | + #pragma anon_unions |
| 56 | +#endif |
| 57 | +/// @cond |
| 58 | +/* |
| 59 | + If types are not defined elsewhere (CMSIS) define them here |
| 60 | +*/ |
| 61 | +#ifndef __IO |
| 62 | +#define __IO volatile |
| 63 | +#endif |
| 64 | +#ifndef __I |
| 65 | +#define __I volatile const |
| 66 | +#endif |
| 67 | +#ifndef __O |
| 68 | +#define __O volatile |
| 69 | +#endif |
| 70 | +/// @endcond |
| 71 | + |
| 72 | +/* **** Definitions **** */ |
| 73 | + |
| 74 | +/** |
| 75 | + * @ingroup aes_key |
| 76 | + * @defgroup aes_key_registers AES_KEY_Registers |
| 77 | + * @brief Registers, Bit Masks and Bit Positions for the AES_KEY Peripheral Module. |
| 78 | + * @details AES Key Registers. |
| 79 | + */ |
| 80 | + |
| 81 | +/** |
| 82 | + * @ingroup aes_key_registers |
| 83 | + * Structure type to access the AES_KEY Registers. |
| 84 | + */ |
| 85 | +typedef struct { |
| 86 | + __IO uint32_t aes_key0; /**< <tt>\b 0x00:</tt> AES_KEY AES_KEY0 Register */ |
| 87 | + __IO uint32_t aes_key1; /**< <tt>\b 0x04:</tt> AES_KEY AES_KEY1 Register */ |
| 88 | + __IO uint32_t aes_key2; /**< <tt>\b 0x08:</tt> AES_KEY AES_KEY2 Register */ |
| 89 | + __IO uint32_t aes_key3; /**< <tt>\b 0x0C:</tt> AES_KEY AES_KEY3 Register */ |
| 90 | + __IO uint32_t aes_key4; /**< <tt>\b 0x10:</tt> AES_KEY AES_KEY4 Register */ |
| 91 | + __IO uint32_t aes_key5; /**< <tt>\b 0x14:</tt> AES_KEY AES_KEY5 Register */ |
| 92 | + __IO uint32_t aes_key6; /**< <tt>\b 0x18:</tt> AES_KEY AES_KEY6 Register */ |
| 93 | + __IO uint32_t aes_key7; /**< <tt>\b 0x1C:</tt> AES_KEY AES_KEY7 Register */ |
| 94 | +} mxc_aes_key_regs_t; |
| 95 | + |
| 96 | +/* Register offsets for module AES_KEY */ |
| 97 | +/** |
| 98 | + * @ingroup aes_key_registers |
| 99 | + * @defgroup AES_KEY_Register_Offsets Register Offsets |
| 100 | + * @brief AES_KEY Peripheral Register Offsets from the AES_KEY Base Peripheral Address. |
| 101 | + * @{ |
| 102 | + */ |
| 103 | + #define MXC_R_AES_KEY_AES_KEY0 ((uint32_t)0x00000000UL) /**< Offset from AES_KEY Base Address: <tt> 0x0000</tt> */ |
| 104 | + #define MXC_R_AES_KEY_AES_KEY1 ((uint32_t)0x00000004UL) /**< Offset from AES_KEY Base Address: <tt> 0x0004</tt> */ |
| 105 | + #define MXC_R_AES_KEY_AES_KEY2 ((uint32_t)0x00000008UL) /**< Offset from AES_KEY Base Address: <tt> 0x0008</tt> */ |
| 106 | + #define MXC_R_AES_KEY_AES_KEY3 ((uint32_t)0x0000000CUL) /**< Offset from AES_KEY Base Address: <tt> 0x000C</tt> */ |
| 107 | + #define MXC_R_AES_KEY_AES_KEY4 ((uint32_t)0x00000010UL) /**< Offset from AES_KEY Base Address: <tt> 0x0010</tt> */ |
| 108 | + #define MXC_R_AES_KEY_AES_KEY5 ((uint32_t)0x00000014UL) /**< Offset from AES_KEY Base Address: <tt> 0x0014</tt> */ |
| 109 | + #define MXC_R_AES_KEY_AES_KEY6 ((uint32_t)0x00000018UL) /**< Offset from AES_KEY Base Address: <tt> 0x0018</tt> */ |
| 110 | + #define MXC_R_AES_KEY_AES_KEY7 ((uint32_t)0x0000001CUL) /**< Offset from AES_KEY Base Address: <tt> 0x001C</tt> */ |
| 111 | +/**@} end of group aes_key_registers */ |
| 112 | + |
| 113 | +#ifdef __cplusplus |
| 114 | +} |
| 115 | +#endif |
| 116 | + |
| 117 | +#endif /* _AES_KEY_REGS_H_ */ |
0 commit comments