blob: ded747368dc4c043004c5f809bde98e3544617db [file] [log] [blame]
/***************************************************************/
/* */
/* PROJECT NAME : RTOSDemo */
/* FILE : iodefine.h */
/* DESCRIPTION : Definition of I/O Registers */
/* CPU SERIES : RX200 */
/* CPU TYPE : RX231 */
/* */
/* This file is generated by e2 studio. */
/* */
/***************************************************************/
/*********************************************************************************
*
* Device : RX/RX200/RX231
*
* File Name : iodefine.h
*
* Abstract : Definition of I/O Register.
*
* History : 0.5A (2014-09-18) [Hardware Manual Revision : 0.50]
* : 1.0A (2015-05-18) [Hardware Manual Revision : 1.00]
* : 1.0C (2015-07-21) [Hardware Manual Revision : 1.00]
*
* NOTE : THIS IS A TYPICAL EXAMPLE.
*
* Copyright (C) 2015 (2014) Renesas Electronics Corporation.
*
*********************************************************************************/
/********************************************************************************/
/* */
/* DESCRIPTION : Definition of ICU Register */
/* CPU TYPE : RX231 */
/* */
/* Usage : IR,DTCER,IER,IPR of ICU Register */
/* The following IR, DTCE, IEN, IPR macro functions simplify usage. */
/* The bit access operation is "Bit_Name(interrupt source,name)". */
/* A part of the name can be omitted. */
/* for example : */
/* IR(MTU0,TGIA0) = 0; expands to : */
/* ICU.IR[114].BIT.IR = 0; */
/* */
/* DTCE(ICU,IRQ0) = 1; expands to : */
/* ICU.DTCER[64].BIT.DTCE = 1; */
/* */
/* IEN(CMT0,CMI0) = 1; expands to : */
/* ICU.IER[0x03].BIT.IEN4 = 1; */
/* */
/* IPR(MTU1,TGIA1) = 2; expands to : */
/* IPR(MTU1,TGI ) = 2; // TGIA1,TGIB1 share IPR level. */
/* ICU.IPR[121].BIT.IPR = 2; */
/* */
/* IPR(SCI0,ERI0) = 3; expands to : */
/* IPR(SCI0, ) = 3; // SCI0 uses single IPR for all sources. */
/* ICU.IPR[214].BIT.IPR = 3; */
/* */
/* Usage : #pragma interrupt Function_Identifier(vect=**) */
/* The number of vector is "(interrupt source, name)". */
/* for example : */
/* #pragma interrupt INT_IRQ0(vect=VECT(ICU,IRQ0)) expands to : */
/* #pragma interrupt INT_IRQ0(vect=64) */
/* #pragma interrupt INT_CMT0_CMI0(vect=VECT(CMT0,CMI0)) expands to : */
/* #pragma interrupt INT_CMT0_CMI0(vect=28) */
/* #pragma interrupt INT_MTU0_TGIA0(vect=VECT(MTU0,TGIA0)) expands to : */
/* #pragma interrupt INT_MTU0_TGIA0(vect=114) */
/* #pragma interrupt INT_TPU0_TGI0A(vect=VECT(TPU0,TGI0A)) expands to : */
/* #pragma interrupt INT_TPU0_TGI0A(vect=142) */
/* */
/* Usage : MSTPCRA,MSTPCRB,MSTPCRC of SYSTEM Register */
/* The bit access operation is "MSTP(name)". */
/* The name that can be used is a macro name defined with "iodefine.h". */
/* for example : */
/* MSTP(TMR2) = 0; // TMR2,TMR3,TMR23 expands to : */
/* SYSTEM.MSTPCRA.BIT.MSTPA4 = 0; */
/* MSTP(SCI0) = 0; // SCI0,SMCI0 expands to : */
/* SYSTEM.MSTPCRB.BIT.MSTPB31 = 0; */
/* MSTP(MTU4) = 0; // MTU,MTU0,MTU1,MTU2,MTU3,MTU4,MTU5 expands to : */
/* SYSTEM.MSTPCRA.BIT.MSTPA9 = 0; */
/* MSTP(TPU4) = 0; // TPU,TPU0,TPU1,TPU2,TPU3,TPU4,TPU5 expands to : */
/* SYSTEM.MSTPCRA.BIT.MSTPA13 = 0; */
/* MSTP(CMT3) = 0; // CMT2,CMT3 expands to : */
/* SYSTEM.MSTPCRA.BIT.MSTPA14 = 0; */
/* */
/* */
/********************************************************************************/
#ifndef __RX231IODEFINE_HEADER__
#define __RX231IODEFINE_HEADER__
#pragma pack(4)
struct st_bsc {
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char STSCLR : 1;
unsigned char : 7;
#else
unsigned char : 7;
unsigned char STSCLR : 1;
#endif
} BIT;
} BERCLR;
char wk0[3];
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char IGAEN : 1;
unsigned char TOEN : 1;
unsigned char : 6;
#else
unsigned char : 6;
unsigned char TOEN : 1;
unsigned char IGAEN : 1;
#endif
} BIT;
} BEREN;
char wk1[3];
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char IA : 1;
unsigned char TO : 1;
unsigned char : 2;
unsigned char MST : 3;
unsigned char : 1;
#else
unsigned char : 1;
unsigned char MST : 3;
unsigned char : 2;
unsigned char TO : 1;
unsigned char IA : 1;
#endif
} BIT;
} BERSR1;
char wk2[1];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short : 3;
unsigned short ADDR : 13;
#else
unsigned short ADDR : 13;
unsigned short : 3;
#endif
} BIT;
} BERSR2;
char wk3[4];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short BPRA : 2;
unsigned short BPRO : 2;
unsigned short BPIB : 2;
unsigned short BPGB : 2;
unsigned short BPHB : 2;
unsigned short BPFB : 2;
unsigned short BPEB : 2;
unsigned short : 2;
#else
unsigned short : 2;
unsigned short BPEB : 2;
unsigned short BPFB : 2;
unsigned short BPHB : 2;
unsigned short BPGB : 2;
unsigned short BPIB : 2;
unsigned short BPRO : 2;
unsigned short BPRA : 2;
#endif
} BIT;
} BUSPRI;
char wk4[7408];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short WRMOD : 1;
unsigned short : 2;
unsigned short EWENB : 1;
unsigned short : 4;
unsigned short PRENB : 1;
unsigned short PWENB : 1;
unsigned short : 5;
unsigned short PRMOD : 1;
#else
unsigned short PRMOD : 1;
unsigned short : 5;
unsigned short PWENB : 1;
unsigned short PRENB : 1;
unsigned short : 4;
unsigned short EWENB : 1;
unsigned short : 2;
unsigned short WRMOD : 1;
#endif
} BIT;
} CS0MOD;
union {
unsigned long LONG;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned long CSPWWAIT : 3;
unsigned long : 5;
unsigned long CSPRWAIT : 3;
unsigned long : 5;
unsigned long CSWWAIT : 5;
unsigned long : 3;
unsigned long CSRWAIT : 5;
unsigned long : 3;
#else
unsigned long : 3;
unsigned long CSRWAIT : 5;
unsigned long : 3;
unsigned long CSWWAIT : 5;
unsigned long : 5;
unsigned long CSPRWAIT : 3;
unsigned long : 5;
unsigned long CSPWWAIT : 3;
#endif
} BIT;
} CS0WCR1;
union {
unsigned long LONG;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned long CSROFF : 3;
unsigned long : 1;
unsigned long CSWOFF : 3;
unsigned long : 1;
unsigned long WDOFF : 3;
unsigned long : 1;
unsigned long AWAIT : 2;
unsigned long : 2;
unsigned long RDON : 3;
unsigned long : 1;
unsigned long WRON : 3;
unsigned long : 1;
unsigned long WDON : 3;
unsigned long : 1;
unsigned long CSON : 3;
unsigned long : 1;
#else
unsigned long : 1;
unsigned long CSON : 3;
unsigned long : 1;
unsigned long WDON : 3;
unsigned long : 1;
unsigned long WRON : 3;
unsigned long : 1;
unsigned long RDON : 3;
unsigned long : 2;
unsigned long AWAIT : 2;
unsigned long : 1;
unsigned long WDOFF : 3;
unsigned long : 1;
unsigned long CSWOFF : 3;
unsigned long : 1;
unsigned long CSROFF : 3;
#endif
} BIT;
} CS0WCR2;
char wk5[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short WRMOD : 1;
unsigned short : 2;
unsigned short EWENB : 1;
unsigned short : 4;
unsigned short PRENB : 1;
unsigned short PWENB : 1;
unsigned short : 5;
unsigned short PRMOD : 1;
#else
unsigned short PRMOD : 1;
unsigned short : 5;
unsigned short PWENB : 1;
unsigned short PRENB : 1;
unsigned short : 4;
unsigned short EWENB : 1;
unsigned short : 2;
unsigned short WRMOD : 1;
#endif
} BIT;
} CS1MOD;
union {
unsigned long LONG;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned long CSPWWAIT : 3;
unsigned long : 5;
unsigned long CSPRWAIT : 3;
unsigned long : 5;
unsigned long CSWWAIT : 5;
unsigned long : 3;
unsigned long CSRWAIT : 5;
unsigned long : 3;
#else
unsigned long : 3;
unsigned long CSRWAIT : 5;
unsigned long : 3;
unsigned long CSWWAIT : 5;
unsigned long : 5;
unsigned long CSPRWAIT : 3;
unsigned long : 5;
unsigned long CSPWWAIT : 3;
#endif
} BIT;
} CS1WCR1;
union {
unsigned long LONG;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned long CSROFF : 3;
unsigned long : 1;
unsigned long CSWOFF : 3;
unsigned long : 1;
unsigned long WDOFF : 3;
unsigned long : 1;
unsigned long AWAIT : 2;
unsigned long : 2;
unsigned long RDON : 3;
unsigned long : 1;
unsigned long WRON : 3;
unsigned long : 1;
unsigned long WDON : 3;
unsigned long : 1;
unsigned long CSON : 3;
unsigned long : 1;
#else
unsigned long : 1;
unsigned long CSON : 3;
unsigned long : 1;
unsigned long WDON : 3;
unsigned long : 1;
unsigned long WRON : 3;
unsigned long : 1;
unsigned long RDON : 3;
unsigned long : 2;
unsigned long AWAIT : 2;
unsigned long : 1;
unsigned long WDOFF : 3;
unsigned long : 1;
unsigned long CSWOFF : 3;
unsigned long : 1;
unsigned long CSROFF : 3;
#endif
} BIT;
} CS1WCR2;
char wk6[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short WRMOD : 1;
unsigned short : 2;
unsigned short EWENB : 1;
unsigned short : 4;
unsigned short PRENB : 1;
unsigned short PWENB : 1;
unsigned short : 5;
unsigned short PRMOD : 1;
#else
unsigned short PRMOD : 1;
unsigned short : 5;
unsigned short PWENB : 1;
unsigned short PRENB : 1;
unsigned short : 4;
unsigned short EWENB : 1;
unsigned short : 2;
unsigned short WRMOD : 1;
#endif
} BIT;
} CS2MOD;
union {
unsigned long LONG;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned long CSPWWAIT : 3;
unsigned long : 5;
unsigned long CSPRWAIT : 3;
unsigned long : 5;
unsigned long CSWWAIT : 5;
unsigned long : 3;
unsigned long CSRWAIT : 5;
unsigned long : 3;
#else
unsigned long : 3;
unsigned long CSRWAIT : 5;
unsigned long : 3;
unsigned long CSWWAIT : 5;
unsigned long : 5;
unsigned long CSPRWAIT : 3;
unsigned long : 5;
unsigned long CSPWWAIT : 3;
#endif
} BIT;
} CS2WCR1;
union {
unsigned long LONG;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned long CSROFF : 3;
unsigned long : 1;
unsigned long CSWOFF : 3;
unsigned long : 1;
unsigned long WDOFF : 3;
unsigned long : 1;
unsigned long AWAIT : 2;
unsigned long : 2;
unsigned long RDON : 3;
unsigned long : 1;
unsigned long WRON : 3;
unsigned long : 1;
unsigned long WDON : 3;
unsigned long : 1;
unsigned long CSON : 3;
unsigned long : 1;
#else
unsigned long : 1;
unsigned long CSON : 3;
unsigned long : 1;
unsigned long WDON : 3;
unsigned long : 1;
unsigned long WRON : 3;
unsigned long : 1;
unsigned long RDON : 3;
unsigned long : 2;
unsigned long AWAIT : 2;
unsigned long : 1;
unsigned long WDOFF : 3;
unsigned long : 1;
unsigned long CSWOFF : 3;
unsigned long : 1;
unsigned long CSROFF : 3;
#endif
} BIT;
} CS2WCR2;
char wk7[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short WRMOD : 1;
unsigned short : 2;
unsigned short EWENB : 1;
unsigned short : 4;
unsigned short PRENB : 1;
unsigned short PWENB : 1;
unsigned short : 5;
unsigned short PRMOD : 1;
#else
unsigned short PRMOD : 1;
unsigned short : 5;
unsigned short PWENB : 1;
unsigned short PRENB : 1;
unsigned short : 4;
unsigned short EWENB : 1;
unsigned short : 2;
unsigned short WRMOD : 1;
#endif
} BIT;
} CS3MOD;
union {
unsigned long LONG;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned long CSPWWAIT : 3;
unsigned long : 5;
unsigned long CSPRWAIT : 3;
unsigned long : 5;
unsigned long CSWWAIT : 5;
unsigned long : 3;
unsigned long CSRWAIT : 5;
unsigned long : 3;
#else
unsigned long : 3;
unsigned long CSRWAIT : 5;
unsigned long : 3;
unsigned long CSWWAIT : 5;
unsigned long : 5;
unsigned long CSPRWAIT : 3;
unsigned long : 5;
unsigned long CSPWWAIT : 3;
#endif
} BIT;
} CS3WCR1;
union {
unsigned long LONG;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned long CSROFF : 3;
unsigned long : 1;
unsigned long CSWOFF : 3;
unsigned long : 1;
unsigned long WDOFF : 3;
unsigned long : 1;
unsigned long AWAIT : 2;
unsigned long : 2;
unsigned long RDON : 3;
unsigned long : 1;
unsigned long WRON : 3;
unsigned long : 1;
unsigned long WDON : 3;
unsigned long : 1;
unsigned long CSON : 3;
unsigned long : 1;
#else
unsigned long : 1;
unsigned long CSON : 3;
unsigned long : 1;
unsigned long WDON : 3;
unsigned long : 1;
unsigned long WRON : 3;
unsigned long : 1;
unsigned long RDON : 3;
unsigned long : 2;
unsigned long AWAIT : 2;
unsigned long : 1;
unsigned long WDOFF : 3;
unsigned long : 1;
unsigned long CSWOFF : 3;
unsigned long : 1;
unsigned long CSROFF : 3;
#endif
} BIT;
} CS3WCR2;
char wk8[1990];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short EXENB : 1;
unsigned short : 3;
unsigned short BSIZE : 2;
unsigned short : 2;
unsigned short EMODE : 1;
unsigned short : 3;
unsigned short MPXEN : 1;
unsigned short : 3;
#else
unsigned short : 3;
unsigned short MPXEN : 1;
unsigned short : 3;
unsigned short EMODE : 1;
unsigned short : 2;
unsigned short BSIZE : 2;
unsigned short : 3;
unsigned short EXENB : 1;
#endif
} BIT;
} CS0CR;
char wk9[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RRCV : 4;
unsigned short : 4;
unsigned short WRCV : 4;
unsigned short : 4;
#else
unsigned short : 4;
unsigned short WRCV : 4;
unsigned short : 4;
unsigned short RRCV : 4;
#endif
} BIT;
} CS0REC;
char wk10[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short EXENB : 1;
unsigned short : 3;
unsigned short BSIZE : 2;
unsigned short : 2;
unsigned short EMODE : 1;
unsigned short : 3;
unsigned short MPXEN : 1;
unsigned short : 3;
#else
unsigned short : 3;
unsigned short MPXEN : 1;
unsigned short : 3;
unsigned short EMODE : 1;
unsigned short : 2;
unsigned short BSIZE : 2;
unsigned short : 3;
unsigned short EXENB : 1;
#endif
} BIT;
} CS1CR;
char wk11[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RRCV : 4;
unsigned short : 4;
unsigned short WRCV : 4;
unsigned short : 4;
#else
unsigned short : 4;
unsigned short WRCV : 4;
unsigned short : 4;
unsigned short RRCV : 4;
#endif
} BIT;
} CS1REC;
char wk12[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short EXENB : 1;
unsigned short : 3;
unsigned short BSIZE : 2;
unsigned short : 2;
unsigned short EMODE : 1;
unsigned short : 3;
unsigned short MPXEN : 1;
unsigned short : 3;
#else
unsigned short : 3;
unsigned short MPXEN : 1;
unsigned short : 3;
unsigned short EMODE : 1;
unsigned short : 2;
unsigned short BSIZE : 2;
unsigned short : 3;
unsigned short EXENB : 1;
#endif
} BIT;
} CS2CR;
char wk13[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RRCV : 4;
unsigned short : 4;
unsigned short WRCV : 4;
unsigned short : 4;
#else
unsigned short : 4;
unsigned short WRCV : 4;
unsigned short : 4;
unsigned short RRCV : 4;
#endif
} BIT;
} CS2REC;
char wk14[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short EXENB : 1;
unsigned short : 3;
unsigned short BSIZE : 2;
unsigned short : 2;
unsigned short EMODE : 1;
unsigned short : 3;
unsigned short MPXEN : 1;
unsigned short : 3;
#else
unsigned short : 3;
unsigned short MPXEN : 1;
unsigned short : 3;
unsigned short EMODE : 1;
unsigned short : 2;
unsigned short BSIZE : 2;
unsigned short : 3;
unsigned short EXENB : 1;
#endif
} BIT;
} CS3CR;
char wk15[6];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RRCV : 4;
unsigned short : 4;
unsigned short WRCV : 4;
unsigned short : 4;
#else
unsigned short : 4;
unsigned short WRCV : 4;
unsigned short : 4;
unsigned short RRCV : 4;
#endif
} BIT;
} CS3REC;
char wk16[68];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RCVEN0 : 1;
unsigned short RCVEN1 : 1;
unsigned short RCVEN2 : 1;
unsigned short RCVEN3 : 1;
unsigned short RCVEN4 : 1;
unsigned short RCVEN5 : 1;
unsigned short RCVEN6 : 1;
unsigned short RCVEN7 : 1;
unsigned short RCVENM0 : 1;
unsigned short RCVENM1 : 1;
unsigned short RCVENM2 : 1;
unsigned short RCVENM3 : 1;
unsigned short RCVENM4 : 1;
unsigned short RCVENM5 : 1;
unsigned short RCVENM6 : 1;
unsigned short RCVENM7 : 1;
#else
unsigned short RCVENM7 : 1;
unsigned short RCVENM6 : 1;
unsigned short RCVENM5 : 1;
unsigned short RCVENM4 : 1;
unsigned short RCVENM3 : 1;
unsigned short RCVENM2 : 1;
unsigned short RCVENM1 : 1;
unsigned short RCVENM0 : 1;
unsigned short RCVEN7 : 1;
unsigned short RCVEN6 : 1;
unsigned short RCVEN5 : 1;
unsigned short RCVEN4 : 1;
unsigned short RCVEN3 : 1;
unsigned short RCVEN2 : 1;
unsigned short RCVEN1 : 1;
unsigned short RCVEN0 : 1;
#endif
} BIT;
} CSRECEN;
};
struct st_cac {
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char CFME : 1;
unsigned char : 7;
#else
unsigned char : 7;
unsigned char CFME : 1;
#endif
} BIT;
} CACR0;
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char CACREFE : 1;
unsigned char FMCS : 3;
unsigned char TCSS : 2;
unsigned char EDGES : 2;
#else
unsigned char EDGES : 2;
unsigned char TCSS : 2;
unsigned char FMCS : 3;
unsigned char CACREFE : 1;
#endif
} BIT;
} CACR1;
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char RPS : 1;
unsigned char RSCS : 3;
unsigned char RCDS : 2;
unsigned char DFS : 2;
#else
unsigned char DFS : 2;
unsigned char RCDS : 2;
unsigned char RSCS : 3;
unsigned char RPS : 1;
#endif
} BIT;
} CACR2;
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char FERRIE : 1;
unsigned char MENDIE : 1;
unsigned char OVFIE : 1;
unsigned char : 1;
unsigned char FERRFCL : 1;
unsigned char MENDFCL : 1;
unsigned char OVFFCL : 1;
unsigned char : 1;
#else
unsigned char : 1;
unsigned char OVFFCL : 1;
unsigned char MENDFCL : 1;
unsigned char FERRFCL : 1;
unsigned char : 1;
unsigned char OVFIE : 1;
unsigned char MENDIE : 1;
unsigned char FERRIE : 1;
#endif
} BIT;
} CAICR;
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char FERRF : 1;
unsigned char MENDF : 1;
unsigned char OVFF : 1;
unsigned char : 5;
#else
unsigned char : 5;
unsigned char OVFF : 1;
unsigned char MENDF : 1;
unsigned char FERRF : 1;
#endif
} BIT;
} CASTR;
char wk0[1];
unsigned short CAULVR;
unsigned short CALLVR;
unsigned short CACNTBR;
};
struct st_rscan {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short TPRI : 1;
unsigned short DCE : 1;
unsigned short DRE : 1;
unsigned short MME : 1;
unsigned short DCS : 1;
unsigned short : 3;
unsigned short TSP : 4;
unsigned short TSSS : 1;
unsigned short : 3;
#else
unsigned short : 3;
unsigned short TSSS : 1;
unsigned short TSP : 4;
unsigned short : 3;
unsigned short DCS : 1;
unsigned short MME : 1;
unsigned short DRE : 1;
unsigned short DCE : 1;
unsigned short TPRI : 1;
#endif
} BIT;
} GCFGL;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short ITRCP : 16;
#else
unsigned short ITRCP : 16;
#endif
} BIT;
} GCFGH;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GMDC : 2;
unsigned short GSLPR : 1;
unsigned short : 5;
unsigned short DEIE : 1;
unsigned short MEIE : 1;
unsigned short THLEIE : 1;
unsigned short : 5;
#else
unsigned short : 5;
unsigned short THLEIE : 1;
unsigned short MEIE : 1;
unsigned short DEIE : 1;
unsigned short : 5;
unsigned short GSLPR : 1;
unsigned short GMDC : 2;
#endif
} BIT;
} GCTRL;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short TSRST : 1;
unsigned short : 15;
#else
unsigned short : 15;
unsigned short TSRST : 1;
#endif
} BIT;
} GCTRH;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GRSTSTS : 1;
unsigned short GHLTSTS : 1;
unsigned short GSLPSTS : 1;
unsigned short GRAMINIT : 1;
unsigned short : 12;
#else
unsigned short : 12;
unsigned short GRAMINIT : 1;
unsigned short GSLPSTS : 1;
unsigned short GHLTSTS : 1;
unsigned short GRSTSTS : 1;
#endif
} BIT;
} GSTS;
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char DEF : 1;
unsigned char MES : 1;
unsigned char THLES : 1;
unsigned char : 5;
#else
unsigned char : 5;
unsigned char THLES : 1;
unsigned char MES : 1;
unsigned char DEF : 1;
#endif
} BIT;
} GERFLL;
char wk0[1];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short TS : 16;
#else
unsigned short TS : 16;
#endif
} BIT;
} GTSC;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RNC0 : 5;
unsigned short : 11;
#else
unsigned short : 11;
unsigned short RNC0 : 5;
#endif
} BIT;
} GAFLCFG;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short NRXMB : 5;
unsigned short : 11;
#else
unsigned short : 11;
unsigned short NRXMB : 5;
#endif
} BIT;
} RMNB;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMNS : 16;
#else
unsigned short RMNS : 16;
#endif
} BIT;
} RMND0;
char wk1[2];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RFE : 1;
unsigned short RFIE : 1;
unsigned short : 6;
unsigned short RFDC : 3;
unsigned short : 1;
unsigned short RFIM : 1;
unsigned short RFIGCV : 3;
#else
unsigned short RFIGCV : 3;
unsigned short RFIM : 1;
unsigned short : 1;
unsigned short RFDC : 3;
unsigned short : 6;
unsigned short RFIE : 1;
unsigned short RFE : 1;
#endif
} BIT;
} RFCC0;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RFE : 1;
unsigned short RFIE : 1;
unsigned short : 6;
unsigned short RFDC : 3;
unsigned short : 1;
unsigned short RFIM : 1;
unsigned short RFIGCV : 3;
#else
unsigned short RFIGCV : 3;
unsigned short RFIM : 1;
unsigned short : 1;
unsigned short RFDC : 3;
unsigned short : 6;
unsigned short RFIE : 1;
unsigned short RFE : 1;
#endif
} BIT;
} RFCC1;
char wk2[4];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RFEMP : 1;
unsigned short RFFLL : 1;
unsigned short RFMLT : 1;
unsigned short RFIF : 1;
unsigned short : 4;
unsigned short RFMC : 6;
unsigned short : 2;
#else
unsigned short : 2;
unsigned short RFMC : 6;
unsigned short : 4;
unsigned short RFIF : 1;
unsigned short RFMLT : 1;
unsigned short RFFLL : 1;
unsigned short RFEMP : 1;
#endif
} BIT;
} RFSTS0;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RFEMP : 1;
unsigned short RFFLL : 1;
unsigned short RFMLT : 1;
unsigned short RFIF : 1;
unsigned short : 4;
unsigned short RFMC : 6;
unsigned short : 2;
#else
unsigned short : 2;
unsigned short RFMC : 6;
unsigned short : 4;
unsigned short RFIF : 1;
unsigned short RFMLT : 1;
unsigned short RFFLL : 1;
unsigned short RFEMP : 1;
#endif
} BIT;
} RFSTS1;
char wk3[4];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RFPC : 8;
unsigned short : 8;
#else
unsigned short : 8;
unsigned short RFPC : 8;
#endif
} BIT;
} RFPCTR0;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RFPC : 8;
unsigned short : 8;
#else
unsigned short : 8;
unsigned short RFPC : 8;
#endif
} BIT;
} RFPCTR1;
char wk4[20];
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char RF0MLT : 1;
unsigned char RF1MLT : 1;
unsigned char : 6;
#else
unsigned char : 6;
unsigned char RF1MLT : 1;
unsigned char RF0MLT : 1;
#endif
} BIT;
} RFMSTS;
char wk5[1];
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char RF0IF : 1;
unsigned char RF1IF : 1;
unsigned char : 6;
#else
unsigned char : 6;
unsigned char RF1IF : 1;
unsigned char RF0IF : 1;
#endif
} BIT;
} RFISTS;
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char CF0IF : 1;
unsigned char : 7;
#else
unsigned char : 7;
unsigned char CF0IF : 1;
#endif
} BIT;
} CFISTS;
char wk6[36];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short TSIF0 : 1;
unsigned short TAIF0 : 1;
unsigned short CFTIF0 : 1;
unsigned short THIF0 : 1;
unsigned short : 12;
#else
unsigned short : 12;
unsigned short THIF0 : 1;
unsigned short CFTIF0 : 1;
unsigned short TAIF0 : 1;
unsigned short TSIF0 : 1;
#endif
} BIT;
} GTINTSTS;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RPAGE : 1;
unsigned short : 15;
#else
unsigned short : 15;
unsigned short RPAGE : 1;
#endif
} BIT;
} GRWCR;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short : 8;
unsigned short RTMPS : 3;
unsigned short : 5;
#else
unsigned short : 5;
unsigned short RTMPS : 3;
unsigned short : 8;
#endif
} BIT;
} GTSTCFG;
union {
unsigned char BYTE;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned char : 2;
unsigned char RTME : 1;
unsigned char : 5;
#else
unsigned char : 5;
unsigned char RTME : 1;
unsigned char : 2;
#endif
} BIT;
} GTSTCTRL;
char wk7[5];
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short LOCK : 16;
#else
unsigned short LOCK : 16;
#endif
} BIT;
} GLOCKK;
char wk8[10];
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 16;
#else
unsigned short GAFLID : 16;
#endif
} BIT;
} GAFLIDL0;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 16;
#else
unsigned short RMID : 16;
#endif
} BIT;
} RMIDL0;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 13;
unsigned short GAFLLB : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLIDE : 1;
#else
unsigned short GAFLIDE : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLLB : 1;
unsigned short GAFLID : 13;
#endif
} BIT;
} GAFLIDH0;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 13;
unsigned short : 1;
unsigned short RMRTR : 1;
unsigned short RMIDE : 1;
#else
unsigned short RMIDE : 1;
unsigned short RMRTR : 1;
unsigned short : 1;
unsigned short RMID : 13;
#endif
} BIT;
} RMIDH0;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 16;
#else
unsigned short GAFLIDM : 16;
#endif
} BIT;
} GAFLML0;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMTS : 16;
#else
unsigned short RMTS : 16;
#endif
} BIT;
} RMTS0;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 13;
unsigned short : 1;
unsigned short GAFLRTRM : 1;
unsigned short GAFLIDEM : 1;
#else
unsigned short GAFLIDEM : 1;
unsigned short GAFLRTRM : 1;
unsigned short : 1;
unsigned short GAFLIDM : 13;
#endif
} BIT;
} GAFLMH0;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMPTR : 12;
unsigned short RMDLC : 4;
#else
unsigned short RMDLC : 4;
unsigned short RMPTR : 12;
#endif
} BIT;
} RMPTR0;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLFDP0 : 1;
unsigned short GAFLFDP1 : 1;
unsigned short : 2;
unsigned short GAFLFDP4 : 1;
unsigned short : 3;
unsigned short GAFLRMDP : 7;
unsigned short GAFLRMV : 1;
#else
unsigned short GAFLRMV : 1;
unsigned short GAFLRMDP : 7;
unsigned short : 3;
unsigned short GAFLFDP4 : 1;
unsigned short : 2;
unsigned short GAFLFDP1 : 1;
unsigned short GAFLFDP0 : 1;
#endif
} BIT;
} GAFLPL0;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB0 : 8;
unsigned short RMDB1 : 8;
#else
unsigned short RMDB1 : 8;
unsigned short RMDB0 : 8;
#endif
} BIT;
} RMDF00;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLPTR : 12;
unsigned short GAFLDLC : 4;
#else
unsigned short GAFLDLC : 4;
unsigned short GAFLPTR : 12;
#endif
} BIT;
} GAFLPH0;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB2 : 8;
unsigned short RMDB3 : 8;
#else
unsigned short RMDB3 : 8;
unsigned short RMDB2 : 8;
#endif
} BIT;
} RMDF10;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 16;
#else
unsigned short GAFLID : 16;
#endif
} BIT;
} GAFLIDL1;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB4 : 8;
unsigned short RMDB5 : 8;
#else
unsigned short RMDB5 : 8;
unsigned short RMDB4 : 8;
#endif
} BIT;
} RMDF20;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 13;
unsigned short GAFLLB : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLIDE : 1;
#else
unsigned short GAFLIDE : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLLB : 1;
unsigned short GAFLID : 13;
#endif
} BIT;
} GAFLIDH1;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB6 : 8;
unsigned short RMDB7 : 8;
#else
unsigned short RMDB7 : 8;
unsigned short RMDB6 : 8;
#endif
} BIT;
} RMDF30;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 16;
#else
unsigned short GAFLIDM : 16;
#endif
} BIT;
} GAFLML1;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 16;
#else
unsigned short RMID : 16;
#endif
} BIT;
} RMIDL1;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 13;
unsigned short : 1;
unsigned short GAFLRTRM : 1;
unsigned short GAFLIDEM : 1;
#else
unsigned short GAFLIDEM : 1;
unsigned short GAFLRTRM : 1;
unsigned short : 1;
unsigned short GAFLIDM : 13;
#endif
} BIT;
} GAFLMH1;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 13;
unsigned short : 1;
unsigned short RMRTR : 1;
unsigned short RMIDE : 1;
#else
unsigned short RMIDE : 1;
unsigned short RMRTR : 1;
unsigned short : 1;
unsigned short RMID : 13;
#endif
} BIT;
} RMIDH1;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLFDP0 : 1;
unsigned short GAFLFDP1 : 1;
unsigned short : 2;
unsigned short GAFLFDP4 : 1;
unsigned short : 3;
unsigned short GAFLRMDP : 7;
unsigned short GAFLRMV : 1;
#else
unsigned short GAFLRMV : 1;
unsigned short GAFLRMDP : 7;
unsigned short : 3;
unsigned short GAFLFDP4 : 1;
unsigned short : 2;
unsigned short GAFLFDP1 : 1;
unsigned short GAFLFDP0 : 1;
#endif
} BIT;
} GAFLPL1;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMTS : 16;
#else
unsigned short RMTS : 16;
#endif
} BIT;
} RMTS1;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLPTR : 12;
unsigned short GAFLDLC : 4;
#else
unsigned short GAFLDLC : 4;
unsigned short GAFLPTR : 12;
#endif
} BIT;
} GAFLPH1;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMPTR : 12;
unsigned short RMDLC : 4;
#else
unsigned short RMDLC : 4;
unsigned short RMPTR : 12;
#endif
} BIT;
} RMPTR1;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 16;
#else
unsigned short GAFLID : 16;
#endif
} BIT;
} GAFLIDL2;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB0 : 8;
unsigned short RMDB1 : 8;
#else
unsigned short RMDB1 : 8;
unsigned short RMDB0 : 8;
#endif
} BIT;
} RMDF01;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 13;
unsigned short GAFLLB : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLIDE : 1;
#else
unsigned short GAFLIDE : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLLB : 1;
unsigned short GAFLID : 13;
#endif
} BIT;
} GAFLIDH2;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB2 : 8;
unsigned short RMDB3 : 8;
#else
unsigned short RMDB3 : 8;
unsigned short RMDB2 : 8;
#endif
} BIT;
} RMDF11;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 16;
#else
unsigned short GAFLIDM : 16;
#endif
} BIT;
} GAFLML2;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB4 : 8;
unsigned short RMDB5 : 8;
#else
unsigned short RMDB5 : 8;
unsigned short RMDB4 : 8;
#endif
} BIT;
} RMDF21;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 13;
unsigned short : 1;
unsigned short GAFLRTRM : 1;
unsigned short GAFLIDEM : 1;
#else
unsigned short GAFLIDEM : 1;
unsigned short GAFLRTRM : 1;
unsigned short : 1;
unsigned short GAFLIDM : 13;
#endif
} BIT;
} GAFLMH2;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB6 : 8;
unsigned short RMDB7 : 8;
#else
unsigned short RMDB7 : 8;
unsigned short RMDB6 : 8;
#endif
} BIT;
} RMDF31;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLFDP0 : 1;
unsigned short GAFLFDP1 : 1;
unsigned short : 2;
unsigned short GAFLFDP4 : 1;
unsigned short : 3;
unsigned short GAFLRMDP : 7;
unsigned short GAFLRMV : 1;
#else
unsigned short GAFLRMV : 1;
unsigned short GAFLRMDP : 7;
unsigned short : 3;
unsigned short GAFLFDP4 : 1;
unsigned short : 2;
unsigned short GAFLFDP1 : 1;
unsigned short GAFLFDP0 : 1;
#endif
} BIT;
} GAFLPL2;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 16;
#else
unsigned short RMID : 16;
#endif
} BIT;
} RMIDL2;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLPTR : 12;
unsigned short GAFLDLC : 4;
#else
unsigned short GAFLDLC : 4;
unsigned short GAFLPTR : 12;
#endif
} BIT;
} GAFLPH2;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 13;
unsigned short : 1;
unsigned short RMRTR : 1;
unsigned short RMIDE : 1;
#else
unsigned short RMIDE : 1;
unsigned short RMRTR : 1;
unsigned short : 1;
unsigned short RMID : 13;
#endif
} BIT;
} RMIDH2;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 16;
#else
unsigned short GAFLID : 16;
#endif
} BIT;
} GAFLIDL3;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMTS : 16;
#else
unsigned short RMTS : 16;
#endif
} BIT;
} RMTS2;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 13;
unsigned short GAFLLB : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLIDE : 1;
#else
unsigned short GAFLIDE : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLLB : 1;
unsigned short GAFLID : 13;
#endif
} BIT;
} GAFLIDH3;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMPTR : 12;
unsigned short RMDLC : 4;
#else
unsigned short RMDLC : 4;
unsigned short RMPTR : 12;
#endif
} BIT;
} RMPTR2;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 16;
#else
unsigned short GAFLIDM : 16;
#endif
} BIT;
} GAFLML3;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB0 : 8;
unsigned short RMDB1 : 8;
#else
unsigned short RMDB1 : 8;
unsigned short RMDB0 : 8;
#endif
} BIT;
} RMDF02;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 13;
unsigned short : 1;
unsigned short GAFLRTRM : 1;
unsigned short GAFLIDEM : 1;
#else
unsigned short GAFLIDEM : 1;
unsigned short GAFLRTRM : 1;
unsigned short : 1;
unsigned short GAFLIDM : 13;
#endif
} BIT;
} GAFLMH3;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB2 : 8;
unsigned short RMDB3 : 8;
#else
unsigned short RMDB3 : 8;
unsigned short RMDB2 : 8;
#endif
} BIT;
} RMDF12;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLFDP0 : 1;
unsigned short GAFLFDP1 : 1;
unsigned short : 2;
unsigned short GAFLFDP4 : 1;
unsigned short : 3;
unsigned short GAFLRMDP : 7;
unsigned short GAFLRMV : 1;
#else
unsigned short GAFLRMV : 1;
unsigned short GAFLRMDP : 7;
unsigned short : 3;
unsigned short GAFLFDP4 : 1;
unsigned short : 2;
unsigned short GAFLFDP1 : 1;
unsigned short GAFLFDP0 : 1;
#endif
} BIT;
} GAFLPL3;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB4 : 8;
unsigned short RMDB5 : 8;
#else
unsigned short RMDB5 : 8;
unsigned short RMDB4 : 8;
#endif
} BIT;
} RMDF22;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLPTR : 12;
unsigned short GAFLDLC : 4;
#else
unsigned short GAFLDLC : 4;
unsigned short GAFLPTR : 12;
#endif
} BIT;
} GAFLPH3;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB6 : 8;
unsigned short RMDB7 : 8;
#else
unsigned short RMDB7 : 8;
unsigned short RMDB6 : 8;
#endif
} BIT;
} RMDF32;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 16;
#else
unsigned short GAFLID : 16;
#endif
} BIT;
} GAFLIDL4;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 16;
#else
unsigned short RMID : 16;
#endif
} BIT;
} RMIDL3;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 13;
unsigned short GAFLLB : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLIDE : 1;
#else
unsigned short GAFLIDE : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLLB : 1;
unsigned short GAFLID : 13;
#endif
} BIT;
} GAFLIDH4;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 13;
unsigned short : 1;
unsigned short RMRTR : 1;
unsigned short RMIDE : 1;
#else
unsigned short RMIDE : 1;
unsigned short RMRTR : 1;
unsigned short : 1;
unsigned short RMID : 13;
#endif
} BIT;
} RMIDH3;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 16;
#else
unsigned short GAFLIDM : 16;
#endif
} BIT;
} GAFLML4;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMTS : 16;
#else
unsigned short RMTS : 16;
#endif
} BIT;
} RMTS3;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 13;
unsigned short : 1;
unsigned short GAFLRTRM : 1;
unsigned short GAFLIDEM : 1;
#else
unsigned short GAFLIDEM : 1;
unsigned short GAFLRTRM : 1;
unsigned short : 1;
unsigned short GAFLIDM : 13;
#endif
} BIT;
} GAFLMH4;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMPTR : 12;
unsigned short RMDLC : 4;
#else
unsigned short RMDLC : 4;
unsigned short RMPTR : 12;
#endif
} BIT;
} RMPTR3;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLFDP0 : 1;
unsigned short GAFLFDP1 : 1;
unsigned short : 2;
unsigned short GAFLFDP4 : 1;
unsigned short : 3;
unsigned short GAFLRMDP : 7;
unsigned short GAFLRMV : 1;
#else
unsigned short GAFLRMV : 1;
unsigned short GAFLRMDP : 7;
unsigned short : 3;
unsigned short GAFLFDP4 : 1;
unsigned short : 2;
unsigned short GAFLFDP1 : 1;
unsigned short GAFLFDP0 : 1;
#endif
} BIT;
} GAFLPL4;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB0 : 8;
unsigned short RMDB1 : 8;
#else
unsigned short RMDB1 : 8;
unsigned short RMDB0 : 8;
#endif
} BIT;
} RMDF03;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLPTR : 12;
unsigned short GAFLDLC : 4;
#else
unsigned short GAFLDLC : 4;
unsigned short GAFLPTR : 12;
#endif
} BIT;
} GAFLPH4;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB2 : 8;
unsigned short RMDB3 : 8;
#else
unsigned short RMDB3 : 8;
unsigned short RMDB2 : 8;
#endif
} BIT;
} RMDF13;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 16;
#else
unsigned short GAFLID : 16;
#endif
} BIT;
} GAFLIDL5;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB4 : 8;
unsigned short RMDB5 : 8;
#else
unsigned short RMDB5 : 8;
unsigned short RMDB4 : 8;
#endif
} BIT;
} RMDF23;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 13;
unsigned short GAFLLB : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLIDE : 1;
#else
unsigned short GAFLIDE : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLLB : 1;
unsigned short GAFLID : 13;
#endif
} BIT;
} GAFLIDH5;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB6 : 8;
unsigned short RMDB7 : 8;
#else
unsigned short RMDB7 : 8;
unsigned short RMDB6 : 8;
#endif
} BIT;
} RMDF33;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 16;
#else
unsigned short GAFLIDM : 16;
#endif
} BIT;
} GAFLML5;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 16;
#else
unsigned short RMID : 16;
#endif
} BIT;
} RMIDL4;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 13;
unsigned short : 1;
unsigned short GAFLRTRM : 1;
unsigned short GAFLIDEM : 1;
#else
unsigned short GAFLIDEM : 1;
unsigned short GAFLRTRM : 1;
unsigned short : 1;
unsigned short GAFLIDM : 13;
#endif
} BIT;
} GAFLMH5;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 13;
unsigned short : 1;
unsigned short RMRTR : 1;
unsigned short RMIDE : 1;
#else
unsigned short RMIDE : 1;
unsigned short RMRTR : 1;
unsigned short : 1;
unsigned short RMID : 13;
#endif
} BIT;
} RMIDH4;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLFDP0 : 1;
unsigned short GAFLFDP1 : 1;
unsigned short : 2;
unsigned short GAFLFDP4 : 1;
unsigned short : 3;
unsigned short GAFLRMDP : 7;
unsigned short GAFLRMV : 1;
#else
unsigned short GAFLRMV : 1;
unsigned short GAFLRMDP : 7;
unsigned short : 3;
unsigned short GAFLFDP4 : 1;
unsigned short : 2;
unsigned short GAFLFDP1 : 1;
unsigned short GAFLFDP0 : 1;
#endif
} BIT;
} GAFLPL5;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMTS : 16;
#else
unsigned short RMTS : 16;
#endif
} BIT;
} RMTS4;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLPTR : 12;
unsigned short GAFLDLC : 4;
#else
unsigned short GAFLDLC : 4;
unsigned short GAFLPTR : 12;
#endif
} BIT;
} GAFLPH5;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMPTR : 12;
unsigned short RMDLC : 4;
#else
unsigned short RMDLC : 4;
unsigned short RMPTR : 12;
#endif
} BIT;
} RMPTR4;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 16;
#else
unsigned short GAFLID : 16;
#endif
} BIT;
} GAFLIDL6;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB0 : 8;
unsigned short RMDB1 : 8;
#else
unsigned short RMDB1 : 8;
unsigned short RMDB0 : 8;
#endif
} BIT;
} RMDF04;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 13;
unsigned short GAFLLB : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLIDE : 1;
#else
unsigned short GAFLIDE : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLLB : 1;
unsigned short GAFLID : 13;
#endif
} BIT;
} GAFLIDH6;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB2 : 8;
unsigned short RMDB3 : 8;
#else
unsigned short RMDB3 : 8;
unsigned short RMDB2 : 8;
#endif
} BIT;
} RMDF14;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 16;
#else
unsigned short GAFLIDM : 16;
#endif
} BIT;
} GAFLML6;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB4 : 8;
unsigned short RMDB5 : 8;
#else
unsigned short RMDB5 : 8;
unsigned short RMDB4 : 8;
#endif
} BIT;
} RMDF24;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 13;
unsigned short : 1;
unsigned short GAFLRTRM : 1;
unsigned short GAFLIDEM : 1;
#else
unsigned short GAFLIDEM : 1;
unsigned short GAFLRTRM : 1;
unsigned short : 1;
unsigned short GAFLIDM : 13;
#endif
} BIT;
} GAFLMH6;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB6 : 8;
unsigned short RMDB7 : 8;
#else
unsigned short RMDB7 : 8;
unsigned short RMDB6 : 8;
#endif
} BIT;
} RMDF34;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLFDP0 : 1;
unsigned short GAFLFDP1 : 1;
unsigned short : 2;
unsigned short GAFLFDP4 : 1;
unsigned short : 3;
unsigned short GAFLRMDP : 7;
unsigned short GAFLRMV : 1;
#else
unsigned short GAFLRMV : 1;
unsigned short GAFLRMDP : 7;
unsigned short : 3;
unsigned short GAFLFDP4 : 1;
unsigned short : 2;
unsigned short GAFLFDP1 : 1;
unsigned short GAFLFDP0 : 1;
#endif
} BIT;
} GAFLPL6;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 16;
#else
unsigned short RMID : 16;
#endif
} BIT;
} RMIDL5;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLPTR : 12;
unsigned short GAFLDLC : 4;
#else
unsigned short GAFLDLC : 4;
unsigned short GAFLPTR : 12;
#endif
} BIT;
} GAFLPH6;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 13;
unsigned short : 1;
unsigned short RMRTR : 1;
unsigned short RMIDE : 1;
#else
unsigned short RMIDE : 1;
unsigned short RMRTR : 1;
unsigned short : 1;
unsigned short RMID : 13;
#endif
} BIT;
} RMIDH5;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 16;
#else
unsigned short GAFLID : 16;
#endif
} BIT;
} GAFLIDL7;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMTS : 16;
#else
unsigned short RMTS : 16;
#endif
} BIT;
} RMTS5;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 13;
unsigned short GAFLLB : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLIDE : 1;
#else
unsigned short GAFLIDE : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLLB : 1;
unsigned short GAFLID : 13;
#endif
} BIT;
} GAFLIDH7;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMPTR : 12;
unsigned short RMDLC : 4;
#else
unsigned short RMDLC : 4;
unsigned short RMPTR : 12;
#endif
} BIT;
} RMPTR5;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 16;
#else
unsigned short GAFLIDM : 16;
#endif
} BIT;
} GAFLML7;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB0 : 8;
unsigned short RMDB1 : 8;
#else
unsigned short RMDB1 : 8;
unsigned short RMDB0 : 8;
#endif
} BIT;
} RMDF05;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 13;
unsigned short : 1;
unsigned short GAFLRTRM : 1;
unsigned short GAFLIDEM : 1;
#else
unsigned short GAFLIDEM : 1;
unsigned short GAFLRTRM : 1;
unsigned short : 1;
unsigned short GAFLIDM : 13;
#endif
} BIT;
} GAFLMH7;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB2 : 8;
unsigned short RMDB3 : 8;
#else
unsigned short RMDB3 : 8;
unsigned short RMDB2 : 8;
#endif
} BIT;
} RMDF15;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLFDP0 : 1;
unsigned short GAFLFDP1 : 1;
unsigned short : 2;
unsigned short GAFLFDP4 : 1;
unsigned short : 3;
unsigned short GAFLRMDP : 7;
unsigned short GAFLRMV : 1;
#else
unsigned short GAFLRMV : 1;
unsigned short GAFLRMDP : 7;
unsigned short : 3;
unsigned short GAFLFDP4 : 1;
unsigned short : 2;
unsigned short GAFLFDP1 : 1;
unsigned short GAFLFDP0 : 1;
#endif
} BIT;
} GAFLPL7;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB4 : 8;
unsigned short RMDB5 : 8;
#else
unsigned short RMDB5 : 8;
unsigned short RMDB4 : 8;
#endif
} BIT;
} RMDF25;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLPTR : 12;
unsigned short GAFLDLC : 4;
#else
unsigned short GAFLDLC : 4;
unsigned short GAFLPTR : 12;
#endif
} BIT;
} GAFLPH7;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMDB6 : 8;
unsigned short RMDB7 : 8;
#else
unsigned short RMDB7 : 8;
unsigned short RMDB6 : 8;
#endif
} BIT;
} RMDF35;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 16;
#else
unsigned short GAFLID : 16;
#endif
} BIT;
} GAFLIDL8;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 16;
#else
unsigned short RMID : 16;
#endif
} BIT;
} RMIDL6;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLID : 13;
unsigned short GAFLLB : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLIDE : 1;
#else
unsigned short GAFLIDE : 1;
unsigned short GAFLRTR : 1;
unsigned short GAFLLB : 1;
unsigned short GAFLID : 13;
#endif
} BIT;
} GAFLIDH8;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMID : 13;
unsigned short : 1;
unsigned short RMRTR : 1;
unsigned short RMIDE : 1;
#else
unsigned short RMIDE : 1;
unsigned short RMRTR : 1;
unsigned short : 1;
unsigned short RMID : 13;
#endif
} BIT;
} RMIDH6;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 16;
#else
unsigned short GAFLIDM : 16;
#endif
} BIT;
} GAFLML8;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMTS : 16;
#else
unsigned short RMTS : 16;
#endif
} BIT;
} RMTS6;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLIDM : 13;
unsigned short : 1;
unsigned short GAFLRTRM : 1;
unsigned short GAFLIDEM : 1;
#else
unsigned short GAFLIDEM : 1;
unsigned short GAFLRTRM : 1;
unsigned short : 1;
unsigned short GAFLIDM : 13;
#endif
} BIT;
} GAFLMH8;
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short RMPTR : 12;
unsigned short RMDLC : 4;
#else
unsigned short RMDLC : 4;
unsigned short RMPTR : 12;
#endif
} BIT;
} RMPTR6;
};
union {
union {
unsigned short WORD;
struct {
#ifdef __RX_LITTLE_ENDIAN__
unsigned short GAFLFDP0 : 1;
unsigned short GAFLFDP1 : 1<