123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786 |
- /**
- * \file IfxPort_regdef.h
- * \brief
- * \copyright Copyright (c) 2014 Infineon Technologies AG. All rights reserved.
- *
- * Version: TC23XADAS_UM_V1.0P1.R0
- * Specification: tc23xadas_um_sfrs_MCSFR.xml (Revision: UM_V1.0p1)
- * MAY BE CHANGED BY USER [yes/no]: No
- *
- * IMPORTANT NOTICE
- *
- * Infineon Technologies AG (Infineon) is supplying this file for use
- * exclusively with Infineon's microcontroller products. This file can be freely
- * distributed within development tools that are supporting such microcontroller
- * products.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
- * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
- * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
- * OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
- *
- * \defgroup IfxLld_Port Port
- * \ingroup IfxLld
- *
- * \defgroup IfxLld_Port_Bitfields Bitfields
- * \ingroup IfxLld_Port
- *
- * \defgroup IfxLld_Port_union Union
- * \ingroup IfxLld_Port
- *
- * \defgroup IfxLld_Port_struct Struct
- * \ingroup IfxLld_Port
- *
- */
- #ifndef IFXPORT_REGDEF_H
- #define IFXPORT_REGDEF_H 1
- /******************************************************************************/
- #include "Ifx_TypesReg.h"
- /******************************************************************************/
- /** \addtogroup IfxLld_Port_Bitfields
- * \{ */
- /** \\brief Port Access Enable Register 0 */
- typedef struct _Ifx_P_ACCEN0_Bits
- {
- unsigned int EN0:1; /**< \brief [0:0] Access Enable for Master TAG ID n (rw) */
- unsigned int EN1:1; /**< \brief [1:1] Access Enable for Master TAG ID n (rw) */
- unsigned int EN2:1; /**< \brief [2:2] Access Enable for Master TAG ID n (rw) */
- unsigned int EN3:1; /**< \brief [3:3] Access Enable for Master TAG ID n (rw) */
- unsigned int EN4:1; /**< \brief [4:4] Access Enable for Master TAG ID n (rw) */
- unsigned int EN5:1; /**< \brief [5:5] Access Enable for Master TAG ID n (rw) */
- unsigned int EN6:1; /**< \brief [6:6] Access Enable for Master TAG ID n (rw) */
- unsigned int EN7:1; /**< \brief [7:7] Access Enable for Master TAG ID n (rw) */
- unsigned int EN8:1; /**< \brief [8:8] Access Enable for Master TAG ID n (rw) */
- unsigned int EN9:1; /**< \brief [9:9] Access Enable for Master TAG ID n (rw) */
- unsigned int EN10:1; /**< \brief [10:10] Access Enable for Master TAG ID n (rw) */
- unsigned int EN11:1; /**< \brief [11:11] Access Enable for Master TAG ID n (rw) */
- unsigned int EN12:1; /**< \brief [12:12] Access Enable for Master TAG ID n (rw) */
- unsigned int EN13:1; /**< \brief [13:13] Access Enable for Master TAG ID n (rw) */
- unsigned int EN14:1; /**< \brief [14:14] Access Enable for Master TAG ID n (rw) */
- unsigned int EN15:1; /**< \brief [15:15] Access Enable for Master TAG ID n (rw) */
- unsigned int EN16:1; /**< \brief [16:16] Access Enable for Master TAG ID n (rw) */
- unsigned int EN17:1; /**< \brief [17:17] Access Enable for Master TAG ID n (rw) */
- unsigned int EN18:1; /**< \brief [18:18] Access Enable for Master TAG ID n (rw) */
- unsigned int EN19:1; /**< \brief [19:19] Access Enable for Master TAG ID n (rw) */
- unsigned int EN20:1; /**< \brief [20:20] Access Enable for Master TAG ID n (rw) */
- unsigned int EN21:1; /**< \brief [21:21] Access Enable for Master TAG ID n (rw) */
- unsigned int EN22:1; /**< \brief [22:22] Access Enable for Master TAG ID n (rw) */
- unsigned int EN23:1; /**< \brief [23:23] Access Enable for Master TAG ID n (rw) */
- unsigned int EN24:1; /**< \brief [24:24] Access Enable for Master TAG ID n (rw) */
- unsigned int EN25:1; /**< \brief [25:25] Access Enable for Master TAG ID n (rw) */
- unsigned int EN26:1; /**< \brief [26:26] Access Enable for Master TAG ID n (rw) */
- unsigned int EN27:1; /**< \brief [27:27] Access Enable for Master TAG ID n (rw) */
- unsigned int EN28:1; /**< \brief [28:28] Access Enable for Master TAG ID n (rw) */
- unsigned int EN29:1; /**< \brief [29:29] Access Enable for Master TAG ID n (rw) */
- unsigned int EN30:1; /**< \brief [30:30] Access Enable for Master TAG ID n (rw) */
- unsigned int EN31:1; /**< \brief [31:31] Access Enable for Master TAG ID n (rw) */
- } Ifx_P_ACCEN0_Bits;
- /** \\brief Port Access Enable Register 1 */
- typedef struct _Ifx_P_ACCEN1_Bits
- {
- unsigned int reserved_0:32; /**< \brief \internal Reserved */
- } Ifx_P_ACCEN1_Bits;
- /** \\brief Port Emergency Stop Register */
- typedef struct _Ifx_P_ESR_Bits
- {
- unsigned int EN0:1; /**< \brief [0:0] Emergency Stop Enable for Port n Pin 0 (rw) */
- unsigned int EN1:1; /**< \brief [1:1] Emergency Stop Enable for Port n Pin 1 (rw) */
- unsigned int EN2:1; /**< \brief [2:2] Emergency Stop Enable for Port n Pin 2 (rw) */
- unsigned int EN3:1; /**< \brief [3:3] Emergency Stop Enable for Port n Pin 3 (rw) */
- unsigned int EN4:1; /**< \brief [4:4] Emergency Stop Enable for Port n Pin 4 (rw) */
- unsigned int EN5:1; /**< \brief [5:5] Emergency Stop Enable for Port n Pin 5 (rw) */
- unsigned int EN6:1; /**< \brief [6:6] Emergency Stop Enable for Port n Pin 6 (rw) */
- unsigned int EN7:1; /**< \brief [7:7] Emergency Stop Enable for Port n Pin 7 (rw) */
- unsigned int EN8:1; /**< \brief [8:8] Emergency Stop Enable for Port n Pin 8 (rw) */
- unsigned int EN9:1; /**< \brief [9:9] Emergency Stop Enable for Port n Pin 9 (rw) */
- unsigned int EN10:1; /**< \brief [10:10] Emergency Stop Enable for Port n Pin 10 (rw) */
- unsigned int EN11:1; /**< \brief [11:11] Emergency Stop Enable for Port n Pin 11 (rw) */
- unsigned int EN12:1; /**< \brief [12:12] Emergency Stop Enable for Port n Pin 12 (rw) */
- unsigned int EN13:1; /**< \brief [13:13] Emergency Stop Enable for Port n Pin 13 (rw) */
- unsigned int EN14:1; /**< \brief [14:14] Emergency Stop Enable for Port n Pin 14 (rw) */
- unsigned int EN15:1; /**< \brief [15:15] Emergency Stop Enable for Port n Pin 15 (rw) */
- unsigned int reserved_16:16; /**< \brief \internal Reserved */
- } Ifx_P_ESR_Bits;
- /** \\brief Identification Register */
- typedef struct _Ifx_P_ID_Bits
- {
- unsigned int MODREV:8; /**< \brief [7:0] Module Revision Number (r) */
- unsigned int MODTYPE:8; /**< \brief [15:8] Module Type (r) */
- unsigned int MODNUMBER:16; /**< \brief [31:16] Module Number Value (r) */
- } Ifx_P_ID_Bits;
- /** \\brief Port Input Register */
- typedef struct _Ifx_P_IN_Bits
- {
- unsigned int P0:1; /**< \brief [0:0] Port n Input Bit 0 (rh) */
- unsigned int P1:1; /**< \brief [1:1] Port n Input Bit 1 (rh) */
- unsigned int P2:1; /**< \brief [2:2] Port n Input Bit 2 (rh) */
- unsigned int P3:1; /**< \brief [3:3] Port n Input Bit 3 (rh) */
- unsigned int P4:1; /**< \brief [4:4] Port n Input Bit 4 (rh) */
- unsigned int P5:1; /**< \brief [5:5] Port n Input Bit 5 (rh) */
- unsigned int P6:1; /**< \brief [6:6] Port n Input Bit 6 (rh) */
- unsigned int P7:1; /**< \brief [7:7] Port n Input Bit 7 (rh) */
- unsigned int P8:1; /**< \brief [8:8] Port n Input Bit 8 (rh) */
- unsigned int P9:1; /**< \brief [9:9] Port n Input Bit 9 (rh) */
- unsigned int P10:1; /**< \brief [10:10] Port n Input Bit 10 (rh) */
- unsigned int P11:1; /**< \brief [11:11] Port n Input Bit 11 (rh) */
- unsigned int P12:1; /**< \brief [12:12] Port n Input Bit 12 (rh) */
- unsigned int P13:1; /**< \brief [13:13] Port n Input Bit 13 (rh) */
- unsigned int P14:1; /**< \brief [14:14] Port n Input Bit 14 (rh) */
- unsigned int P15:1; /**< \brief [15:15] Port n Input Bit 15 (rh) */
- unsigned int reserved_16:16; /**< \brief \internal Reserved */
- } Ifx_P_IN_Bits;
- /** \\brief Port Input/Output Control Register 0 */
- typedef struct _Ifx_P_IOCR0_Bits
- {
- unsigned int reserved_0:3; /**< \brief \internal Reserved */
- unsigned int PC0:5; /**< \brief [7:3] (rw) */
- unsigned int reserved_8:3; /**< \brief \internal Reserved */
- unsigned int PC1:5; /**< \brief [15:11] (rw) */
- unsigned int reserved_16:3; /**< \brief \internal Reserved */
- unsigned int PC2:5; /**< \brief [23:19] (rw) */
- unsigned int reserved_24:3; /**< \brief \internal Reserved */
- unsigned int PC3:5; /**< \brief [31:27] (rw) */
- } Ifx_P_IOCR0_Bits;
- /** \\brief Port Input/Output Control Register 12 */
- typedef struct _Ifx_P_IOCR12_Bits
- {
- unsigned int reserved_0:3; /**< \brief \internal Reserved */
- unsigned int PC12:5; /**< \brief [7:3] (rw) */
- unsigned int reserved_8:3; /**< \brief \internal Reserved */
- unsigned int PC13:5; /**< \brief [15:11] (rw) */
- unsigned int reserved_16:3; /**< \brief \internal Reserved */
- unsigned int PC14:5; /**< \brief [23:19] (rw) */
- unsigned int reserved_24:3; /**< \brief \internal Reserved */
- unsigned int PC15:5; /**< \brief [31:27] (rw) */
- } Ifx_P_IOCR12_Bits;
- /** \\brief Port Input/Output Control Register 4 */
- typedef struct _Ifx_P_IOCR4_Bits
- {
- unsigned int reserved_0:3; /**< \brief \internal Reserved */
- unsigned int PC4:5; /**< \brief [7:3] (rw) */
- unsigned int reserved_8:3; /**< \brief \internal Reserved */
- unsigned int PC5:5; /**< \brief [15:11] (rw) */
- unsigned int reserved_16:3; /**< \brief \internal Reserved */
- unsigned int PC6:5; /**< \brief [23:19] (rw) */
- unsigned int reserved_24:3; /**< \brief \internal Reserved */
- unsigned int PC7:5; /**< \brief [31:27] (rw) */
- } Ifx_P_IOCR4_Bits;
- /** \\brief Port Input/Output Control Register 8 */
- typedef struct _Ifx_P_IOCR8_Bits
- {
- unsigned int reserved_0:3; /**< \brief \internal Reserved */
- unsigned int PC8:5; /**< \brief [7:3] (rw) */
- unsigned int reserved_8:3; /**< \brief \internal Reserved */
- unsigned int PC9:5; /**< \brief [15:11] (rw) */
- unsigned int reserved_16:3; /**< \brief \internal Reserved */
- unsigned int PC10:5; /**< \brief [23:19] (rw) */
- unsigned int reserved_24:3; /**< \brief \internal Reserved */
- unsigned int PC11:5; /**< \brief [31:27] (rw) */
- } Ifx_P_IOCR8_Bits;
- /** \\brief Port Output Modification Clear Register 0 */
- typedef struct _Ifx_P_OMCR0_Bits
- {
- unsigned int reserved_0:16; /**< \brief \internal Reserved */
- unsigned int PCL0:1; /**< \brief [16:16] Port n Clear Bit 0 (w) */
- unsigned int PCL1:1; /**< \brief [17:17] Port n Clear Bit 1 (w) */
- unsigned int PCL2:1; /**< \brief [18:18] Port n Clear Bit 2 (w) */
- unsigned int PCL3:1; /**< \brief [19:19] Port n Clear Bit 3 (w) */
- unsigned int reserved_20:12; /**< \brief \internal Reserved */
- } Ifx_P_OMCR0_Bits;
- /** \\brief Port Output Modification Clear Register 12 */
- typedef struct _Ifx_P_OMCR12_Bits
- {
- unsigned int reserved_0:28; /**< \brief \internal Reserved */
- unsigned int PCL12:1; /**< \brief [28:28] Port n Clear Bit 12 (w) */
- unsigned int PCL13:1; /**< \brief [29:29] Port n Clear Bit 13 (w) */
- unsigned int PCL14:1; /**< \brief [30:30] Port n Clear Bit 14 (w) */
- unsigned int PCL15:1; /**< \brief [31:31] Port n Clear Bit 15 (w) */
- } Ifx_P_OMCR12_Bits;
- /** \\brief Port Output Modification Clear Register 4 */
- typedef struct _Ifx_P_OMCR4_Bits
- {
- unsigned int reserved_0:20; /**< \brief \internal Reserved */
- unsigned int PCL4:1; /**< \brief [20:20] Port n Clear Bit 4 (w) */
- unsigned int PCL5:1; /**< \brief [21:21] Port n Clear Bit 5 (w) */
- unsigned int PCL6:1; /**< \brief [22:22] Port n Clear Bit 6 (w) */
- unsigned int PCL7:1; /**< \brief [23:23] Port n Clear Bit 7 (w) */
- unsigned int reserved_24:8; /**< \brief \internal Reserved */
- } Ifx_P_OMCR4_Bits;
- /** \\brief Port Output Modification Clear Register 8 */
- typedef struct _Ifx_P_OMCR8_Bits
- {
- unsigned int reserved_0:24; /**< \brief \internal Reserved */
- unsigned int PCL8:1; /**< \brief [24:24] Port n Clear Bit 8 (w) */
- unsigned int PCL9:1; /**< \brief [25:25] Port n Clear Bit 9 (w) */
- unsigned int PCL10:1; /**< \brief [26:26] Port n Clear Bit 10 (w) */
- unsigned int PCL11:1; /**< \brief [27:27] Port n Clear Bit 11 (w) */
- unsigned int reserved_28:4; /**< \brief \internal Reserved */
- } Ifx_P_OMCR8_Bits;
- /** \\brief Port Output Modification Clear Register */
- typedef struct _Ifx_P_OMCR_Bits
- {
- unsigned int reserved_0:16; /**< \brief \internal Reserved */
- unsigned int PCL0:1; /**< \brief [16:16] Port n Clear Bit 0 (w) */
- unsigned int PCL1:1; /**< \brief [17:17] Port n Clear Bit 1 (w) */
- unsigned int PCL2:1; /**< \brief [18:18] Port n Clear Bit 2 (w) */
- unsigned int PCL3:1; /**< \brief [19:19] Port n Clear Bit 3 (w) */
- unsigned int PCL4:1; /**< \brief [20:20] Port n Clear Bit 4 (w) */
- unsigned int PCL5:1; /**< \brief [21:21] Port n Clear Bit 5 (w) */
- unsigned int PCL6:1; /**< \brief [22:22] Port n Clear Bit 6 (w) */
- unsigned int PCL7:1; /**< \brief [23:23] Port n Clear Bit 7 (w) */
- unsigned int PCL8:1; /**< \brief [24:24] Port n Clear Bit 8 (w) */
- unsigned int PCL9:1; /**< \brief [25:25] Port n Clear Bit 9 (w) */
- unsigned int PCL10:1; /**< \brief [26:26] Port n Clear Bit 10 (w) */
- unsigned int PCL11:1; /**< \brief [27:27] Port n Clear Bit 11 (w) */
- unsigned int PCL12:1; /**< \brief [28:28] Port n Clear Bit 12 (w) */
- unsigned int PCL13:1; /**< \brief [29:29] Port n Clear Bit 13 (w) */
- unsigned int PCL14:1; /**< \brief [30:30] Port n Clear Bit 14 (w) */
- unsigned int PCL15:1; /**< \brief [31:31] Port n Clear Bit 15 (w) */
- } Ifx_P_OMCR_Bits;
- /** \\brief Port Output Modification Register */
- typedef struct _Ifx_P_OMR_Bits
- {
- unsigned int PS0:1; /**< \brief [0:0] (w) */
- unsigned int PS1:1; /**< \brief [1:1] (w) */
- unsigned int PS2:1; /**< \brief [2:2] (w) */
- unsigned int PS3:1; /**< \brief [3:3] (w) */
- unsigned int PS4:1; /**< \brief [4:4] (w) */
- unsigned int PS5:1; /**< \brief [5:5] (w) */
- unsigned int PS6:1; /**< \brief [6:6] (w) */
- unsigned int PS7:1; /**< \brief [7:7] (w) */
- unsigned int PS8:1; /**< \brief [8:8] (w) */
- unsigned int PS9:1; /**< \brief [9:9] (w) */
- unsigned int PS10:1; /**< \brief [10:10] (w) */
- unsigned int PS11:1; /**< \brief [11:11] (w) */
- unsigned int PS12:1; /**< \brief [12:12] (w) */
- unsigned int PS13:1; /**< \brief [13:13] (w) */
- unsigned int PS14:1; /**< \brief [14:14] (w) */
- unsigned int PS15:1; /**< \brief [15:15] (w) */
- unsigned int PCL0:1; /**< \brief [16:16] (w) */
- unsigned int PCL1:1; /**< \brief [17:17] (w) */
- unsigned int PCL2:1; /**< \brief [18:18] (w) */
- unsigned int PCL3:1; /**< \brief [19:19] (w) */
- unsigned int PCL4:1; /**< \brief [20:20] (w) */
- unsigned int PCL5:1; /**< \brief [21:21] (w) */
- unsigned int PCL6:1; /**< \brief [22:22] (w) */
- unsigned int PCL7:1; /**< \brief [23:23] (w) */
- unsigned int PCL8:1; /**< \brief [24:24] (w) */
- unsigned int PCL9:1; /**< \brief [25:25] (w) */
- unsigned int PCL10:1; /**< \brief [26:26] (w) */
- unsigned int PCL11:1; /**< \brief [27:27] (w) */
- unsigned int PCL12:1; /**< \brief [28:28] (w) */
- unsigned int PCL13:1; /**< \brief [29:29] (w) */
- unsigned int PCL14:1; /**< \brief [30:30] (w) */
- unsigned int PCL15:1; /**< \brief [31:31] (w) */
- } Ifx_P_OMR_Bits;
- /** \\brief Port Output Modification Set Register 0 */
- typedef struct _Ifx_P_OMSR0_Bits
- {
- unsigned int PS0:1; /**< \brief [0:0] Port n Set Bit 0 (w) */
- unsigned int PS1:1; /**< \brief [1:1] Port n Set Bit 1 (w) */
- unsigned int PS2:1; /**< \brief [2:2] Port n Set Bit 2 (w) */
- unsigned int PS3:1; /**< \brief [3:3] Port n Set Bit 3 (w) */
- unsigned int reserved_4:28; /**< \brief \internal Reserved */
- } Ifx_P_OMSR0_Bits;
- /** \\brief Port Output Modification Set Register 12 */
- typedef struct _Ifx_P_OMSR12_Bits
- {
- unsigned int reserved_0:12; /**< \brief \internal Reserved */
- unsigned int PS12:1; /**< \brief [12:12] Port n Set Bit 12 (w) */
- unsigned int PS13:1; /**< \brief [13:13] Port n Set Bit 13 (w) */
- unsigned int PS14:1; /**< \brief [14:14] Port n Set Bit 14 (w) */
- unsigned int PS15:1; /**< \brief [15:15] Port n Set Bit 15 (w) */
- unsigned int reserved_16:16; /**< \brief \internal Reserved */
- } Ifx_P_OMSR12_Bits;
- /** \\brief Port Output Modification Set Register 4 */
- typedef struct _Ifx_P_OMSR4_Bits
- {
- unsigned int reserved_0:4; /**< \brief \internal Reserved */
- unsigned int PS4:1; /**< \brief [4:4] Port n Set Bit 4 (w) */
- unsigned int PS5:1; /**< \brief [5:5] Port n Set Bit 5 (w) */
- unsigned int PS6:1; /**< \brief [6:6] Port n Set Bit 6 (w) */
- unsigned int PS7:1; /**< \brief [7:7] Port n Set Bit 7 (w) */
- unsigned int reserved_8:24; /**< \brief \internal Reserved */
- } Ifx_P_OMSR4_Bits;
- /** \\brief Port Output Modification Set Register 8 */
- typedef struct _Ifx_P_OMSR8_Bits
- {
- unsigned int reserved_0:8; /**< \brief \internal Reserved */
- unsigned int PS8:1; /**< \brief [8:8] Port n Set Bit 8 (w) */
- unsigned int PS9:1; /**< \brief [9:9] Port n Set Bit 9 (w) */
- unsigned int PS10:1; /**< \brief [10:10] Port n Set Bit 10 (w) */
- unsigned int PS11:1; /**< \brief [11:11] Port n Set Bit 11 (w) */
- unsigned int reserved_12:20; /**< \brief \internal Reserved */
- } Ifx_P_OMSR8_Bits;
- /** \\brief Port Output Modification Set Register */
- typedef struct _Ifx_P_OMSR_Bits
- {
- unsigned int PS0:1; /**< \brief [0:0] Port n Set Bit 0 (w) */
- unsigned int PS1:1; /**< \brief [1:1] Port n Set Bit 1 (w) */
- unsigned int PS2:1; /**< \brief [2:2] Port n Set Bit 2 (w) */
- unsigned int PS3:1; /**< \brief [3:3] Port n Set Bit 3 (w) */
- unsigned int PS4:1; /**< \brief [4:4] Port n Set Bit 4 (w) */
- unsigned int PS5:1; /**< \brief [5:5] Port n Set Bit 5 (w) */
- unsigned int PS6:1; /**< \brief [6:6] Port n Set Bit 6 (w) */
- unsigned int PS7:1; /**< \brief [7:7] Port n Set Bit 7 (w) */
- unsigned int PS8:1; /**< \brief [8:8] Port n Set Bit 8 (w) */
- unsigned int PS9:1; /**< \brief [9:9] Port n Set Bit 9 (w) */
- unsigned int PS10:1; /**< \brief [10:10] Port n Set Bit 10 (w) */
- unsigned int PS11:1; /**< \brief [11:11] Port n Set Bit 11 (w) */
- unsigned int PS12:1; /**< \brief [12:12] Port n Set Bit 12 (w) */
- unsigned int PS13:1; /**< \brief [13:13] Port n Set Bit 13 (w) */
- unsigned int PS14:1; /**< \brief [14:14] Port n Set Bit 14 (w) */
- unsigned int PS15:1; /**< \brief [15:15] Port n Set Bit 15 (w) */
- unsigned int reserved_16:16; /**< \brief \internal Reserved */
- } Ifx_P_OMSR_Bits;
- /** \\brief Port Output Register */
- typedef struct _Ifx_P_OUT_Bits
- {
- unsigned int P0:1; /**< \brief [0:0] (rwh) */
- unsigned int P1:1; /**< \brief [1:1] (rwh) */
- unsigned int P2:1; /**< \brief [2:2] (rwh) */
- unsigned int P3:1; /**< \brief [3:3] (rwh) */
- unsigned int P4:1; /**< \brief [4:4] (rwh) */
- unsigned int P5:1; /**< \brief [5:5] (rwh) */
- unsigned int P6:1; /**< \brief [6:6] (rwh) */
- unsigned int P7:1; /**< \brief [7:7] (rwh) */
- unsigned int P8:1; /**< \brief [8:8] (rwh) */
- unsigned int P9:1; /**< \brief [9:9] (rwh) */
- unsigned int P10:1; /**< \brief [10:10] (rwh) */
- unsigned int P11:1; /**< \brief [11:11] (rwh) */
- unsigned int P12:1; /**< \brief [12:12] (rwh) */
- unsigned int P13:1; /**< \brief [13:13] (rwh) */
- unsigned int P14:1; /**< \brief [14:14] (rwh) */
- unsigned int P15:1; /**< \brief [15:15] (rwh) */
- unsigned int reserved_16:16; /**< \brief \internal Reserved */
- } Ifx_P_OUT_Bits;
- /** \\brief Port Pin Controller Select Register */
- typedef struct _Ifx_P_PCSR_Bits
- {
- unsigned int reserved_0:1; /**< \brief \internal Reserved */
- unsigned int SEL1:1; /**< \brief [1:1] Pin Controller Select for Pin 1 (rw) */
- unsigned int SEL2:1; /**< \brief [2:2] Pin Controller Select for Pin 2 (rw) */
- unsigned int reserved_3:6; /**< \brief \internal Reserved */
- unsigned int SEL9:1; /**< \brief [9:9] Pin Controller Select for Pin 9 (rw) */
- unsigned int SEL10:1; /**< \brief [10:10] Pin Controller Select for Pin 10 (rw) */
- unsigned int reserved_11:20; /**< \brief \internal Reserved */
- unsigned int LCK:1; /**< \brief [31:31] Lock Status (rh) */
- } Ifx_P_PCSR_Bits;
- /** \\brief Port Pin Function Decision Control Register */
- typedef struct _Ifx_P_PDISC_Bits
- {
- unsigned int PDIS0:1; /**< \brief [0:0] Pin Function Decision Control for Pin 0 (rw) */
- unsigned int PDIS1:1; /**< \brief [1:1] Pin Function Decision Control for Pin 1 (rw) */
- unsigned int PDIS2:1; /**< \brief [2:2] Pin Function Decision Control for Pin 2 (rw) */
- unsigned int PDIS3:1; /**< \brief [3:3] Pin Function Decision Control for Pin 3 (rw) */
- unsigned int PDIS4:1; /**< \brief [4:4] Pin Function Decision Control for Pin 4 (rw) */
- unsigned int PDIS5:1; /**< \brief [5:5] Pin Function Decision Control for Pin 5 (rw) */
- unsigned int PDIS6:1; /**< \brief [6:6] Pin Function Decision Control for Pin 6 (rw) */
- unsigned int PDIS7:1; /**< \brief [7:7] Pin Function Decision Control for Pin 7 (rw) */
- unsigned int PDIS8:1; /**< \brief [8:8] Pin Function Decision Control for Pin 8 (rw) */
- unsigned int PDIS9:1; /**< \brief [9:9] Pin Function Decision Control for Pin 9 (rw) */
- unsigned int PDIS10:1; /**< \brief [10:10] Pin Function Decision Control for Pin 10 (rw) */
- unsigned int PDIS11:1; /**< \brief [11:11] Pin Function Decision Control for Pin 11 (rw) */
- unsigned int PDIS12:1; /**< \brief [12:12] Pin Function Decision Control for Pin 12 (rw) */
- unsigned int PDIS13:1; /**< \brief [13:13] Pin Function Decision Control for Pin 13 (rw) */
- unsigned int PDIS14:1; /**< \brief [14:14] Pin Function Decision Control for Pin 14 (rw) */
- unsigned int PDIS15:1; /**< \brief [15:15] Pin Function Decision Control for Pin 15 (rw) */
- unsigned int reserved_16:16; /**< \brief \internal Reserved */
- } Ifx_P_PDISC_Bits;
- /** \\brief Port Pad Driver Mode 0 Register */
- typedef struct _Ifx_P_PDR0_Bits
- {
- unsigned int PD0:3; /**< \brief [2:0] (rw) */
- unsigned int PL0:1; /**< \brief [3:3] (rw) */
- unsigned int PD1:3; /**< \brief [6:4] (rw) */
- unsigned int PL1:1; /**< \brief [7:7] (rw) */
- unsigned int PD2:3; /**< \brief [10:8] (rw) */
- unsigned int PL2:1; /**< \brief [11:11] (rw) */
- unsigned int PD3:3; /**< \brief [14:12] (rw) */
- unsigned int PL3:1; /**< \brief [15:15] (rw) */
- unsigned int PD4:3; /**< \brief [18:16] (rw) */
- unsigned int PL4:1; /**< \brief [19:19] (rw) */
- unsigned int PD5:3; /**< \brief [22:20] (rw) */
- unsigned int PL5:1; /**< \brief [23:23] (rw) */
- unsigned int PD6:3; /**< \brief [26:24] (rw) */
- unsigned int PL6:1; /**< \brief [27:27] (rw) */
- unsigned int PD7:3; /**< \brief [30:28] (rw) */
- unsigned int PL7:1; /**< \brief [31:31] (rw) */
- } Ifx_P_PDR0_Bits;
- /** \\brief Port Pad Driver Mode 1 Register */
- typedef struct _Ifx_P_PDR1_Bits
- {
- unsigned int PD8:3; /**< \brief [2:0] (rw) */
- unsigned int PL8:1; /**< \brief [3:3] (rw) */
- unsigned int PD9:3; /**< \brief [6:4] (rw) */
- unsigned int PL9:1; /**< \brief [7:7] (rw) */
- unsigned int PD10:3; /**< \brief [10:8] (rw) */
- unsigned int PL10:1; /**< \brief [11:11] (rw) */
- unsigned int PD11:3; /**< \brief [14:12] (rw) */
- unsigned int PL11:1; /**< \brief [15:15] (rw) */
- unsigned int PD12:3; /**< \brief [18:16] (rw) */
- unsigned int PL12:1; /**< \brief [19:19] (rw) */
- unsigned int PD13:3; /**< \brief [22:20] (rw) */
- unsigned int PL13:1; /**< \brief [23:23] (rw) */
- unsigned int PD14:3; /**< \brief [26:24] (rw) */
- unsigned int PL14:1; /**< \brief [27:27] (rw) */
- unsigned int PD15:3; /**< \brief [30:28] (rw) */
- unsigned int PL15:1; /**< \brief [31:31] (rw) */
- } Ifx_P_PDR1_Bits;
- /** \} */
- /******************************************************************************/
- /******************************************************************************/
- /** \addtogroup IfxLld_Port_union
- * \{ */
- /** \\brief Port Access Enable Register 0 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_ACCEN0_Bits B;
- } Ifx_P_ACCEN0;
- /** \\brief Port Access Enable Register 1 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_ACCEN1_Bits B;
- } Ifx_P_ACCEN1;
- /** \\brief Port Emergency Stop Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_ESR_Bits B;
- } Ifx_P_ESR;
- /** \\brief Identification Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_ID_Bits B;
- } Ifx_P_ID;
- /** \\brief Port Input Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_IN_Bits B;
- } Ifx_P_IN;
- /** \\brief Port Input/Output Control Register 0 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_IOCR0_Bits B;
- } Ifx_P_IOCR0;
- /** \\brief Port Input/Output Control Register 12 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_IOCR12_Bits B;
- } Ifx_P_IOCR12;
- /** \\brief Port Input/Output Control Register 4 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_IOCR4_Bits B;
- } Ifx_P_IOCR4;
- /** \\brief Port Input/Output Control Register 8 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_IOCR8_Bits B;
- } Ifx_P_IOCR8;
- /** \\brief Port Output Modification Clear Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMCR_Bits B;
- } Ifx_P_OMCR;
- /** \\brief Port Output Modification Clear Register 0 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMCR0_Bits B;
- } Ifx_P_OMCR0;
- /** \\brief Port Output Modification Clear Register 12 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMCR12_Bits B;
- } Ifx_P_OMCR12;
- /** \\brief Port Output Modification Clear Register 4 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMCR4_Bits B;
- } Ifx_P_OMCR4;
- /** \\brief Port Output Modification Clear Register 8 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMCR8_Bits B;
- } Ifx_P_OMCR8;
- /** \\brief Port Output Modification Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMR_Bits B;
- } Ifx_P_OMR;
- /** \\brief Port Output Modification Set Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMSR_Bits B;
- } Ifx_P_OMSR;
- /** \\brief Port Output Modification Set Register 0 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMSR0_Bits B;
- } Ifx_P_OMSR0;
- /** \\brief Port Output Modification Set Register 12 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMSR12_Bits B;
- } Ifx_P_OMSR12;
- /** \\brief Port Output Modification Set Register 4 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMSR4_Bits B;
- } Ifx_P_OMSR4;
- /** \\brief Port Output Modification Set Register 8 */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OMSR8_Bits B;
- } Ifx_P_OMSR8;
- /** \\brief Port Output Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_OUT_Bits B;
- } Ifx_P_OUT;
- /** \\brief Port Pin Controller Select Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_PCSR_Bits B;
- } Ifx_P_PCSR;
- /** \\brief Port Pin Function Decision Control Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_PDISC_Bits B;
- } Ifx_P_PDISC;
- /** \\brief Port Pad Driver Mode 0 Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_PDR0_Bits B;
- } Ifx_P_PDR0;
- /** \\brief Port Pad Driver Mode 1 Register */
- typedef union
- {
- /** \brief Unsigned access */
- unsigned int U;
- /** \brief Signed access */
- signed int I;
- /** \brief Bitfield access */
- Ifx_P_PDR1_Bits B;
- } Ifx_P_PDR1;
- /** \} */
- /******************************************************************************/
- /******************************************************************************/
- /** \addtogroup IfxLld_Port_struct
- * \{ */
- /******************************************************************************/
- /** \name Object L0
- * \{ */
- /** \\brief Port object */
- typedef volatile struct _Ifx_P
- {
- Ifx_P_OUT OUT; /**< \brief 0, Port Output Register */
- Ifx_P_OMR OMR; /**< \brief 4, Port Output Modification Register */
- Ifx_P_ID ID; /**< \brief 8, Identification Register */
- unsigned char reserved_C[4]; /**< \brief C, \internal Reserved */
- Ifx_P_IOCR0 IOCR0; /**< \brief 10, Port Input/Output Control Register 0 */
- Ifx_P_IOCR4 IOCR4; /**< \brief 14, Port Input/Output Control Register 4 */
- Ifx_P_IOCR8 IOCR8; /**< \brief 18, Port Input/Output Control Register 8 */
- Ifx_P_IOCR12 IOCR12; /**< \brief 1C, Port Input/Output Control Register 12 */
- unsigned char reserved_20[4]; /**< \brief 20, \internal Reserved */
- Ifx_P_IN IN; /**< \brief 24, Port Input Register */
- unsigned char reserved_28[24]; /**< \brief 28, \internal Reserved */
- Ifx_P_PDR0 PDR0; /**< \brief 40, Port Pad Driver Mode 0 Register */
- Ifx_P_PDR1 PDR1; /**< \brief 44, Port Pad Driver Mode 1 Register */
- unsigned char reserved_48[8]; /**< \brief 48, \internal Reserved */
- Ifx_P_ESR ESR; /**< \brief 50, Port Emergency Stop Register */
- unsigned char reserved_54[12]; /**< \brief 54, \internal Reserved */
- Ifx_P_PDISC PDISC; /**< \brief 60, Port Pin Function Decision Control Register */
- Ifx_P_PCSR PCSR; /**< \brief 64, Port Pin Controller Select Register */
- unsigned char reserved_64[8]; /**< \brief 68, \internal Reserved */
- Ifx_P_OMSR0 OMSR0; /**< \brief 70, Port Output Modification Set Register 0 */
- Ifx_P_OMSR4 OMSR4; /**< \brief 74, Port Output Modification Set Register 4 */
- Ifx_P_OMSR8 OMSR8; /**< \brief 78, Port Output Modification Set Register 8 */
- Ifx_P_OMSR12 OMSR12; /**< \brief 7C, Port Output Modification Set Register 12 */
- Ifx_P_OMCR0 OMCR0; /**< \brief 80, Port Output Modification Clear Register 0 */
- Ifx_P_OMCR4 OMCR4; /**< \brief 84, Port Output Modification Clear Register 4 */
- Ifx_P_OMCR8 OMCR8; /**< \brief 88, Port Output Modification Clear Register 8 */
- Ifx_P_OMCR12 OMCR12; /**< \brief 8C, Port Output Modification Clear Register 12 */
- Ifx_P_OMSR OMSR; /**< \brief 90, Port Output Modification Set Register */
- Ifx_P_OMCR OMCR; /**< \brief 94, Port Output Modification Clear Register */
- unsigned char reserved_98[96]; /**< \brief 98, \internal Reserved */
- Ifx_P_ACCEN1 ACCEN1; /**< \brief F8, Port Access Enable Register 1 */
- Ifx_P_ACCEN0 ACCEN0; /**< \brief FC, Port Access Enable Register 0 */
- } Ifx_P;
- /** \} */
- /******************************************************************************/
- /** \} */
- /******************************************************************************/
- /******************************************************************************/
- #endif /* IFXPORT_REGDEF_H */
|