12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463 |
- /*
- * Copyright (c) 2014, Freescale Semiconductor, Inc.
- * All rights reserved.
- *
- * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
- * SHALL FREESCALE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
- * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
- * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
- * OF SUCH DAMAGE.
- */
- /*
- * WARNING! DO NOT EDIT THIS FILE DIRECTLY!
- *
- * This file was generated automatically and any changes may be lost.
- */
- #ifndef __HW_CAU_REGISTERS_H__
- #define __HW_CAU_REGISTERS_H__
- #include "regs.h"
- /*
- * MK64F12 CAU
- *
- * Memory Mapped Cryptographic Acceleration Unit (MMCAU)
- *
- * Registers defined in this header file:
- * - HW_CAU_DIRECT - Direct access register 0
- * - HW_CAU_LDR_CASR - Status register - Load Register command
- * - HW_CAU_LDR_CAA - Accumulator register - Load Register command
- * - HW_CAU_LDR_CA - General Purpose Register 0 - Load Register command
- * - HW_CAU_STR_CASR - Status register - Store Register command
- * - HW_CAU_STR_CAA - Accumulator register - Store Register command
- * - HW_CAU_STR_CA - General Purpose Register 0 - Store Register command
- * - HW_CAU_ADR_CASR - Status register - Add Register command
- * - HW_CAU_ADR_CAA - Accumulator register - Add to register command
- * - HW_CAU_ADR_CA - General Purpose Register 0 - Add to register command
- * - HW_CAU_RADR_CASR - Status register - Reverse and Add to Register command
- * - HW_CAU_RADR_CAA - Accumulator register - Reverse and Add to Register command
- * - HW_CAU_RADR_CA - General Purpose Register 0 - Reverse and Add to Register command
- * - HW_CAU_XOR_CASR - Status register - Exclusive Or command
- * - HW_CAU_XOR_CAA - Accumulator register - Exclusive Or command
- * - HW_CAU_XOR_CA - General Purpose Register 0 - Exclusive Or command
- * - HW_CAU_ROTL_CASR - Status register - Rotate Left command
- * - HW_CAU_ROTL_CAA - Accumulator register - Rotate Left command
- * - HW_CAU_ROTL_CA - General Purpose Register 0 - Rotate Left command
- * - HW_CAU_AESC_CASR - Status register - AES Column Operation command
- * - HW_CAU_AESC_CAA - Accumulator register - AES Column Operation command
- * - HW_CAU_AESC_CA - General Purpose Register 0 - AES Column Operation command
- * - HW_CAU_AESIC_CASR - Status register - AES Inverse Column Operation command
- * - HW_CAU_AESIC_CAA - Accumulator register - AES Inverse Column Operation command
- * - HW_CAU_AESIC_CA - General Purpose Register 0 - AES Inverse Column Operation command
- *
- * - hw_cau_t - Struct containing all module registers.
- */
- //! @name Module base addresses
- //@{
- #ifndef REGS_CAU_BASE
- #define HW_CAU_INSTANCE_COUNT (1U) //!< Number of instances of the CAU module.
- #define REGS_CAU_BASE (0xE0081000U) //!< Base address for CAU.
- #endif
- //@}
- //-------------------------------------------------------------------------------------------
- // HW_CAU_DIRECT - Direct access register 0
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_DIRECT - Direct access register 0 (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_direct
- {
- uint32_t U;
- struct _hw_cau_direct_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_direct_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_DIRECT register
- */
- //@{
- #define HW_CAU_DIRECT_COUNT (16U)
- #define HW_CAU_DIRECT_ADDR(n) (REGS_CAU_BASE + 0x0U + (0x4U * n))
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_DIRECT(n) (*(__O hw_cau_direct_t *) HW_CAU_DIRECT_ADDR(n))
- #define HW_CAU_DIRECT_WR(n, v) (HW_CAU_DIRECT(n).U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_DIRECT bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_LDR_CASR - Status register - Load Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_LDR_CASR - Status register - Load Register command (WO)
- *
- * Reset value: 0x20000000U
- */
- typedef union _hw_cau_ldr_casr
- {
- uint32_t U;
- struct _hw_cau_ldr_casr_bitfields
- {
- uint32_t IC : 1; //!< [0]
- uint32_t DPE : 1; //!< [1]
- uint32_t RESERVED0 : 26; //!< [27:2]
- uint32_t VER : 4; //!< [31:28] CAU version
- } B;
- } hw_cau_ldr_casr_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_LDR_CASR register
- */
- //@{
- #define HW_CAU_LDR_CASR_ADDR (REGS_CAU_BASE + 0x840U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_LDR_CASR (*(__O hw_cau_ldr_casr_t *) HW_CAU_LDR_CASR_ADDR)
- #define HW_CAU_LDR_CASR_WR(v) (HW_CAU_LDR_CASR.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_LDR_CASR bitfields
- */
- /*!
- * @name Register CAU_LDR_CASR, field IC[0] (WO)
- *
- * Values:
- * - 0 - No illegal commands issued
- * - 1 - Illegal command issued
- */
- //@{
- #define BP_CAU_LDR_CASR_IC (0U) //!< Bit position for CAU_LDR_CASR_IC.
- #define BM_CAU_LDR_CASR_IC (0x00000001U) //!< Bit mask for CAU_LDR_CASR_IC.
- #define BS_CAU_LDR_CASR_IC (1U) //!< Bit field size in bits for CAU_LDR_CASR_IC.
- //! @brief Format value for bitfield CAU_LDR_CASR_IC.
- #define BF_CAU_LDR_CASR_IC(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_LDR_CASR_IC), uint32_t) & BM_CAU_LDR_CASR_IC)
- //@}
- /*!
- * @name Register CAU_LDR_CASR, field DPE[1] (WO)
- *
- * Values:
- * - 0 - No error detected
- * - 1 - DES key parity error detected
- */
- //@{
- #define BP_CAU_LDR_CASR_DPE (1U) //!< Bit position for CAU_LDR_CASR_DPE.
- #define BM_CAU_LDR_CASR_DPE (0x00000002U) //!< Bit mask for CAU_LDR_CASR_DPE.
- #define BS_CAU_LDR_CASR_DPE (1U) //!< Bit field size in bits for CAU_LDR_CASR_DPE.
- //! @brief Format value for bitfield CAU_LDR_CASR_DPE.
- #define BF_CAU_LDR_CASR_DPE(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_LDR_CASR_DPE), uint32_t) & BM_CAU_LDR_CASR_DPE)
- //@}
- /*!
- * @name Register CAU_LDR_CASR, field VER[31:28] (WO)
- *
- * Values:
- * - 0001 - Initial CAU version
- * - 0010 - Second version, added support for SHA-256 algorithm.(This is the
- * value on this device)
- */
- //@{
- #define BP_CAU_LDR_CASR_VER (28U) //!< Bit position for CAU_LDR_CASR_VER.
- #define BM_CAU_LDR_CASR_VER (0xF0000000U) //!< Bit mask for CAU_LDR_CASR_VER.
- #define BS_CAU_LDR_CASR_VER (4U) //!< Bit field size in bits for CAU_LDR_CASR_VER.
- //! @brief Format value for bitfield CAU_LDR_CASR_VER.
- #define BF_CAU_LDR_CASR_VER(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_LDR_CASR_VER), uint32_t) & BM_CAU_LDR_CASR_VER)
- //@}
- //-------------------------------------------------------------------------------------------
- // HW_CAU_LDR_CAA - Accumulator register - Load Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_LDR_CAA - Accumulator register - Load Register command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_ldr_caa
- {
- uint32_t U;
- struct _hw_cau_ldr_caa_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_ldr_caa_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_LDR_CAA register
- */
- //@{
- #define HW_CAU_LDR_CAA_ADDR (REGS_CAU_BASE + 0x844U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_LDR_CAA (*(__O hw_cau_ldr_caa_t *) HW_CAU_LDR_CAA_ADDR)
- #define HW_CAU_LDR_CAA_WR(v) (HW_CAU_LDR_CAA.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_LDR_CAA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_LDR_CA - General Purpose Register 0 - Load Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_LDR_CA - General Purpose Register 0 - Load Register command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_ldr_ca
- {
- uint32_t U;
- struct _hw_cau_ldr_ca_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_ldr_ca_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_LDR_CA register
- */
- //@{
- #define HW_CAU_LDR_CA_COUNT (9U)
- #define HW_CAU_LDR_CA_ADDR(n) (REGS_CAU_BASE + 0x848U + (0x4U * n))
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_LDR_CA(n) (*(__O hw_cau_ldr_ca_t *) HW_CAU_LDR_CA_ADDR(n))
- #define HW_CAU_LDR_CA_WR(n, v) (HW_CAU_LDR_CA(n).U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_LDR_CA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_STR_CASR - Status register - Store Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_STR_CASR - Status register - Store Register command (RO)
- *
- * Reset value: 0x20000000U
- */
- typedef union _hw_cau_str_casr
- {
- uint32_t U;
- struct _hw_cau_str_casr_bitfields
- {
- uint32_t IC : 1; //!< [0]
- uint32_t DPE : 1; //!< [1]
- uint32_t RESERVED0 : 26; //!< [27:2]
- uint32_t VER : 4; //!< [31:28] CAU version
- } B;
- } hw_cau_str_casr_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_STR_CASR register
- */
- //@{
- #define HW_CAU_STR_CASR_ADDR (REGS_CAU_BASE + 0x880U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_STR_CASR (*(__I hw_cau_str_casr_t *) HW_CAU_STR_CASR_ADDR)
- #define HW_CAU_STR_CASR_RD() (HW_CAU_STR_CASR.U)
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_STR_CASR bitfields
- */
- /*!
- * @name Register CAU_STR_CASR, field IC[0] (RO)
- *
- * Values:
- * - 0 - No illegal commands issued
- * - 1 - Illegal command issued
- */
- //@{
- #define BP_CAU_STR_CASR_IC (0U) //!< Bit position for CAU_STR_CASR_IC.
- #define BM_CAU_STR_CASR_IC (0x00000001U) //!< Bit mask for CAU_STR_CASR_IC.
- #define BS_CAU_STR_CASR_IC (1U) //!< Bit field size in bits for CAU_STR_CASR_IC.
- #ifndef __LANGUAGE_ASM__
- //! @brief Read current value of the CAU_STR_CASR_IC field.
- #define BR_CAU_STR_CASR_IC (BITBAND_ACCESS32(HW_CAU_STR_CASR_ADDR, BP_CAU_STR_CASR_IC))
- #endif
- //@}
- /*!
- * @name Register CAU_STR_CASR, field DPE[1] (RO)
- *
- * Values:
- * - 0 - No error detected
- * - 1 - DES key parity error detected
- */
- //@{
- #define BP_CAU_STR_CASR_DPE (1U) //!< Bit position for CAU_STR_CASR_DPE.
- #define BM_CAU_STR_CASR_DPE (0x00000002U) //!< Bit mask for CAU_STR_CASR_DPE.
- #define BS_CAU_STR_CASR_DPE (1U) //!< Bit field size in bits for CAU_STR_CASR_DPE.
- #ifndef __LANGUAGE_ASM__
- //! @brief Read current value of the CAU_STR_CASR_DPE field.
- #define BR_CAU_STR_CASR_DPE (BITBAND_ACCESS32(HW_CAU_STR_CASR_ADDR, BP_CAU_STR_CASR_DPE))
- #endif
- //@}
- /*!
- * @name Register CAU_STR_CASR, field VER[31:28] (RO)
- *
- * Values:
- * - 0001 - Initial CAU version
- * - 0010 - Second version, added support for SHA-256 algorithm.(This is the
- * value on this device)
- */
- //@{
- #define BP_CAU_STR_CASR_VER (28U) //!< Bit position for CAU_STR_CASR_VER.
- #define BM_CAU_STR_CASR_VER (0xF0000000U) //!< Bit mask for CAU_STR_CASR_VER.
- #define BS_CAU_STR_CASR_VER (4U) //!< Bit field size in bits for CAU_STR_CASR_VER.
- #ifndef __LANGUAGE_ASM__
- //! @brief Read current value of the CAU_STR_CASR_VER field.
- #define BR_CAU_STR_CASR_VER (HW_CAU_STR_CASR.B.VER)
- #endif
- //@}
- //-------------------------------------------------------------------------------------------
- // HW_CAU_STR_CAA - Accumulator register - Store Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_STR_CAA - Accumulator register - Store Register command (RO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_str_caa
- {
- uint32_t U;
- struct _hw_cau_str_caa_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_str_caa_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_STR_CAA register
- */
- //@{
- #define HW_CAU_STR_CAA_ADDR (REGS_CAU_BASE + 0x884U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_STR_CAA (*(__I hw_cau_str_caa_t *) HW_CAU_STR_CAA_ADDR)
- #define HW_CAU_STR_CAA_RD() (HW_CAU_STR_CAA.U)
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_STR_CAA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_STR_CA - General Purpose Register 0 - Store Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_STR_CA - General Purpose Register 0 - Store Register command (RO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_str_ca
- {
- uint32_t U;
- struct _hw_cau_str_ca_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_str_ca_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_STR_CA register
- */
- //@{
- #define HW_CAU_STR_CA_COUNT (9U)
- #define HW_CAU_STR_CA_ADDR(n) (REGS_CAU_BASE + 0x888U + (0x4U * n))
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_STR_CA(n) (*(__I hw_cau_str_ca_t *) HW_CAU_STR_CA_ADDR(n))
- #define HW_CAU_STR_CA_RD(n) (HW_CAU_STR_CA(n).U)
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_STR_CA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_ADR_CASR - Status register - Add Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_ADR_CASR - Status register - Add Register command (WO)
- *
- * Reset value: 0x20000000U
- */
- typedef union _hw_cau_adr_casr
- {
- uint32_t U;
- struct _hw_cau_adr_casr_bitfields
- {
- uint32_t IC : 1; //!< [0]
- uint32_t DPE : 1; //!< [1]
- uint32_t RESERVED0 : 26; //!< [27:2]
- uint32_t VER : 4; //!< [31:28] CAU version
- } B;
- } hw_cau_adr_casr_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_ADR_CASR register
- */
- //@{
- #define HW_CAU_ADR_CASR_ADDR (REGS_CAU_BASE + 0x8C0U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_ADR_CASR (*(__O hw_cau_adr_casr_t *) HW_CAU_ADR_CASR_ADDR)
- #define HW_CAU_ADR_CASR_WR(v) (HW_CAU_ADR_CASR.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_ADR_CASR bitfields
- */
- /*!
- * @name Register CAU_ADR_CASR, field IC[0] (WO)
- *
- * Values:
- * - 0 - No illegal commands issued
- * - 1 - Illegal command issued
- */
- //@{
- #define BP_CAU_ADR_CASR_IC (0U) //!< Bit position for CAU_ADR_CASR_IC.
- #define BM_CAU_ADR_CASR_IC (0x00000001U) //!< Bit mask for CAU_ADR_CASR_IC.
- #define BS_CAU_ADR_CASR_IC (1U) //!< Bit field size in bits for CAU_ADR_CASR_IC.
- //! @brief Format value for bitfield CAU_ADR_CASR_IC.
- #define BF_CAU_ADR_CASR_IC(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_ADR_CASR_IC), uint32_t) & BM_CAU_ADR_CASR_IC)
- //@}
- /*!
- * @name Register CAU_ADR_CASR, field DPE[1] (WO)
- *
- * Values:
- * - 0 - No error detected
- * - 1 - DES key parity error detected
- */
- //@{
- #define BP_CAU_ADR_CASR_DPE (1U) //!< Bit position for CAU_ADR_CASR_DPE.
- #define BM_CAU_ADR_CASR_DPE (0x00000002U) //!< Bit mask for CAU_ADR_CASR_DPE.
- #define BS_CAU_ADR_CASR_DPE (1U) //!< Bit field size in bits for CAU_ADR_CASR_DPE.
- //! @brief Format value for bitfield CAU_ADR_CASR_DPE.
- #define BF_CAU_ADR_CASR_DPE(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_ADR_CASR_DPE), uint32_t) & BM_CAU_ADR_CASR_DPE)
- //@}
- /*!
- * @name Register CAU_ADR_CASR, field VER[31:28] (WO)
- *
- * Values:
- * - 0001 - Initial CAU version
- * - 0010 - Second version, added support for SHA-256 algorithm.(This is the
- * value on this device)
- */
- //@{
- #define BP_CAU_ADR_CASR_VER (28U) //!< Bit position for CAU_ADR_CASR_VER.
- #define BM_CAU_ADR_CASR_VER (0xF0000000U) //!< Bit mask for CAU_ADR_CASR_VER.
- #define BS_CAU_ADR_CASR_VER (4U) //!< Bit field size in bits for CAU_ADR_CASR_VER.
- //! @brief Format value for bitfield CAU_ADR_CASR_VER.
- #define BF_CAU_ADR_CASR_VER(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_ADR_CASR_VER), uint32_t) & BM_CAU_ADR_CASR_VER)
- //@}
- //-------------------------------------------------------------------------------------------
- // HW_CAU_ADR_CAA - Accumulator register - Add to register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_ADR_CAA - Accumulator register - Add to register command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_adr_caa
- {
- uint32_t U;
- struct _hw_cau_adr_caa_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_adr_caa_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_ADR_CAA register
- */
- //@{
- #define HW_CAU_ADR_CAA_ADDR (REGS_CAU_BASE + 0x8C4U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_ADR_CAA (*(__O hw_cau_adr_caa_t *) HW_CAU_ADR_CAA_ADDR)
- #define HW_CAU_ADR_CAA_WR(v) (HW_CAU_ADR_CAA.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_ADR_CAA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_ADR_CA - General Purpose Register 0 - Add to register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_ADR_CA - General Purpose Register 0 - Add to register command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_adr_ca
- {
- uint32_t U;
- struct _hw_cau_adr_ca_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_adr_ca_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_ADR_CA register
- */
- //@{
- #define HW_CAU_ADR_CA_COUNT (9U)
- #define HW_CAU_ADR_CA_ADDR(n) (REGS_CAU_BASE + 0x8C8U + (0x4U * n))
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_ADR_CA(n) (*(__O hw_cau_adr_ca_t *) HW_CAU_ADR_CA_ADDR(n))
- #define HW_CAU_ADR_CA_WR(n, v) (HW_CAU_ADR_CA(n).U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_ADR_CA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_RADR_CASR - Status register - Reverse and Add to Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_RADR_CASR - Status register - Reverse and Add to Register command (WO)
- *
- * Reset value: 0x20000000U
- */
- typedef union _hw_cau_radr_casr
- {
- uint32_t U;
- struct _hw_cau_radr_casr_bitfields
- {
- uint32_t IC : 1; //!< [0]
- uint32_t DPE : 1; //!< [1]
- uint32_t RESERVED0 : 26; //!< [27:2]
- uint32_t VER : 4; //!< [31:28] CAU version
- } B;
- } hw_cau_radr_casr_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_RADR_CASR register
- */
- //@{
- #define HW_CAU_RADR_CASR_ADDR (REGS_CAU_BASE + 0x900U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_RADR_CASR (*(__O hw_cau_radr_casr_t *) HW_CAU_RADR_CASR_ADDR)
- #define HW_CAU_RADR_CASR_WR(v) (HW_CAU_RADR_CASR.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_RADR_CASR bitfields
- */
- /*!
- * @name Register CAU_RADR_CASR, field IC[0] (WO)
- *
- * Values:
- * - 0 - No illegal commands issued
- * - 1 - Illegal command issued
- */
- //@{
- #define BP_CAU_RADR_CASR_IC (0U) //!< Bit position for CAU_RADR_CASR_IC.
- #define BM_CAU_RADR_CASR_IC (0x00000001U) //!< Bit mask for CAU_RADR_CASR_IC.
- #define BS_CAU_RADR_CASR_IC (1U) //!< Bit field size in bits for CAU_RADR_CASR_IC.
- //! @brief Format value for bitfield CAU_RADR_CASR_IC.
- #define BF_CAU_RADR_CASR_IC(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_RADR_CASR_IC), uint32_t) & BM_CAU_RADR_CASR_IC)
- //@}
- /*!
- * @name Register CAU_RADR_CASR, field DPE[1] (WO)
- *
- * Values:
- * - 0 - No error detected
- * - 1 - DES key parity error detected
- */
- //@{
- #define BP_CAU_RADR_CASR_DPE (1U) //!< Bit position for CAU_RADR_CASR_DPE.
- #define BM_CAU_RADR_CASR_DPE (0x00000002U) //!< Bit mask for CAU_RADR_CASR_DPE.
- #define BS_CAU_RADR_CASR_DPE (1U) //!< Bit field size in bits for CAU_RADR_CASR_DPE.
- //! @brief Format value for bitfield CAU_RADR_CASR_DPE.
- #define BF_CAU_RADR_CASR_DPE(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_RADR_CASR_DPE), uint32_t) & BM_CAU_RADR_CASR_DPE)
- //@}
- /*!
- * @name Register CAU_RADR_CASR, field VER[31:28] (WO)
- *
- * Values:
- * - 0001 - Initial CAU version
- * - 0010 - Second version, added support for SHA-256 algorithm.(This is the
- * value on this device)
- */
- //@{
- #define BP_CAU_RADR_CASR_VER (28U) //!< Bit position for CAU_RADR_CASR_VER.
- #define BM_CAU_RADR_CASR_VER (0xF0000000U) //!< Bit mask for CAU_RADR_CASR_VER.
- #define BS_CAU_RADR_CASR_VER (4U) //!< Bit field size in bits for CAU_RADR_CASR_VER.
- //! @brief Format value for bitfield CAU_RADR_CASR_VER.
- #define BF_CAU_RADR_CASR_VER(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_RADR_CASR_VER), uint32_t) & BM_CAU_RADR_CASR_VER)
- //@}
- //-------------------------------------------------------------------------------------------
- // HW_CAU_RADR_CAA - Accumulator register - Reverse and Add to Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_RADR_CAA - Accumulator register - Reverse and Add to Register command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_radr_caa
- {
- uint32_t U;
- struct _hw_cau_radr_caa_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_radr_caa_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_RADR_CAA register
- */
- //@{
- #define HW_CAU_RADR_CAA_ADDR (REGS_CAU_BASE + 0x904U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_RADR_CAA (*(__O hw_cau_radr_caa_t *) HW_CAU_RADR_CAA_ADDR)
- #define HW_CAU_RADR_CAA_WR(v) (HW_CAU_RADR_CAA.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_RADR_CAA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_RADR_CA - General Purpose Register 0 - Reverse and Add to Register command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_RADR_CA - General Purpose Register 0 - Reverse and Add to Register command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_radr_ca
- {
- uint32_t U;
- struct _hw_cau_radr_ca_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_radr_ca_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_RADR_CA register
- */
- //@{
- #define HW_CAU_RADR_CA_COUNT (9U)
- #define HW_CAU_RADR_CA_ADDR(n) (REGS_CAU_BASE + 0x908U + (0x4U * n))
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_RADR_CA(n) (*(__O hw_cau_radr_ca_t *) HW_CAU_RADR_CA_ADDR(n))
- #define HW_CAU_RADR_CA_WR(n, v) (HW_CAU_RADR_CA(n).U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_RADR_CA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_XOR_CASR - Status register - Exclusive Or command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_XOR_CASR - Status register - Exclusive Or command (WO)
- *
- * Reset value: 0x20000000U
- */
- typedef union _hw_cau_xor_casr
- {
- uint32_t U;
- struct _hw_cau_xor_casr_bitfields
- {
- uint32_t IC : 1; //!< [0]
- uint32_t DPE : 1; //!< [1]
- uint32_t RESERVED0 : 26; //!< [27:2]
- uint32_t VER : 4; //!< [31:28] CAU version
- } B;
- } hw_cau_xor_casr_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_XOR_CASR register
- */
- //@{
- #define HW_CAU_XOR_CASR_ADDR (REGS_CAU_BASE + 0x980U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_XOR_CASR (*(__O hw_cau_xor_casr_t *) HW_CAU_XOR_CASR_ADDR)
- #define HW_CAU_XOR_CASR_WR(v) (HW_CAU_XOR_CASR.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_XOR_CASR bitfields
- */
- /*!
- * @name Register CAU_XOR_CASR, field IC[0] (WO)
- *
- * Values:
- * - 0 - No illegal commands issued
- * - 1 - Illegal command issued
- */
- //@{
- #define BP_CAU_XOR_CASR_IC (0U) //!< Bit position for CAU_XOR_CASR_IC.
- #define BM_CAU_XOR_CASR_IC (0x00000001U) //!< Bit mask for CAU_XOR_CASR_IC.
- #define BS_CAU_XOR_CASR_IC (1U) //!< Bit field size in bits for CAU_XOR_CASR_IC.
- //! @brief Format value for bitfield CAU_XOR_CASR_IC.
- #define BF_CAU_XOR_CASR_IC(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_XOR_CASR_IC), uint32_t) & BM_CAU_XOR_CASR_IC)
- //@}
- /*!
- * @name Register CAU_XOR_CASR, field DPE[1] (WO)
- *
- * Values:
- * - 0 - No error detected
- * - 1 - DES key parity error detected
- */
- //@{
- #define BP_CAU_XOR_CASR_DPE (1U) //!< Bit position for CAU_XOR_CASR_DPE.
- #define BM_CAU_XOR_CASR_DPE (0x00000002U) //!< Bit mask for CAU_XOR_CASR_DPE.
- #define BS_CAU_XOR_CASR_DPE (1U) //!< Bit field size in bits for CAU_XOR_CASR_DPE.
- //! @brief Format value for bitfield CAU_XOR_CASR_DPE.
- #define BF_CAU_XOR_CASR_DPE(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_XOR_CASR_DPE), uint32_t) & BM_CAU_XOR_CASR_DPE)
- //@}
- /*!
- * @name Register CAU_XOR_CASR, field VER[31:28] (WO)
- *
- * Values:
- * - 0001 - Initial CAU version
- * - 0010 - Second version, added support for SHA-256 algorithm.(This is the
- * value on this device)
- */
- //@{
- #define BP_CAU_XOR_CASR_VER (28U) //!< Bit position for CAU_XOR_CASR_VER.
- #define BM_CAU_XOR_CASR_VER (0xF0000000U) //!< Bit mask for CAU_XOR_CASR_VER.
- #define BS_CAU_XOR_CASR_VER (4U) //!< Bit field size in bits for CAU_XOR_CASR_VER.
- //! @brief Format value for bitfield CAU_XOR_CASR_VER.
- #define BF_CAU_XOR_CASR_VER(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_XOR_CASR_VER), uint32_t) & BM_CAU_XOR_CASR_VER)
- //@}
- //-------------------------------------------------------------------------------------------
- // HW_CAU_XOR_CAA - Accumulator register - Exclusive Or command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_XOR_CAA - Accumulator register - Exclusive Or command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_xor_caa
- {
- uint32_t U;
- struct _hw_cau_xor_caa_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_xor_caa_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_XOR_CAA register
- */
- //@{
- #define HW_CAU_XOR_CAA_ADDR (REGS_CAU_BASE + 0x984U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_XOR_CAA (*(__O hw_cau_xor_caa_t *) HW_CAU_XOR_CAA_ADDR)
- #define HW_CAU_XOR_CAA_WR(v) (HW_CAU_XOR_CAA.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_XOR_CAA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_XOR_CA - General Purpose Register 0 - Exclusive Or command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_XOR_CA - General Purpose Register 0 - Exclusive Or command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_xor_ca
- {
- uint32_t U;
- struct _hw_cau_xor_ca_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_xor_ca_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_XOR_CA register
- */
- //@{
- #define HW_CAU_XOR_CA_COUNT (9U)
- #define HW_CAU_XOR_CA_ADDR(n) (REGS_CAU_BASE + 0x988U + (0x4U * n))
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_XOR_CA(n) (*(__O hw_cau_xor_ca_t *) HW_CAU_XOR_CA_ADDR(n))
- #define HW_CAU_XOR_CA_WR(n, v) (HW_CAU_XOR_CA(n).U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_XOR_CA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_ROTL_CASR - Status register - Rotate Left command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_ROTL_CASR - Status register - Rotate Left command (WO)
- *
- * Reset value: 0x20000000U
- */
- typedef union _hw_cau_rotl_casr
- {
- uint32_t U;
- struct _hw_cau_rotl_casr_bitfields
- {
- uint32_t IC : 1; //!< [0]
- uint32_t DPE : 1; //!< [1]
- uint32_t RESERVED0 : 26; //!< [27:2]
- uint32_t VER : 4; //!< [31:28] CAU version
- } B;
- } hw_cau_rotl_casr_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_ROTL_CASR register
- */
- //@{
- #define HW_CAU_ROTL_CASR_ADDR (REGS_CAU_BASE + 0x9C0U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_ROTL_CASR (*(__O hw_cau_rotl_casr_t *) HW_CAU_ROTL_CASR_ADDR)
- #define HW_CAU_ROTL_CASR_WR(v) (HW_CAU_ROTL_CASR.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_ROTL_CASR bitfields
- */
- /*!
- * @name Register CAU_ROTL_CASR, field IC[0] (WO)
- *
- * Values:
- * - 0 - No illegal commands issued
- * - 1 - Illegal command issued
- */
- //@{
- #define BP_CAU_ROTL_CASR_IC (0U) //!< Bit position for CAU_ROTL_CASR_IC.
- #define BM_CAU_ROTL_CASR_IC (0x00000001U) //!< Bit mask for CAU_ROTL_CASR_IC.
- #define BS_CAU_ROTL_CASR_IC (1U) //!< Bit field size in bits for CAU_ROTL_CASR_IC.
- //! @brief Format value for bitfield CAU_ROTL_CASR_IC.
- #define BF_CAU_ROTL_CASR_IC(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_ROTL_CASR_IC), uint32_t) & BM_CAU_ROTL_CASR_IC)
- //@}
- /*!
- * @name Register CAU_ROTL_CASR, field DPE[1] (WO)
- *
- * Values:
- * - 0 - No error detected
- * - 1 - DES key parity error detected
- */
- //@{
- #define BP_CAU_ROTL_CASR_DPE (1U) //!< Bit position for CAU_ROTL_CASR_DPE.
- #define BM_CAU_ROTL_CASR_DPE (0x00000002U) //!< Bit mask for CAU_ROTL_CASR_DPE.
- #define BS_CAU_ROTL_CASR_DPE (1U) //!< Bit field size in bits for CAU_ROTL_CASR_DPE.
- //! @brief Format value for bitfield CAU_ROTL_CASR_DPE.
- #define BF_CAU_ROTL_CASR_DPE(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_ROTL_CASR_DPE), uint32_t) & BM_CAU_ROTL_CASR_DPE)
- //@}
- /*!
- * @name Register CAU_ROTL_CASR, field VER[31:28] (WO)
- *
- * Values:
- * - 0001 - Initial CAU version
- * - 0010 - Second version, added support for SHA-256 algorithm.(This is the
- * value on this device)
- */
- //@{
- #define BP_CAU_ROTL_CASR_VER (28U) //!< Bit position for CAU_ROTL_CASR_VER.
- #define BM_CAU_ROTL_CASR_VER (0xF0000000U) //!< Bit mask for CAU_ROTL_CASR_VER.
- #define BS_CAU_ROTL_CASR_VER (4U) //!< Bit field size in bits for CAU_ROTL_CASR_VER.
- //! @brief Format value for bitfield CAU_ROTL_CASR_VER.
- #define BF_CAU_ROTL_CASR_VER(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_ROTL_CASR_VER), uint32_t) & BM_CAU_ROTL_CASR_VER)
- //@}
- //-------------------------------------------------------------------------------------------
- // HW_CAU_ROTL_CAA - Accumulator register - Rotate Left command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_ROTL_CAA - Accumulator register - Rotate Left command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_rotl_caa
- {
- uint32_t U;
- struct _hw_cau_rotl_caa_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_rotl_caa_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_ROTL_CAA register
- */
- //@{
- #define HW_CAU_ROTL_CAA_ADDR (REGS_CAU_BASE + 0x9C4U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_ROTL_CAA (*(__O hw_cau_rotl_caa_t *) HW_CAU_ROTL_CAA_ADDR)
- #define HW_CAU_ROTL_CAA_WR(v) (HW_CAU_ROTL_CAA.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_ROTL_CAA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_ROTL_CA - General Purpose Register 0 - Rotate Left command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_ROTL_CA - General Purpose Register 0 - Rotate Left command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_rotl_ca
- {
- uint32_t U;
- struct _hw_cau_rotl_ca_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_rotl_ca_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_ROTL_CA register
- */
- //@{
- #define HW_CAU_ROTL_CA_COUNT (9U)
- #define HW_CAU_ROTL_CA_ADDR(n) (REGS_CAU_BASE + 0x9C8U + (0x4U * n))
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_ROTL_CA(n) (*(__O hw_cau_rotl_ca_t *) HW_CAU_ROTL_CA_ADDR(n))
- #define HW_CAU_ROTL_CA_WR(n, v) (HW_CAU_ROTL_CA(n).U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_ROTL_CA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_AESC_CASR - Status register - AES Column Operation command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_AESC_CASR - Status register - AES Column Operation command (WO)
- *
- * Reset value: 0x20000000U
- */
- typedef union _hw_cau_aesc_casr
- {
- uint32_t U;
- struct _hw_cau_aesc_casr_bitfields
- {
- uint32_t IC : 1; //!< [0]
- uint32_t DPE : 1; //!< [1]
- uint32_t RESERVED0 : 26; //!< [27:2]
- uint32_t VER : 4; //!< [31:28] CAU version
- } B;
- } hw_cau_aesc_casr_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_AESC_CASR register
- */
- //@{
- #define HW_CAU_AESC_CASR_ADDR (REGS_CAU_BASE + 0xB00U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_AESC_CASR (*(__O hw_cau_aesc_casr_t *) HW_CAU_AESC_CASR_ADDR)
- #define HW_CAU_AESC_CASR_WR(v) (HW_CAU_AESC_CASR.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_AESC_CASR bitfields
- */
- /*!
- * @name Register CAU_AESC_CASR, field IC[0] (WO)
- *
- * Values:
- * - 0 - No illegal commands issued
- * - 1 - Illegal command issued
- */
- //@{
- #define BP_CAU_AESC_CASR_IC (0U) //!< Bit position for CAU_AESC_CASR_IC.
- #define BM_CAU_AESC_CASR_IC (0x00000001U) //!< Bit mask for CAU_AESC_CASR_IC.
- #define BS_CAU_AESC_CASR_IC (1U) //!< Bit field size in bits for CAU_AESC_CASR_IC.
- //! @brief Format value for bitfield CAU_AESC_CASR_IC.
- #define BF_CAU_AESC_CASR_IC(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_AESC_CASR_IC), uint32_t) & BM_CAU_AESC_CASR_IC)
- //@}
- /*!
- * @name Register CAU_AESC_CASR, field DPE[1] (WO)
- *
- * Values:
- * - 0 - No error detected
- * - 1 - DES key parity error detected
- */
- //@{
- #define BP_CAU_AESC_CASR_DPE (1U) //!< Bit position for CAU_AESC_CASR_DPE.
- #define BM_CAU_AESC_CASR_DPE (0x00000002U) //!< Bit mask for CAU_AESC_CASR_DPE.
- #define BS_CAU_AESC_CASR_DPE (1U) //!< Bit field size in bits for CAU_AESC_CASR_DPE.
- //! @brief Format value for bitfield CAU_AESC_CASR_DPE.
- #define BF_CAU_AESC_CASR_DPE(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_AESC_CASR_DPE), uint32_t) & BM_CAU_AESC_CASR_DPE)
- //@}
- /*!
- * @name Register CAU_AESC_CASR, field VER[31:28] (WO)
- *
- * Values:
- * - 0001 - Initial CAU version
- * - 0010 - Second version, added support for SHA-256 algorithm.(This is the
- * value on this device)
- */
- //@{
- #define BP_CAU_AESC_CASR_VER (28U) //!< Bit position for CAU_AESC_CASR_VER.
- #define BM_CAU_AESC_CASR_VER (0xF0000000U) //!< Bit mask for CAU_AESC_CASR_VER.
- #define BS_CAU_AESC_CASR_VER (4U) //!< Bit field size in bits for CAU_AESC_CASR_VER.
- //! @brief Format value for bitfield CAU_AESC_CASR_VER.
- #define BF_CAU_AESC_CASR_VER(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_AESC_CASR_VER), uint32_t) & BM_CAU_AESC_CASR_VER)
- //@}
- //-------------------------------------------------------------------------------------------
- // HW_CAU_AESC_CAA - Accumulator register - AES Column Operation command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_AESC_CAA - Accumulator register - AES Column Operation command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_aesc_caa
- {
- uint32_t U;
- struct _hw_cau_aesc_caa_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_aesc_caa_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_AESC_CAA register
- */
- //@{
- #define HW_CAU_AESC_CAA_ADDR (REGS_CAU_BASE + 0xB04U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_AESC_CAA (*(__O hw_cau_aesc_caa_t *) HW_CAU_AESC_CAA_ADDR)
- #define HW_CAU_AESC_CAA_WR(v) (HW_CAU_AESC_CAA.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_AESC_CAA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_AESC_CA - General Purpose Register 0 - AES Column Operation command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_AESC_CA - General Purpose Register 0 - AES Column Operation command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_aesc_ca
- {
- uint32_t U;
- struct _hw_cau_aesc_ca_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_aesc_ca_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_AESC_CA register
- */
- //@{
- #define HW_CAU_AESC_CA_COUNT (9U)
- #define HW_CAU_AESC_CA_ADDR(n) (REGS_CAU_BASE + 0xB08U + (0x4U * n))
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_AESC_CA(n) (*(__O hw_cau_aesc_ca_t *) HW_CAU_AESC_CA_ADDR(n))
- #define HW_CAU_AESC_CA_WR(n, v) (HW_CAU_AESC_CA(n).U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_AESC_CA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_AESIC_CASR - Status register - AES Inverse Column Operation command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_AESIC_CASR - Status register - AES Inverse Column Operation command (WO)
- *
- * Reset value: 0x20000000U
- */
- typedef union _hw_cau_aesic_casr
- {
- uint32_t U;
- struct _hw_cau_aesic_casr_bitfields
- {
- uint32_t IC : 1; //!< [0]
- uint32_t DPE : 1; //!< [1]
- uint32_t RESERVED0 : 26; //!< [27:2]
- uint32_t VER : 4; //!< [31:28] CAU version
- } B;
- } hw_cau_aesic_casr_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_AESIC_CASR register
- */
- //@{
- #define HW_CAU_AESIC_CASR_ADDR (REGS_CAU_BASE + 0xB40U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_AESIC_CASR (*(__O hw_cau_aesic_casr_t *) HW_CAU_AESIC_CASR_ADDR)
- #define HW_CAU_AESIC_CASR_WR(v) (HW_CAU_AESIC_CASR.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_AESIC_CASR bitfields
- */
- /*!
- * @name Register CAU_AESIC_CASR, field IC[0] (WO)
- *
- * Values:
- * - 0 - No illegal commands issued
- * - 1 - Illegal command issued
- */
- //@{
- #define BP_CAU_AESIC_CASR_IC (0U) //!< Bit position for CAU_AESIC_CASR_IC.
- #define BM_CAU_AESIC_CASR_IC (0x00000001U) //!< Bit mask for CAU_AESIC_CASR_IC.
- #define BS_CAU_AESIC_CASR_IC (1U) //!< Bit field size in bits for CAU_AESIC_CASR_IC.
- //! @brief Format value for bitfield CAU_AESIC_CASR_IC.
- #define BF_CAU_AESIC_CASR_IC(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_AESIC_CASR_IC), uint32_t) & BM_CAU_AESIC_CASR_IC)
- //@}
- /*!
- * @name Register CAU_AESIC_CASR, field DPE[1] (WO)
- *
- * Values:
- * - 0 - No error detected
- * - 1 - DES key parity error detected
- */
- //@{
- #define BP_CAU_AESIC_CASR_DPE (1U) //!< Bit position for CAU_AESIC_CASR_DPE.
- #define BM_CAU_AESIC_CASR_DPE (0x00000002U) //!< Bit mask for CAU_AESIC_CASR_DPE.
- #define BS_CAU_AESIC_CASR_DPE (1U) //!< Bit field size in bits for CAU_AESIC_CASR_DPE.
- //! @brief Format value for bitfield CAU_AESIC_CASR_DPE.
- #define BF_CAU_AESIC_CASR_DPE(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_AESIC_CASR_DPE), uint32_t) & BM_CAU_AESIC_CASR_DPE)
- //@}
- /*!
- * @name Register CAU_AESIC_CASR, field VER[31:28] (WO)
- *
- * Values:
- * - 0001 - Initial CAU version
- * - 0010 - Second version, added support for SHA-256 algorithm.(This is the
- * value on this device)
- */
- //@{
- #define BP_CAU_AESIC_CASR_VER (28U) //!< Bit position for CAU_AESIC_CASR_VER.
- #define BM_CAU_AESIC_CASR_VER (0xF0000000U) //!< Bit mask for CAU_AESIC_CASR_VER.
- #define BS_CAU_AESIC_CASR_VER (4U) //!< Bit field size in bits for CAU_AESIC_CASR_VER.
- //! @brief Format value for bitfield CAU_AESIC_CASR_VER.
- #define BF_CAU_AESIC_CASR_VER(v) (__REG_VALUE_TYPE((__REG_VALUE_TYPE((v), uint32_t) << BP_CAU_AESIC_CASR_VER), uint32_t) & BM_CAU_AESIC_CASR_VER)
- //@}
- //-------------------------------------------------------------------------------------------
- // HW_CAU_AESIC_CAA - Accumulator register - AES Inverse Column Operation command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_AESIC_CAA - Accumulator register - AES Inverse Column Operation command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_aesic_caa
- {
- uint32_t U;
- struct _hw_cau_aesic_caa_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_aesic_caa_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_AESIC_CAA register
- */
- //@{
- #define HW_CAU_AESIC_CAA_ADDR (REGS_CAU_BASE + 0xB44U)
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_AESIC_CAA (*(__O hw_cau_aesic_caa_t *) HW_CAU_AESIC_CAA_ADDR)
- #define HW_CAU_AESIC_CAA_WR(v) (HW_CAU_AESIC_CAA.U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_AESIC_CAA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // HW_CAU_AESIC_CA - General Purpose Register 0 - AES Inverse Column Operation command
- //-------------------------------------------------------------------------------------------
- #ifndef __LANGUAGE_ASM__
- /*!
- * @brief HW_CAU_AESIC_CA - General Purpose Register 0 - AES Inverse Column Operation command (WO)
- *
- * Reset value: 0x00000000U
- */
- typedef union _hw_cau_aesic_ca
- {
- uint32_t U;
- struct _hw_cau_aesic_ca_bitfields
- {
- uint32_t RESERVED0 : 32; //!< [31:0]
- } B;
- } hw_cau_aesic_ca_t;
- #endif
- /*!
- * @name Constants and macros for entire CAU_AESIC_CA register
- */
- //@{
- #define HW_CAU_AESIC_CA_COUNT (9U)
- #define HW_CAU_AESIC_CA_ADDR(n) (REGS_CAU_BASE + 0xB48U + (0x4U * n))
- #ifndef __LANGUAGE_ASM__
- #define HW_CAU_AESIC_CA(n) (*(__O hw_cau_aesic_ca_t *) HW_CAU_AESIC_CA_ADDR(n))
- #define HW_CAU_AESIC_CA_WR(n, v) (HW_CAU_AESIC_CA(n).U = (v))
- #endif
- //@}
- /*
- * Constants & macros for individual CAU_AESIC_CA bitfields
- */
- //-------------------------------------------------------------------------------------------
- // hw_cau_t - module struct
- //-------------------------------------------------------------------------------------------
- /*!
- * @brief All CAU module registers.
- */
- #ifndef __LANGUAGE_ASM__
- #pragma pack(1)
- typedef struct _hw_cau
- {
- __O hw_cau_direct_t DIRECT[16]; //!< [0x0] Direct access register 0
- uint8_t _reserved0[2048];
- __O hw_cau_ldr_casr_t LDR_CASR; //!< [0x840] Status register - Load Register command
- __O hw_cau_ldr_caa_t LDR_CAA; //!< [0x844] Accumulator register - Load Register command
- __O hw_cau_ldr_ca_t LDR_CA[9]; //!< [0x848] General Purpose Register 0 - Load Register command
- uint8_t _reserved1[20];
- __I hw_cau_str_casr_t STR_CASR; //!< [0x880] Status register - Store Register command
- __I hw_cau_str_caa_t STR_CAA; //!< [0x884] Accumulator register - Store Register command
- __I hw_cau_str_ca_t STR_CA[9]; //!< [0x888] General Purpose Register 0 - Store Register command
- uint8_t _reserved2[20];
- __O hw_cau_adr_casr_t ADR_CASR; //!< [0x8C0] Status register - Add Register command
- __O hw_cau_adr_caa_t ADR_CAA; //!< [0x8C4] Accumulator register - Add to register command
- __O hw_cau_adr_ca_t ADR_CA[9]; //!< [0x8C8] General Purpose Register 0 - Add to register command
- uint8_t _reserved3[20];
- __O hw_cau_radr_casr_t RADR_CASR; //!< [0x900] Status register - Reverse and Add to Register command
- __O hw_cau_radr_caa_t RADR_CAA; //!< [0x904] Accumulator register - Reverse and Add to Register command
- __O hw_cau_radr_ca_t RADR_CA[9]; //!< [0x908] General Purpose Register 0 - Reverse and Add to Register command
- uint8_t _reserved4[84];
- __O hw_cau_xor_casr_t XOR_CASR; //!< [0x980] Status register - Exclusive Or command
- __O hw_cau_xor_caa_t XOR_CAA; //!< [0x984] Accumulator register - Exclusive Or command
- __O hw_cau_xor_ca_t XOR_CA[9]; //!< [0x988] General Purpose Register 0 - Exclusive Or command
- uint8_t _reserved5[20];
- __O hw_cau_rotl_casr_t ROTL_CASR; //!< [0x9C0] Status register - Rotate Left command
- __O hw_cau_rotl_caa_t ROTL_CAA; //!< [0x9C4] Accumulator register - Rotate Left command
- __O hw_cau_rotl_ca_t ROTL_CA[9]; //!< [0x9C8] General Purpose Register 0 - Rotate Left command
- uint8_t _reserved6[276];
- __O hw_cau_aesc_casr_t AESC_CASR; //!< [0xB00] Status register - AES Column Operation command
- __O hw_cau_aesc_caa_t AESC_CAA; //!< [0xB04] Accumulator register - AES Column Operation command
- __O hw_cau_aesc_ca_t AESC_CA[9]; //!< [0xB08] General Purpose Register 0 - AES Column Operation command
- uint8_t _reserved7[20];
- __O hw_cau_aesic_casr_t AESIC_CASR; //!< [0xB40] Status register - AES Inverse Column Operation command
- __O hw_cau_aesic_caa_t AESIC_CAA; //!< [0xB44] Accumulator register - AES Inverse Column Operation command
- __O hw_cau_aesic_ca_t AESIC_CA[9]; //!< [0xB48] General Purpose Register 0 - AES Inverse Column Operation command
- } hw_cau_t;
- #pragma pack()
- //! @brief Macro to access all CAU registers.
- //! @return Reference (not a pointer) to the registers struct. To get a pointer to the struct,
- //! use the '&' operator, like <code>&HW_CAU</code>.
- #define HW_CAU (*(hw_cau_t *) REGS_CAU_BASE)
- #endif
- #endif // __HW_CAU_REGISTERS_H__
- // v22/130726/0.9
- // EOF
|