blob: d1f3cfc4d137e102efaec70a7acd01f83de12b30 [file] [log] [blame]
<
/************************************************************************
*
* Device : RX/RX600/RX63N
*
* File Name : ioedfine.h
*
* Abstract : Definition of I/O Register.
*
* History : 0.50 (2011-03-28) [Hardware Manual Revision : 0.50]
* : 0.02 (2010-11-01) [Hardware Manual Revision : 0.01]
*
* NOTE : THIS IS A TYPICAL EXAMPLE.
*
* Copyright (C) 2010(2011) Renesas Electronics Corporation
* and Renesas Solutions Corp.
*
************************************************************************/
/********************************************************************************/
/* */
/* DESCRIPTION : Definition of ICU Register */
/* CPU TYPE : RX63N */
/* */
/* 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(TPU0,TGI0A) = 0; expands to : */
/* ICU.IR[126].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(TPU0,TGI0A) = 2; expands to : */
/* IPR(TPU0,TGI ) = 2; // TGI0A,TGI0B,TGI0C,TGI0D share IPR level. */
/* ICU.IPR[126].BIT.IPR = 2; */
/* */
/* IPR(SCI0,RXI0) = 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=142) */
/* #pragma interrupt INT_TPU0_TGI0A(vect=VECT(TPU0,TGI0A)) expands to : */
/* #pragma interrupt INT_TPU0_TGI0A(vect=126) */
/* */
/* 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; // 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 __RX63NIODEFINE_HEADER__
#define __RX63NIODEFINE_HEADER__
#pragma bit_order left
#pragma unpack
struct st_ad {
unsigned short ADDRA;
unsigned short ADDRB;
unsigned short ADDRC;
unsigned short ADDRD;
unsigned short ADDRE;
unsigned short ADDRF;
unsigned short ADDRG;
unsigned short ADDRH;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ADIE:1;
unsigned char ADST:1;
unsigned char :2;
unsigned char CH:3;
} BIT;
} ADCSR;
union {
unsigned char BYTE;
struct {
unsigned char TRGS:3;
unsigned char :1;
unsigned char CKS:2;
unsigned char MODE:2;
} BIT;
} ADCR;
union {
unsigned char BYTE;
struct {
unsigned char DPSEL:1;
unsigned char EXOEN:1;
unsigned char EXSEL:2;
} BIT;
} ADCR2;
unsigned char ADSSTR;
char wk0[11];
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char DIAG:2;
} BIT;
} ADDIAGR;
};
struct st_bsc {
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char STSCLR:1;
} BIT;
} BERCLR;
char wk0[3];
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char TOEN:1;
unsigned char IGAEN:1;
} BIT;
} BEREN;
char wk1[3];
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char MST:3;
unsigned char :2;
unsigned char TO:1;
unsigned char IA:1;
} BIT;
} BERSR1;
char wk2[1];
union {
unsigned short WORD;
struct {
unsigned short ADDR:13;
} BIT;
} BERSR2;
char wk3[4];
union {
unsigned short WORD;
struct {
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;
} BIT;
} BUSPRI;
char wk4[7408];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS0MOD;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS0WCR1;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS0WCR2;
char wk5[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS1MOD;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS1WCR1;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS1WCR2;
char wk6[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS2MOD;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS2WCR1;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS2WCR2;
char wk7[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS3MOD;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS3WCR1;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS3WCR2;
char wk8[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS4MOD;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS4WCR1;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS4WCR2;
char wk9[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS5MOD;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS5WCR1;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS5WCR2;
char wk10[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS6MOD;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS6WCR1;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS6WCR2;
char wk11[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS7MOD;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS7WCR1;
union {
unsigned long LONG;
struct {
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;
} BIT;
} CS7WCR2;
char wk12[1926];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS0CR;
char wk13[6];
union {
unsigned short WORD;
struct {
unsigned short :4;
unsigned short WRCV:4;
unsigned short :4;
unsigned short RRCV:4;
} BIT;
} CS0REC;
char wk14[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS1CR;
char wk15[6];
union {
unsigned short WORD;
struct {
unsigned short :4;
unsigned short WRCV:4;
unsigned short :4;
unsigned short RRCV:4;
} BIT;
} CS1REC;
char wk16[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS2CR;
char wk17[6];
union {
unsigned short WORD;
struct {
unsigned short :4;
unsigned short WRCV:4;
unsigned short :4;
unsigned short RRCV:4;
} BIT;
} CS2REC;
char wk18[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS3CR;
char wk19[6];
union {
unsigned short WORD;
struct {
unsigned short :4;
unsigned short WRCV:4;
unsigned short :4;
unsigned short RRCV:4;
} BIT;
} CS3REC;
char wk20[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS4CR;
char wk21[6];
union {
unsigned short WORD;
struct {
unsigned short :4;
unsigned short WRCV:4;
unsigned short :4;
unsigned short RRCV:4;
} BIT;
} CS4REC;
char wk22[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS5CR;
char wk23[6];
union {
unsigned short WORD;
struct {
unsigned short :4;
unsigned short WRCV:4;
unsigned short :4;
unsigned short RRCV:4;
} BIT;
} CS5REC;
char wk24[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS6CR;
char wk25[6];
union {
unsigned short WORD;
struct {
unsigned short :4;
unsigned short WRCV:4;
unsigned short :4;
unsigned short RRCV:4;
} BIT;
} CS6REC;
char wk26[6];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CS7CR;
char wk27[6];
union {
unsigned short WORD;
struct {
unsigned short :4;
unsigned short WRCV:4;
unsigned short :4;
unsigned short RRCV:4;
} BIT;
} CS7REC;
char wk28[4];
union {
unsigned short WORD;
struct {
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;
} BIT;
} CSRECEN;
char wk29[894];
union {
unsigned char BYTE;
struct {
unsigned char :2;
unsigned char BSIZE:2;
unsigned char :3;
unsigned char EXENB:1;
} BIT;
} SDCCR;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char EMODE:1;
} BIT;
} SDCMOD;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char BE:1;
} BIT;
} SDAMOD;
char wk30[13];
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char SFEN:1;
} BIT;
} SDSELF;
char wk31[3];
union {
unsigned short WORD;
struct {
unsigned short REFW:4;
unsigned short RFC:12;
} BIT;
} SDRFCR;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char RFEN:1;
} BIT;
} SDRFEN;
char wk32[9];
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char INIRQ:1;
} BIT;
} SDICR;
char wk33[3];
union {
unsigned short WORD;
struct {
unsigned short :5;
unsigned short PRC:3;
unsigned short ARFC:4;
unsigned short ARFI:4;
} BIT;
} SDIR;
char wk34[26];
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char MXC:2;
} BIT;
} SDADR;
char wk35[3];
union {
unsigned long LONG;
struct {
unsigned long :13;
unsigned long RAS:3;
unsigned long :2;
unsigned long RCD:2;
unsigned long RP:3;
unsigned long WR:1;
unsigned long :5;
unsigned long CL:3;
} BIT;
} SDTR;
union {
unsigned short WORD;
struct {
unsigned short :1;
unsigned short MR:15;
} BIT;
} SDMOD;
char wk36[6];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char SRFST:1;
unsigned char INIST:1;
unsigned char :2;
unsigned char MRSST:1;
} BIT;
} SDSR;
};
struct st_can {
struct {
union {
unsigned long LONG;
struct {
unsigned short H;
unsigned short L;
} WORD;
struct {
unsigned char HH;
unsigned char HL;
unsigned char LH;
unsigned char LL;
} BYTE;
struct {
unsigned long IDE:1;
unsigned long RTR:1;
unsigned long :1;
unsigned long SID:11;
unsigned long EID:18;
} BIT;
} ID;
unsigned short DLC;
unsigned char DATA[8];
unsigned short TS;
} MB[32];
union {
unsigned long LONG;
struct {
unsigned short H;
unsigned short L;
} WORD;
struct {
unsigned char HH;
unsigned char HL;
unsigned char LH;
unsigned char LL;
} BYTE;
struct {
unsigned long :3;
unsigned long SID:11;
unsigned long EID:18;
} BIT;
} MKR[8];
union {
unsigned long LONG;
struct {
unsigned short H;
unsigned short L;
} WORD;
struct {
unsigned char HH;
unsigned char HL;
unsigned char LH;
unsigned char LL;
} BYTE;
struct {
unsigned long IDE:1;
unsigned long RTR:1;
unsigned long :1;
unsigned long SID:11;
unsigned long EID:18;
} BIT;
} FIDCR0;
union {
unsigned long LONG;
struct {
unsigned short H;
unsigned short L;
} WORD;
struct {
unsigned char HH;
unsigned char HL;
unsigned char LH;
unsigned char LL;
} BYTE;
struct {
unsigned long IDE:1;
unsigned long RTR:1;
unsigned long :1;
unsigned long SID:11;
unsigned long EID:18;
} BIT;
} FIDCR1;
union {
unsigned long LONG;
struct {
unsigned short H;
unsigned short L;
} WORD;
struct {
unsigned char HH;
unsigned char HL;
unsigned char LH;
unsigned char LL;
} BYTE;
struct {
unsigned char MB31:1;
unsigned char MB30:1;
unsigned char MB29:1;
unsigned char MB28:1;
unsigned char MB27:1;
unsigned char MB26:1;
unsigned char MB25:1;
unsigned char MB24:1;
unsigned char MB23:1;
unsigned char MB22:1;
unsigned char MB21:1;
unsigned char MB20:1;
unsigned char MB19:1;
unsigned char MB18:1;
unsigned char MB17:1;
unsigned char MB16:1;
unsigned char MB15:1;
unsigned char MB14:1;
unsigned char MB13:1;
unsigned char MB12:1;
unsigned char MB11:1;
unsigned char MB10:1;
unsigned char MB9:1;
unsigned char MB8:1;
unsigned char MB7:1;
unsigned char MB6:1;
unsigned char MB5:1;
unsigned char MB4:1;
unsigned char MB3:1;
unsigned char MB2:1;
unsigned char MB1:1;
unsigned char MB0:1;
} BIT;
} MKIVLR;
union {
unsigned long LONG;
struct {
unsigned short H;
unsigned short L;
} WORD;
struct {
unsigned char HH;
unsigned char HL;
unsigned char LH;
unsigned char LL;
} BYTE;
struct {
unsigned char MB31:1;
unsigned char MB30:1;
unsigned char MB29:1;
unsigned char MB28:1;
unsigned char MB27:1;
unsigned char MB26:1;
unsigned char MB25:1;
unsigned char MB24:1;
unsigned char MB23:1;
unsigned char MB22:1;
unsigned char MB21:1;
unsigned char MB20:1;
unsigned char MB19:1;
unsigned char MB18:1;
unsigned char MB17:1;
unsigned char MB16:1;
unsigned char MB15:1;
unsigned char MB14:1;
unsigned char MB13:1;
unsigned char MB12:1;
unsigned char MB11:1;
unsigned char MB10:1;
unsigned char MB9:1;
unsigned char MB8:1;
unsigned char MB7:1;
unsigned char MB6:1;
unsigned char MB5:1;
unsigned char MB4:1;
unsigned char MB3:1;
unsigned char MB2:1;
unsigned char MB1:1;
unsigned char MB0:1;
} BIT;
} MIER;
char wk0[1008];
union {
unsigned char BYTE;
union {
struct {
unsigned char TRMREQ:1;
unsigned char RECREQ:1;
unsigned char :1;
unsigned char ONESHOT:1;
unsigned char :1;
unsigned char TRMABT:1;
unsigned char TRMACTIVE:1;
unsigned char SENTDATA:1;
} TX;
struct {
unsigned char TRMREQ:1;
unsigned char RECREQ:1;
unsigned char :1;
unsigned char ONESHOT:1;
unsigned char :1;
unsigned char MSGLOST:1;
unsigned char INVALDATA:1;
unsigned char NEWDATA:1;
} RX;
} BIT;
} MCTL[32];
union {
unsigned short WORD;
struct {
unsigned char H;
unsigned char L;
} BYTE;
struct {
unsigned char :2;
unsigned char RBOC:1;
unsigned char BOM:2;
unsigned char SLPM:1;
unsigned char CANM:2;
unsigned char TSPS:2;
unsigned char TSRC:1;
unsigned char TPM:1;
unsigned char MLM:1;
unsigned char IDFM:2;
unsigned char MBM:1;
} BIT;
} CTLR;
union {
unsigned short WORD;
struct {
unsigned char H;
unsigned char L;
} BYTE;
struct {
unsigned char :1;
unsigned char RECST:1;
unsigned char TRMST:1;
unsigned char BOST:1;
unsigned char EPST:1;
unsigned char SLPST:1;
unsigned char HLTST:1;
unsigned char RSTST:1;
unsigned char EST:1;
unsigned char TABST:1;
unsigned char FMLST:1;
unsigned char NMLST:1;
unsigned char TFST:1;
unsigned char RFST:1;
unsigned char SDST:1;
unsigned char NDST:1;
} BIT;
} STR;
union {
unsigned long LONG;
struct {
unsigned short H;
unsigned short L;
} WORD;
struct {
unsigned char HH;
unsigned char HL;
unsigned char LH;
unsigned char LL;
} BYTE;
struct {
unsigned long TSEG1:4;
unsigned long :2;
unsigned long BRP:10;
unsigned long :2;
unsigned long SJW:2;
unsigned long :1;
unsigned long TSEG2:3;
unsigned long :7;
unsigned long CCLKS:1;
} BIT;
} BCR;
union {
unsigned char BYTE;
struct {
unsigned char RFEST:1;
unsigned char RFWST:1;
unsigned char RFFST:1;
unsigned char RFMLF:1;
unsigned char RFUST:3;
unsigned char RFE:1;
} BIT;
} RFCR;
unsigned char RFPCR;
union {
unsigned char BYTE;
struct {
unsigned char TFEST:1;
unsigned char TFFST:1;
unsigned char :2;
unsigned char TFUST:3;
unsigned char TFE:1;
} BIT;
} TFCR;
unsigned char TFPCR;
union {
unsigned char BYTE;
struct {
unsigned char BLIE:1;
unsigned char OLIE:1;
unsigned char ORIE:1;
unsigned char BORIE:1;
unsigned char BOEIE:1;
unsigned char EPIE:1;
unsigned char EWIE:1;
unsigned char BEIE:1;
} BIT;
} EIER;
union {
unsigned char BYTE;
struct {
unsigned char BLIF:1;
unsigned char OLIF:1;
unsigned char ORIF:1;
unsigned char BORIF:1;
unsigned char BOEIF:1;
unsigned char EPIF:1;
unsigned char EWIF:1;
unsigned char BEIF:1;
} BIT;
} EIFR;
unsigned char RECR;
unsigned char TECR;
union {
unsigned char BYTE;
struct {
unsigned char EDPM:1;
unsigned char ADEF:1;
unsigned char BE0F:1;
unsigned char BE1F:1;
unsigned char CEF:1;
unsigned char AEF:1;
unsigned char FEF:1;
unsigned char SEF:1;
} BIT;
} ECSR;
unsigned char CSSR;
union {
unsigned char BYTE;
struct {
unsigned char SEST:1;
unsigned char :2;
unsigned char MBNST:5;
} BIT;
} MSSR;
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char MBSM:2;
} BIT;
} MSMR;
unsigned short TSR;
unsigned short AFSR;
union {
unsigned char BYTE;
struct {
unsigned char :5;
unsigned char TSTM:2;
unsigned char TSTE:1;
} BIT;
} TCR;
};
struct st_cmt {
union {
unsigned short WORD;
struct {
unsigned short :14;
unsigned short STR1:1;
unsigned short STR0:1;
} BIT;
} CMSTR0;
char wk0[14];
union {
unsigned short WORD;
struct {
unsigned short :14;
unsigned short STR3:1;
unsigned short STR2:1;
} BIT;
} CMSTR1;
};
struct st_cmt0 {
union {
unsigned short WORD;
struct {
unsigned short :9;
unsigned short CMIE:1;
unsigned short :4;
unsigned short CKS:2;
} BIT;
} CMCR;
unsigned short CMCNT;
unsigned short CMCOR;
};
struct st_crc {
union {
unsigned char BYTE;
struct {
unsigned char DORCLR:1;
unsigned char :4;
unsigned char LMS:1;
unsigned char GPS:2;
} BIT;
} CRCCR;
unsigned char CRCDIR;
unsigned short CRCDOR;
};
struct st_da {
unsigned short DADR0;
unsigned short DADR1;
union {
unsigned char BYTE;
struct {
unsigned char DAOE1:1;
unsigned char DAOE0:1;
unsigned char DAE:1;
} BIT;
} DACR;
union {
unsigned char BYTE;
struct {
unsigned char DPSEL:1;
} BIT;
} DADPR;
union {
unsigned char BYTE;
struct {
unsigned char DAADST:1;
} BIT;
} DAADSCR;
};
struct st_dmac {
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DMST:1;
} BIT;
} DMAST;
};
struct st_dmac0 {
unsigned long DMSAR;
unsigned long DMDAR;
unsigned long DMCRA;
unsigned short DMCRB;
char wk0[2];
union {
unsigned short WORD;
struct {
unsigned short MD:2;
unsigned short DTS:2;
unsigned short :2;
unsigned short SZ:2;
unsigned short :6;
unsigned short DCTG:2;
} BIT;
} DMTMD;
char wk1[1];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char DTIE:1;
unsigned char ESIE:1;
unsigned char RPTIE:1;
unsigned char SARIE:1;
unsigned char DARIE:1;
} BIT;
} DMINT;
union {
unsigned short WORD;
struct {
unsigned short SM:2;
unsigned short :1;
unsigned short SARA:5;
unsigned short DM:2;
unsigned short :1;
unsigned short DARA:5;
} BIT;
} DMAMD;
char wk2[2];
unsigned long DMOFR;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DTE:1;
} BIT;
} DMCNT;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char CLRS:1;
unsigned char :3;
unsigned char SWREQ:1;
} BIT;
} DMREQ;
union {
unsigned char BYTE;
struct {
unsigned char ACT:1;
unsigned char :2;
unsigned char DTIF:1;
unsigned char :3;
unsigned char ESIF:1;
} BIT;
} DMSTS;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DISEL:1;
} BIT;
} DMCSL;
};
struct st_dmac1 {
unsigned long DMSAR;
unsigned long DMDAR;
unsigned long DMCRA;
unsigned short DMCRB;
char wk0[2];
union {
unsigned short WORD;
struct {
unsigned short MD:2;
unsigned short DTS:2;
unsigned short :2;
unsigned short SZ:2;
unsigned short :6;
unsigned short DCTG:2;
} BIT;
} DMTMD;
char wk1[1];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char DTIE:1;
unsigned char ESIE:1;
unsigned char RPTIE:1;
unsigned char SARIE:1;
unsigned char DARIE:1;
} BIT;
} DMINT;
union {
unsigned short WORD;
struct {
unsigned short SM:2;
unsigned short :1;
unsigned short SARA:5;
unsigned short DM:2;
unsigned short :1;
unsigned short DARA:5;
} BIT;
} DMAMD;
char wk2[6];
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DTE:1;
} BIT;
} DMCNT;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char CLRS:1;
unsigned char :3;
unsigned char SWREQ:1;
} BIT;
} DMREQ;
union {
unsigned char BYTE;
struct {
unsigned char ACT:1;
unsigned char :2;
unsigned char DTIF:1;
unsigned char :3;
unsigned char ESIF:1;
} BIT;
} DMSTS;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DISEL:1;
} BIT;
} DMCSL;
};
struct st_dtc {
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char RRS:1;
} BIT;
} DTCCR;
char wk0[3];
unsigned long DTCVBR;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char SHORT:1;
} BIT;
} DTCADMOD;
char wk1[3];
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DTCST:1;
} BIT;
} DTCST;
char wk2[1];
union {
unsigned short WORD;
struct {
unsigned short ACT:1;
unsigned short :7;
unsigned short VECN:8;
} BIT;
} DTCSTS;
};
struct st_edmac {
union {
unsigned long LONG;
struct {
unsigned long :25;
unsigned long DE:1;
unsigned long DL:2;
unsigned long :3;
unsigned long SWR:1;
} BIT;
} EDMR;
char wk0[4];
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long TR:1;
} BIT;
} EDTRR;
char wk1[4];
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long RR:1;
} BIT;
} EDRRR;
char wk2[4];
unsigned long TDLAR;
char wk3[4];
unsigned long RDLAR;
char wk4[4];
union {
unsigned long LONG;
struct {
unsigned long :1;
unsigned long TWB:1;
unsigned long :3;
unsigned long TABT:1;
unsigned long RABT:1;
unsigned long RFCOF:1;
unsigned long ADE:1;
unsigned long ECI:1;
unsigned long TC:1;
unsigned long TDE:1;
unsigned long TFUF:1;
unsigned long FR:1;
unsigned long RDE:1;
unsigned long RFOF:1;
unsigned long :4;
unsigned long CND:1;
unsigned long DLC:1;
unsigned long CD:1;
unsigned long TRO:1;
unsigned long RMAF:1;
unsigned long :2;
unsigned long RRF:1;
unsigned long RTLF:1;
unsigned long RTSF:1;
unsigned long PRE:1;
unsigned long CERF:1;
} BIT;
} EESR;
char wk5[4];
union {
unsigned long LONG;
struct {
unsigned long :1;
unsigned long TWBIP:1;
unsigned long :3;
unsigned long TABTIP:1;
unsigned long RABTIP:1;
unsigned long RFCOFIP:1;
unsigned long ADEIP:1;
unsigned long ECIIP:1;
unsigned long TCIP:1;
unsigned long TDEIP:1;
unsigned long TFUFIP:1;
unsigned long FRIP:1;
unsigned long RDEIP:1;
unsigned long RFOFIP:1;
unsigned long :4;
unsigned long CNDIP:1;
unsigned long DLCIP:1;
unsigned long CDIP:1;
unsigned long TROIP:1;
unsigned long RMAFIP:1;
unsigned long :2;
unsigned long RRFIP:1;
unsigned long RTLFIP:1;
unsigned long RTSFIP:1;
unsigned long PREIP:1;
unsigned long CERFIP:1;
} BIT;
} EESIPR;
char wk6[4];
union {
unsigned long LONG;
struct {
unsigned long :20;
unsigned long CNDCE:1;
unsigned long DLCCE:1;
unsigned long CDCE:1;
unsigned long TROCE:1;
unsigned long RMAFCE:1;
unsigned long :2;
unsigned long RRFCE:1;
unsigned long RTLFCE:1;
unsigned long RTSFCE:1;
unsigned long PRECE:1;
unsigned long CERFCE:1;
} BIT;
} TRSCER;
char wk7[4];
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long MFC:16;
} BIT;
} RMFCR;
char wk8[4];
union {
unsigned long LONG;
struct {
unsigned long :21;
unsigned long TFT:11;
} BIT;
} TFTR;
char wk9[4];
union {
unsigned long LONG;
struct {
unsigned long :19;
unsigned long TFD:5;
unsigned long :3;
unsigned long RFD:5;
} BIT;
} FDR;
char wk10[4];
union {
unsigned long LONG;
struct {
unsigned long :30;
unsigned long RNC:1;
unsigned long RNR:1;
} BIT;
} RMCR;
char wk11[8];
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long UNDER:16;
} BIT;
} TFUCR;
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long OVER:16;
} BIT;
} RFOCR;
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long ELB:1;
} BIT;
} IOSR;
union {
unsigned long LONG;
struct {
unsigned long :13;
unsigned long RFFO:3;
unsigned long :13;
unsigned long RFDO:3;
} BIT;
} FCFTR;
char wk12[4];
union {
unsigned long LONG;
struct {
unsigned long :14;
unsigned long PADS:2;
unsigned long :10;
unsigned long PADR:6;
} BIT;
} RPADIR;
union {
unsigned long LONG;
struct {
unsigned long :27;
unsigned long TIM:1;
unsigned long :3;
unsigned long TIS:1;
} BIT;
} TRIMD;
char wk13[72];
unsigned long RBWAR;
unsigned long RDFAR;
char wk14[4];
unsigned long TBRAR;
unsigned long TDFAR;
};
struct st_etherc {
union {
unsigned long LONG;
struct {
unsigned long :11;
unsigned long TPC:1;
unsigned long ZPE:1;
unsigned long PFR:1;
unsigned long RXF:1;
unsigned long TXF:1;
unsigned long :3;
unsigned long PRCEF:1;
unsigned long :2;
unsigned long MPDE:1;
unsigned long :2;
unsigned long RE:1;
unsigned long TE:1;
unsigned long :1;
unsigned long ILB:1;
unsigned long RTM:1;
unsigned long DM:1;
unsigned long PRM:1;
} BIT;
} ECMR;
char wk0[4];
union {
unsigned long LONG;
struct {
unsigned long :20;
unsigned long RFL:12;
} BIT;
} RFLR;
char wk1[4];
union {
unsigned long LONG;
struct {
unsigned long :26;
unsigned long BFR:1;
unsigned long PSRTO:1;
unsigned long :1;
unsigned long LCHNG:1;
unsigned long MPD:1;
unsigned long ICD:1;
} BIT;
} ECSR;
char wk2[4];
union {
unsigned long LONG;
struct {
unsigned long :26;
unsigned long BFSIPR:1;
unsigned long PSRTOIP:1;
unsigned long :1;
unsigned long LCHNGIP:1;
unsigned long MPDIP:1;
unsigned long ICDIP:1;
} BIT;
} ECSIPR;
char wk3[4];
union {
unsigned long LONG;
struct {
unsigned long :28;
unsigned long MDI:1;
unsigned long MDO:1;
unsigned long MMD:1;
unsigned long MDC:1;
} BIT;
} PIR;
char wk4[4];
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long LMON:1;
} BIT;
} PSR;
char wk5[20];
union {
unsigned long LONG;
struct {
unsigned long :12;
unsigned long RMD:20;
} BIT;
} RDMLR;
char wk6[12];
union {
unsigned long LONG;
struct {
unsigned long :27;
unsigned long IPG:5;
} BIT;
} IPGR;
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long AP:16;
} BIT;
} APR;
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long MP:16;
} BIT;
} MPR;
char wk7[4];
union {
unsigned long LONG;
struct {
unsigned long :24;
unsigned long RPAUSE:8;
} BIT;
} RFCF;
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long TPAUSE:16;
} BIT;
} TPAUSER;
union {
unsigned long LONG;
struct {
unsigned long :24;
unsigned long TXP:8;
} BIT;
} TPAUSECR;
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long BCF:16;
} BIT;
} BCFRR;
char wk8[80];
unsigned long MAHR;
char wk9[4];
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long MA:16;
} BIT;
} MALR;
char wk10[4];
unsigned long TROCR;
unsigned long CDCR;
unsigned long LCCR;
unsigned long CNDCR;
char wk11[4];
unsigned long CEFCR;
unsigned long FRECR;
unsigned long TSFRCR;
unsigned long TLFRCR;
unsigned long RFCR;
unsigned long MAFCR;
};
struct st_exdmac {
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DMST:1;
} BIT;
} EDMAST;
char wk0[479];
unsigned long CLSBR0;
unsigned long CLSBR1;
unsigned long CLSBR2;
unsigned long CLSBR3;
unsigned long CLSBR4;
unsigned long CLSBR5;
unsigned long CLSBR6;
unsigned long CLSBR7;
};
struct st_exdmac0 {
unsigned long EDMSAR;
unsigned long EDMDAR;
unsigned long EDMCRA;
unsigned short EDMCRB;
char wk0[2];
union {
unsigned short WORD;
struct {
unsigned short MD:2;
unsigned short DTS:2;
unsigned short :2;
unsigned short SZ:2;
unsigned short :6;
unsigned short DCTG:2;
} BIT;
} EDMTMD;
union {
unsigned char BYTE;
struct {
unsigned char :4;
unsigned char DACKS:1;
unsigned char DACKE:1;
unsigned char DACKW:1;
} BIT;
} EDMOMD;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char DTIE:1;
unsigned char ESIE:1;
unsigned char RPTIE:1;
unsigned char SARIE:1;
unsigned char DARIE:1;
} BIT;
} EDMINT;
union {
unsigned long LONG;
struct {
unsigned long :14;
unsigned long AMS:1;
unsigned long DIR:1;
unsigned long SM:2;
unsigned long :1;
unsigned long SARA:5;
unsigned long DM:2;
unsigned long :1;
unsigned long DARA:5;
} BIT;
} EDMAMD;
unsigned long EDMOFR;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DTE:1;
} BIT;
} EDMCNT;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char CLRS:1;
unsigned char :3;
unsigned char SWREQ:1;
} BIT;
} EDMREQ;
union {
unsigned char BYTE;
struct {
unsigned char ACT:1;
unsigned char :2;
unsigned char DTIF:1;
unsigned char :3;
unsigned char ESIF:1;
} BIT;
} EDMSTS;
char wk1[1];
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char DREQS:2;
} BIT;
} EDMRMD;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char EREQ:1;
} BIT;
} EDMERF;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char PREQ:1;
} BIT;
} EDMPRF;
};
struct st_exdmac1 {
unsigned long EDMSAR;
unsigned long EDMDAR;
unsigned long EDMCRA;
unsigned short EDMCRB;
char wk0[2];
union {
unsigned short WORD;
struct {
unsigned short MD:2;
unsigned short DTS:2;
unsigned short :2;
unsigned short SZ:2;
unsigned short :6;
unsigned short DCTG:2;
} BIT;
} EDMTMD;
union {
unsigned char BYTE;
struct {
unsigned char :4;
unsigned char DACKS:1;
unsigned char DACKE:1;
unsigned char DACKW:1;
} BIT;
} EDMOMD;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char DTIE:1;
unsigned char ESIE:1;
unsigned char RPTIE:1;
unsigned char SARIE:1;
unsigned char DARIE:1;
} BIT;
} EDMINT;
union {
unsigned long LONG;
struct {
unsigned long :14;
unsigned long AMS:1;
unsigned long DIR:1;
unsigned long SM:2;
unsigned long :1;
unsigned long SARA:5;
unsigned long DM:2;
unsigned long :1;
unsigned long DARA:5;
} BIT;
} EDMAMD;
char wk1[4];
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DTE:1;
} BIT;
} EDMCNT;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char CLRS:1;
unsigned char :3;
unsigned char SWREQ:1;
} BIT;
} EDMREQ;
union {
unsigned char BYTE;
struct {
unsigned char ACT:1;
unsigned char :2;
unsigned char DTIF:1;
unsigned char :3;
unsigned char ESIF:1;
} BIT;
} EDMSTS;
char wk2[1];
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char DREQS:2;
} BIT;
} EDMRMD;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char EREQ:1;
} BIT;
} EDMERF;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char PREQ:1;
} BIT;
} EDMPRF;
};
struct st_flash {
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char FLWE:2;
} BIT;
} FWEPROR;
char wk0[7799147];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char FRDMD:1;
} BIT;
} FMODR;
char wk1[13];
union {
unsigned char BYTE;
struct {
unsigned char ROMAE:1;
unsigned char :2;
unsigned char CMDLK:1;
unsigned char DFLAE:1;
unsigned char :1;
unsigned char DFLRPE:1;
unsigned char DFLWPE:1;
} BIT;
} FASTAT;
union {
unsigned char BYTE;
struct {
unsigned char ROMAEIE:1;
unsigned char :2;
unsigned char CMDLKIE:1;
unsigned char DFLAEIE:1;
unsigned char :1;
unsigned char DFLRPEIE:1;
unsigned char DFLWPEIE:1;
} BIT;
} FAEINT;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char FRDYIE:1;
} BIT;
} FRDYIE;
char wk2[45];
union {
unsigned short WORD;
struct {
unsigned short KEY:8;
unsigned short DBRE07:1;
unsigned short DBRE06:1;
unsigned short DBRE05:1;
unsigned short DBRE04:1;
unsigned short DBRE03:1;
unsigned short DBRE02:1;
unsigned short DBRE01:1;
unsigned short DBRE00:1;
} BIT;
} DFLRE0;
union {
unsigned short WORD;
struct {
unsigned short KEY:8;
unsigned short DBRE15:1;
unsigned short DBRE14:1;
unsigned short DBRE13:1;
unsigned short DBRE12:1;
unsigned short DBRE11:1;
unsigned short DBRE10:1;
unsigned short DBRE09:1;
unsigned short DBRE08:1;
} BIT;
} DFLRE1;
char wk3[12];
union {
unsigned short WORD;
struct {
unsigned short KEY:8;
unsigned short DBWE07:1;
unsigned short DBW006:1;
unsigned short DBWE05:1;
unsigned short DBWE04:1;
unsigned short DBWE03:1;
unsigned short DBWE02:1;
unsigned short DBWE01:1;
unsigned short DBWE00:1;
} BIT;
} DFLWE0;
union {
unsigned short WORD;
struct {
unsigned short KEY:8;
unsigned short DBWE15:1;
unsigned short DBWE14:1;
unsigned short DBWE13:1;
unsigned short DBWE12:1;
unsigned short DBWE11:1;
unsigned short DBWE10:1;
unsigned short DBWE09:1;
unsigned short DBWE08:1;
} BIT;
} DFLWE1;
union {
unsigned short WORD;
struct {
unsigned short KEY:8;
unsigned short :7;
unsigned short FCRME:1;
} BIT;
} FCURAME;
char wk4[15194];
union {
unsigned char BYTE;
struct {
unsigned char FRDY:1;
unsigned char ILGLERR:1;
unsigned char ERSERR:1;
unsigned char PRGERR:1;
unsigned char SUSRDY:1;
unsigned char :1;
unsigned char ERSSPD:1;
unsigned char PRGSPD:1;
} BIT;
} FSTATR0;
union {
unsigned char BYTE;
struct {
unsigned char FCUERR:1;
unsigned char :2;
unsigned char FLOCKST:1;
} BIT;
} FSTATR1;
union {
unsigned short WORD;
struct {
unsigned short FEKEY:8;
unsigned short FENTRYD:1;
unsigned short :3;
unsigned short FENTRY3:1;
unsigned short FENTRY2:1;
unsigned short FENTRY1:1;
unsigned short FENTRY0:1;
} BIT;
} FENTRYR;
union {
unsigned short WORD;
struct {
unsigned short FPKEY:8;
unsigned short :7;
unsigned short FPROTCN:1;
} BIT;
} FPROTR;
union {
unsigned short WORD;
struct {
unsigned short FRKEY:8;
unsigned short :7;
unsigned short FRESET:1;
} BIT;
} FRESETR;
char wk5[2];
union {
unsigned short WORD;
struct {
unsigned short CMDR:8;
unsigned short PCMDR:8;
} BIT;
} FCMDR;
char wk6[12];
union {
unsigned short WORD;
struct {
unsigned short :15;
unsigned short ESUSPMD:1;
} BIT;
} FCPSR;
union {
unsigned short WORD;
struct {
unsigned short BCSIZE:1;
unsigned short :4;
unsigned short BCADR:11;
} BIT;
} DFLBCCNT;
union {
unsigned short WORD;
struct {
unsigned short :8;
unsigned short PEERRST:8;
} BIT;
} FPESTAT;
union {
unsigned short WORD;
struct {
unsigned short :15;
unsigned short BCST:1;
} BIT;
} DFLBCSTAT;
char wk7[24];
union {
unsigned short WORD;
struct {
unsigned short :8;
unsigned short PCKA:8;
} BIT;
} PCKAR;
};
struct st_icu {
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char IR:1;
} BIT;
} IR[254];
char wk0[2];
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DTCE:1;
} BIT;
} DTCER[252];
char wk1[4];
union {
unsigned char BYTE;
struct {
unsigned char IEN7:1;
unsigned char IEN6:1;
unsigned char IEN5:1;
unsigned char IEN4:1;
unsigned char IEN3:1;
unsigned char IEN2:1;
unsigned char IEN1:1;
unsigned char IEN0:1;
} BIT;
} IER[32];
char wk2[192];
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char SWINT:1;
} BIT;
} SWINTR;
char wk3[15];
union {
unsigned short WORD;
struct {
unsigned short FIEN:1;
unsigned short :7;
unsigned short FVCT:8;
} BIT;
} FIR;
char wk4[14];
union {
unsigned char BYTE;
struct {
unsigned char :4;
unsigned char IPR:4;
} BIT;
} IPR[254];
char wk5[2];
union {
unsigned char BYTE;
struct {
unsigned char DMRS:8;
} BIT;
} DMRSR0;
char wk6[3];
union {
unsigned char BYTE;
struct {
unsigned char DMRS:8;
} BIT;
} DMRSR1;
char wk7[3];
union {
unsigned char BYTE;
struct {
unsigned char DMRS:8;
} BIT;
} DMRSR2;
char wk8[3];
union {
unsigned char BYTE;
struct {
unsigned char DMRS:8;
} BIT;
} DMRSR3;
char wk9[243];
union {
unsigned char BYTE;
struct {
unsigned char :4;
unsigned char IRQMD:2;
} BIT;
} IRQCR[16];
union {
unsigned char BYTE;
struct {
unsigned char FLTEN7:1;
unsigned char FLTEN6:1;
unsigned char FLTEN5:1;
unsigned char FLTEN4:1;
unsigned char FLTEN3:1;
unsigned char FLTEN2:1;
unsigned char FLTEN1:1;
unsigned char FLTEN0:1;
} BIT;
} IRQFLTE0;
union {
unsigned char BYTE;
struct {
unsigned char FLTEN15:1;
unsigned char FLTEN14:1;
unsigned char FLTEN13:1;
unsigned char FLTEN12:1;
unsigned char FLTEN11:1;
unsigned char FLTEN10:1;
unsigned char FLTEN9:1;
unsigned char FLTEN8:1;
} BIT;
} IRQFLTE1;
char wk10[2];
union {
unsigned short WORD;
struct {
unsigned short FCLKSEL7:2;
unsigned short FCLKSEL6:2;
unsigned short FCLKSEL5:2;
unsigned short FCLKSEL4:2;
unsigned short FCLKSEL3:2;
unsigned short FCLKSEL2:2;
unsigned short FCLKSEL1:2;
unsigned short FCLKSEL0:2;
} BIT;
} IRQFLTC0;
union {
unsigned short WORD;
struct {
unsigned short FCLKSEL15:2;
unsigned short FCLKSEL14:2;
unsigned short FCLKSEL13:2;
unsigned short FCLKSEL12:2;
unsigned short FCLKSEL11:2;
unsigned short FCLKSEL10:2;
unsigned short FCLKSEL9:2;
unsigned short FCLKSEL8:2;
} BIT;
} IRQFLTC1;
char wk11[104];
union {
unsigned char BYTE;
struct {
unsigned char :2;
unsigned char LVD2ST:1;
unsigned char LVD1ST:1;
unsigned char IWDTST:1;
unsigned char WDTST:1;
unsigned char OSTST:1;
unsigned char NMIST:1;
} BIT;
} NMISR;
union {
unsigned char BYTE;
struct {
unsigned char :2;
unsigned char LVD2EN:1;
unsigned char LVD1EN:1;
unsigned char IWDTEN:1;
unsigned char WDTEN:1;
unsigned char OSTEN:1;
unsigned char NMIEN:1;
} BIT;
} NMIER;
union {
unsigned char BYTE;
struct {
unsigned char :2;
unsigned char LVD2CLR:1;
unsigned char LVD1CLR:1;
unsigned char IWDTCLR:1;
unsigned char WDTCLR:1;
unsigned char OSTCLR:1;
unsigned char NMICLR:1;
} BIT;
} NMICLR;
union {
unsigned char BYTE;
struct {
unsigned char :4;
unsigned char NMIMD:1;
} BIT;
} NMICR;
char wk12[12];
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char NFLTEN:1;
} BIT;
} NMIFLTE;
char wk13[3];
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char NFCLKSEL:2;
} BIT;
} NMIFLTC;
char wk14[19819];
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long IS15:1;
unsigned long IS14:1;
unsigned long IS13:1;
unsigned long IS12:1;
unsigned long IS11:1;
unsigned long IS10:1;
unsigned long IS9:1;
unsigned long IS8:1;
unsigned long IS7:1;
unsigned long IS6:1;
unsigned long IS5:1;
unsigned long IS4:1;
unsigned long IS3:1;
unsigned long IS2:1;
unsigned long IS1:1;
unsigned long IS0:1;
} BIT;
} GRP[13];
char wk15[12];
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long EN15:1;
unsigned long EN14:1;
unsigned long EN13:1;
unsigned long EN12:1;
unsigned long EN11:1;
unsigned long EN10:1;
unsigned long EN9:1;
unsigned long EN8:1;
unsigned long EN7:1;
unsigned long EN6:1;
unsigned long EN5:1;
unsigned long EN4:1;
unsigned long EN3:1;
unsigned long EN2:1;
unsigned long EN1:1;
unsigned long EN0:1;
} BIT;
} GEN[13];
char wk16[12];
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long CLR15:1;
unsigned long CLR14:1;
unsigned long CLR13:1;
unsigned long CLR12:1;
unsigned long CLR11:1;
unsigned long CLR10:1;
unsigned long CLR9:1;
unsigned long CLR8:1;
unsigned long CLR7:1;
unsigned long CLR6:1;
unsigned long CLR5:1;
unsigned long CLR4:1;
unsigned long CLR3:1;
unsigned long CLR2:1;
unsigned long CLR1:1;
unsigned long CLR0:1;
} BIT;
} GCR[13];
char wk17[12];
union {
unsigned long LONG;
struct {
unsigned long :26;
unsigned long CN5:1;
unsigned long CN4:1;
unsigned long CN3:1;
unsigned long CN2:1;
unsigned long CN1:1;
unsigned long CN0:1;
} BIT;
} SEL;
};
struct st_ieb {
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char IOL:1;
unsigned char DEE:1;
unsigned char :1;
unsigned char RE:1;
} BIT;
} IECTR;
union {
unsigned char BYTE;
struct {
unsigned char :5;
unsigned char CMD:3;
} BIT;
} IECMR;
union {
unsigned char BYTE;
struct {
unsigned char SS:1;
unsigned char RN:3;
unsigned char CTL:4;
} BIT;
} IEMCR;
union {
unsigned char BYTE;
struct {
unsigned char IARL4:4;
unsigned char IMD:2;
unsigned char :1;
unsigned char STE:1;
} BIT;
} IEAR1;
union {
unsigned char BYTE;
struct {
unsigned char IARU8:8;
} BIT;
} IEAR2;
union {
unsigned char BYTE;
struct {
unsigned char ISAL4:4;
} BIT;
} IESA1;
union {
unsigned char BYTE;
struct {
unsigned char ISAU8:8;
} BIT;
} IESA2;
union {
unsigned char BYTE;
struct {
unsigned char IBFL:8;
} BIT;
} IETBFL;
char wk0[1];
union {
unsigned char BYTE;
struct {
unsigned char ISAL4:4;
} BIT;
} IEMA1;
union {
unsigned char BYTE;
struct {
unsigned char IMAU8:8;
} BIT;
} IEMA2;
union {
unsigned char BYTE;
struct {
unsigned char :4;
unsigned char RCTL:4;
} BIT;
} IERCTL;
union {
unsigned char BYTE;
struct {
unsigned char RBFL:8;
} BIT;
} IERBFL;
char wk1[1];
union {
unsigned char BYTE;
struct {
unsigned char ILAL8:8;
} BIT;
} IELA1;
union {
unsigned char BYTE;
struct {
unsigned char :4;
unsigned char ILAU4:4;
} BIT;
} IELA2;
union {
unsigned char BYTE;
struct {
unsigned char CMX:1;
unsigned char MRQ:1;
unsigned char SRQ:1;
unsigned char SRE:1;
unsigned char LCK:1;
unsigned char :1;
unsigned char RSS:1;
unsigned char GG:1;
} BIT;
} IEFLG;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char TXS:1;
unsigned char TXF:1;
unsigned char :1;
unsigned char TXEAL:1;