blob: 5c3a0b2b45628a0d4af367acec0dfdc50872e373 [file] [log] [blame]
/********************************************************************************
*
* Device : RX/RX700/RX71M
*
* File Name : iodefine.h
*
* Abstract : Definition of I/O Register
*
* History : 0.10 (2014-03-22) [Hardware Manual Revision : 0.10]
* : 1.00 (2014-12-08) [Hardware Manual Revision : 1.00]
*
* Note : THIS IS A TYPICAL EXAMPLE.
*
* Copyright (C) 2014 Renesas Electronics Corporation.
*
*********************************************************************************/
/* */
/* DESCRIPTION : Definition of ICU Register */
/* CPU TYPE : RX71M */
/* */
/* 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(BSC,BUSERR) = 0; expands to : */
/* ICU.IR[16].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; */
/* */
/* 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) */
/* */
/* 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,... 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 __RX71MIODEFINE_HEADER__
#define __RX71MIODEFINE_HEADER__
#pragma bit_order left
#pragma unpack
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_cac {
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char CFME:1;
} BIT;
} CACR0;
union {
unsigned char BYTE;
struct {
unsigned char EDGES:2;
unsigned char TCSS:2;
unsigned char FMCS:3;
unsigned char CACREFE:1;
} BIT;
} CACR1;
union {
unsigned char BYTE;
struct {
unsigned char DFS:2;
unsigned char RCDS:2;
unsigned char RSCS:3;
unsigned char RPS:1;
} BIT;
} CACR2;
union {
unsigned char BYTE;
struct {
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;
} BIT;
} CAICR;
union {
unsigned char BYTE;
struct {
unsigned char :5;
unsigned char OVFF:1;
unsigned char MENDF:1;
unsigned char FERRF:1;
} BIT;
} CASTR;
char wk0[1];
unsigned short CAULVR;
unsigned short CALLVR;
unsigned short CACNTBR;
};
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_cmtw {
union {
unsigned short WORD;
struct {
unsigned short :15;
unsigned short STR:1;
} BIT;
} CMWSTR;
char wk0[2];
union {
unsigned short WORD;
struct {
unsigned short CCLR:3;
unsigned short :3;
unsigned short CMS:1;
unsigned short :1;
unsigned short OC1IE:1;
unsigned short OC0IE:1;
unsigned short IC1IE:1;
unsigned short IC0IE:1;
unsigned short CMWIE:1;
unsigned short :1;
unsigned short CKS:2;
} BIT;
} CMWCR;
char wk1[2];
union {
unsigned short WORD;
struct {
unsigned short CMWE:1;
unsigned short :1;
unsigned short OC1E:1;
unsigned short OC0E:1;
unsigned short OC1:2;
unsigned short OC0:2;
unsigned short :2;
unsigned short IC1E:1;
unsigned short IC0E:1;
unsigned short IC1:2;
unsigned short IC0:2;
} BIT;
} CMWIOR;
char wk2[6];
unsigned long CMWCNT;
unsigned long CMWCOR;
unsigned long CMWICR0;
unsigned long CMWICR1;
unsigned long CMWOCR0;
unsigned long CMWOCR1;
};
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;
char wk0[1];
union {
unsigned char BYTE;
struct {
unsigned char DAAMP1:1;
unsigned char DAAMP0:1;
} BIT;
} DAAMPCR;
char wk1[17783];
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char AMADSEL1:1;
} BIT;
} DAADUSR;
};
struct st_dmac {
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char DMST:1;
} BIT;
} DMAST;
char wk0[3];
union {
unsigned char BYTE;
struct {
unsigned char DMIS7:1;
unsigned char DMIS6:1;
unsigned char DMIS5:1;
unsigned char DMIS4:1;
} BIT;
} DMIST;
};
struct st_dmac0 {
void *DMSAR;
void *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 {
void *DMSAR;
void *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_doc {
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char DOPCFCL:1;
unsigned char DOPCF:1;
unsigned char DOPCIE:1;
unsigned char :1;
unsigned char DCSEL:1;
unsigned char OMS:2;
} BIT;
} DOCR;
char wk0[1];
unsigned short DODIR;
unsigned short DODSR;
};
struct st_dtc {
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char RRS:1;
} BIT;
} DTCCR;
char wk0[3];
void *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_eccram {
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char RAMMOD:2;
} BIT;
} ECCRAMMODE;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char ECC2ERR:1;
} BIT;
} ECCRAM2STS;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char ECC1STSEN:1;
} BIT;
} ECCRAM1STSEN;
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char ECC1ERR:1;
} BIT;
} ECCRAM1STS;
// union {
// unsigned char BYTE;
// struct {
// unsigned char KW:7;
// unsigned char PRCR:1;
// } BIT;
// } ECCRAMPRCR;
unsigned char ECCRAMPRCR;
char wk0[3];
union {
unsigned long LONG;
struct {
unsigned long :17;
unsigned long ECC2EAD:12;
} BIT;
} ECCRAM2ECAD;
union {
unsigned long LONG;
struct {
unsigned long :17;
unsigned long ECC1EAD:12;
} BIT;
} ECCRAM1ECAD;
// union {
// unsigned char BYTE;
// struct {
// unsigned char KW2:7;
// unsigned char PRCR2:1;
// } BIT;
// } ECCRAMPRCR2;
unsigned char ECCRAMPRCR2;
char wk1[3];
union {
unsigned char BYTE;
struct {
unsigned char :7;
unsigned char TSTBYP:1;
} BIT;
} ECCRAMETST;
};
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];
void *TDLAR;
char wk3[4];
void *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 :24;
unsigned long RMAFCE:1;
unsigned long :2;
unsigned long RRFCE: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 :31;
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];
void *RBWAR;
void *RDFAR;
char wk14[4];
void *TBRAR;
void *TDFAR;
};
struct st_elc {
union {
unsigned char BYTE;
struct {
unsigned char ELCON:1;
} BIT;
} ELCR;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR0;
char wk0[2];
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR3;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR4;
char wk1[2];
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR7;
char wk2[2];
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR10;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR11;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR12;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR13;
char wk3[1];
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR15;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR16;
char wk4[1];
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR18;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR19;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR20;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR21;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR22;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR23;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR24;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR25;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR26;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR27;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR28;
char wk5[1];
union {
unsigned char BYTE;
struct {
unsigned char MTU3MD:2;
unsigned char :4;
unsigned char MTU0MD:2;
} BIT;
} ELOPA;
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char MTU4MD:2;
} BIT;
} ELOPB;
union {
unsigned char BYTE;
struct {
unsigned char :4;
unsigned char CMT1MD:2;
} BIT;
} ELOPC;
union {
unsigned char BYTE;
struct {
unsigned char TMR3MD:2;
unsigned char TMR2MD:2;
unsigned char TMR1MD:2;
unsigned char TMR0MD:2;
} BIT;
} ELOPD;
union {
unsigned char BYTE;
struct {
unsigned char PGR7:1;
unsigned char PGR6:1;
unsigned char PGR5:1;
unsigned char PGR4:1;
unsigned char PGR3:1;
unsigned char PGR2:1;
unsigned char PGR1:1;
unsigned char PGR0:1;
} BIT;
} PGR1;
union {
unsigned char BYTE;
struct {
unsigned char PGR7:1;
unsigned char PGR6:1;
unsigned char PGR5:1;
unsigned char PGR4:1;
unsigned char PGR3:1;
unsigned char PGR2:1;
unsigned char PGR1:1;
unsigned char PGR0:1;
} BIT;
} PGR2;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char PGCO:3;
unsigned char :1;
unsigned char PGCOVE:1;
unsigned char PGCI:2;
} BIT;
} PGC1;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char PGCO:3;
unsigned char :1;
unsigned char PGCOVE:1;
unsigned char PGCI:2;
} BIT;
} PGC2;
union {
unsigned char BYTE;
struct {
unsigned char PDBF7:1;
unsigned char PDBF6:1;
unsigned char PDBF5:1;
unsigned char PDBF4:1;
unsigned char PDBF3:1;
unsigned char PDBF2:1;
unsigned char PDBF1:1;
unsigned char PDBF0:1;
} BIT;
} PDBF1;
union {
unsigned char BYTE;
struct {
unsigned char PDBF7:1;
unsigned char PDBF6:1;
unsigned char PDBF5:1;
unsigned char PDBF4:1;
unsigned char PDBF3:1;
unsigned char PDBF2:1;
unsigned char PDBF1:1;
unsigned char PDBF0:1;
} BIT;
} PDBF2;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char PSM:2;
unsigned char PSP:2;
unsigned char PSB:3;
} BIT;
} PEL0;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char PSM:2;
unsigned char PSP:2;
unsigned char PSB:3;
} BIT;
} PEL1;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char PSM:2;
unsigned char PSP:2;
unsigned char PSB:3;
} BIT;
} PEL2;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char PSM:2;
unsigned char PSP:2;
unsigned char PSB:3;
} BIT;
} PEL3;
union {
unsigned char BYTE;
// struct {
// unsigned char WI:1;
// unsigned char WE:1;
// unsigned char :5;
// unsigned char SEG:1;
// } BIT;
} ELSEGR;
char wk6[3];
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR33;
char wk7[1];
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR35;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR36;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR37;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR38;
char wk8[2];
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR41;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR42;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR43;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR44;
union {
unsigned char BYTE;
struct {
unsigned char ELS:8;
} BIT;
} ELSR45;
char wk9[1];
union {
unsigned char BYTE;
struct {
unsigned char TPU3MD:2;
unsigned char TPU2MD:2;
unsigned char TPU1MD:2;
unsigned char TPU0MD:2;
} BIT;
} ELOPF;
char wk10[1];
union {
unsigned char BYTE;
struct {
unsigned char :6;
unsigned char CMTW0MD:2;
} BIT;
} ELOPH;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char GPT1MD:3;
unsigned char :1;
unsigned char GPT0MD:3;
} BIT;
} ELOPI;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char GPT3MD:3;
unsigned char :1;
unsigned char GPT2MD:3;
} BIT;
} ELOPJ;
};
struct st_eptpc {
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long RESET:1;
} BIT;
} PTRSTR;
union {
unsigned long LONG;
struct {
unsigned long :21;
unsigned long SCLKSEL:3;
unsigned long :5;
unsigned long SCLKDIV:3;
} BIT;
} STCSELR;
char wk0[15096];
// union {
// unsigned long LONG;
// struct {
// unsigned long :10;
// unsigned long CYC5:1;
// unsigned long CYC4:1;
// unsigned long CYC3:1;
// unsigned long CYC2:1;
// unsigned long CYC1:1;
// unsigned long CYC0:1;
// unsigned long :12;
// unsigned long PRC:1;
// unsigned long SY1:1;
// unsigned long SY0:1;
// unsigned long ST:1;
// } BIT;
// } MIESR;
unsigned long MIESR;
union {
unsigned long LONG;
struct {
unsigned long :10;
unsigned long CYC5:1;
unsigned long CYC4:1;
unsigned long CYC3:1;
unsigned long CYC2:1;
unsigned long CYC1:1;
unsigned long CYC0:1;
unsigned long :12;
unsigned long PR:1;
unsigned long SY1:1;
unsigned long SY0:1;
unsigned long ST:1;
} BIT;
} MIEIPR;
char wk1[8];
union {
unsigned long LONG;
struct {
unsigned long :7;
unsigned long PLSN:1;
unsigned long :7;
unsigned long PLSP:1;
unsigned long :2;
unsigned long CYCN5:1;
unsigned long CYCN4:1;
unsigned long CYCN3:1;
unsigned long CYCN2:1;
unsigned long CYCN1:1;
unsigned long CYCN0:1;
unsigned long :2;
unsigned long CYCP5:1;
unsigned long CYCP4:1;
unsigned long CYCP3:1;
unsigned long CYCP2:1;
unsigned long CYCP1:1;
unsigned long CYCP0:1;
} BIT;
} ELIPPR;
union {
unsigned long LONG;
struct {
unsigned long :7;
unsigned long PLSN:1;
unsigned long :7;
unsigned long PLSP:1;
unsigned long :2;
unsigned long CYCN5:1;
unsigned long CYCN4:1;
unsigned long CYCN3:1;
unsigned long CYCN2:1;
unsigned long CYCN1:1;
unsigned long CYCN0:1;
unsigned long :2;
unsigned long CYCP5:1;
unsigned long CYCP4:1;
unsigned long CYCP3:1;
unsigned long CYCP2:1;
unsigned long CYCP1:1;
unsigned long CYCP0:1;
} BIT;
} ELIPACR;
char wk2[40];
// union {
// unsigned long LONG;
// struct {
// unsigned long :27;
// unsigned long W10D:1;
// unsigned long SYNTOUT:1;
// unsigned long :1;
// unsigned long SYNCOUT:1;
// unsigned long SYNC:1;
// } BIT;
// } STSR;
unsigned long STSR;
union {
unsigned long LONG;
struct {
unsigned long :27;
unsigned long W10D:1;
unsigned long SYNTOUT:1;
unsigned long :1;
unsigned long SYNCOUT:1;
unsigned long SYNC:1;
} BIT;
} STIPR;
char wk3[8];
union {
unsigned long LONG;
struct {
unsigned long :30;
unsigned long STCF:2;
} BIT;
} STCFR;
union {
unsigned long LONG;
struct {
unsigned long :2;
unsigned long ALEN1:1;
unsigned long ALEN0:1;
unsigned long :4;
unsigned long DVTH:4;
unsigned long SYTH:4;
unsigned long W10S:1;
unsigned long :1;
unsigned long CMOD:1;
unsigned long :5;
unsigned long WINT:8;
} BIT;
} STMR;
unsigned long SYNTOR;
char wk4[4];
union {
unsigned long LONG;
struct {
unsigned long :26;
unsigned long IPTSEL5:1;
unsigned long IPTSEL4:1;
unsigned long IPTSEL3:1;
unsigned long IPTSEL2:1;
unsigned long IPTSEL1:1;
unsigned long IPTSEL0:1;
} BIT;
} IPTSELR;
union {
unsigned long LONG;
struct {
unsigned long :26;
unsigned long MINTEN5:1;
unsigned long MINTEN4:1;
unsigned long MINTEN3:1;
unsigned long MINTEN2:1;
unsigned long MINTEN1:1;
unsigned long MINTEN0:1;
} BIT;
} MITSELR;
union {
unsigned long LONG;
struct {
unsigned long :26;
unsigned long ELTDIS5:1;
unsigned long ELTDIS4:1;
unsigned long ELTDIS3:1;
unsigned long ELTDIS2:1;
unsigned long ELTDIS1:1;
unsigned long ELTDIS0:1;
} BIT;
} ELTSELR;
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long SYSEL:1;
} BIT;
} STCHSELR;
char wk5[16];
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long STR:1;
} BIT;
} SYNSTARTR;
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long LOAD:1;
} BIT;
} LCIVLDR;
char wk6[8];
unsigned long SYNTDARU;
unsigned long SYNTDARL;
unsigned long SYNTDBRU;
unsigned long SYNTDBRL;
char wk7[16];
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long VALU:16;
} BIT;
} LCIVRU;
unsigned long LCIVRM;
unsigned long LCIVRL;
char wk8[104];
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long GW10:1;
} BIT;
} GETW10R;
union {
unsigned long LONG;
struct {
unsigned long :1;
unsigned long LMTU:31;
} BIT;
} PLIMITRU;
unsigned long PLIMITRM;
unsigned long PLIMITRL;
union {
unsigned long LONG;
struct {
unsigned long :1;
unsigned long LMTU:31;
} BIT;
} MLIMITRU;
unsigned long MLIMITRM;
unsigned long MLIMITRL;
union {
unsigned long LONG;
struct {
unsigned long :31;
unsigned long INFO:1;
} BIT;
} GETINFOR;
char wk9[44];
union {
unsigned long LONG;
struct {
unsigned long :16;
unsigned long CNTU:16;
} BIT;
} LCCVRU;
unsigned long LCCVRM;
unsigned long LCCVRL;
char wk10[148];
unsigned long PW10VRU;
unsigned long PW10VRM;
unsigned long PW10VRL;
char wk11[180];
unsigned long MW10RU;
unsigned long MW10RM;
unsigned long MW10RL;
char wk12[36];
unsigned long TMSTTRU0;
unsigned long TMSTTRL0;
union {
unsigned long LONG;
struct {
unsigned long :2;
unsigned long CYC:30;
} BIT;
} TMCYCR0;
union {
unsigned long LONG;
struct {
unsigned long :3;
unsigned long WTH:29;
} BIT;
} TMPLSR0;
unsigned long TMSTTRU1;
unsigned long TMSTTRL1;
union {
unsigned long LONG;
struct {
unsigned long :2;
unsigned long CYC:30;
} BIT;
} TMCYCR1;
union {
unsigned long LONG;
struct {
unsigned long :3;
unsigned long WTH:29;
} BIT;
} TMPLSR1;
unsigned long TMSTTRU2;
unsigned long TMSTTRL2;
union {
unsigned long LONG;
struct {
unsigned long :2;
unsigned long CYC:30;
} BIT;
} TMCYCR2;
union {
unsigned long LONG;
struct {
unsigned long :3;
unsigned long WTH:29;
} BIT;
} TMPLSR2;
unsigned long TMSTTRU3;
unsigned long TMSTTRL3;
union {
unsigned long LONG;
struct {
unsigned long :2;
unsigned long CYC:30;
} BIT;
} TMCYCR3;
union {
unsigned long LONG;
struct {
unsigned long :3;
unsigned long WTH:29;
} BIT;
} TMPLSR3;
unsigned long TMSTTRU4;
unsigned long TMSTTRL4;
union {
unsigned long LONG;
struct {
unsigned long :2;
unsigned long CYC:30;
} BIT;
} TMCYCR4;
union {
unsigned long LONG;
struct {
unsigned long :3;
unsigned long WTH:29;
} BIT;
} TMPLSR4;
unsigned long TMSTTRU5;
unsigned long TMSTTRL5;
union {
unsigned long LONG;
struct {
unsigned long :2;
unsigned long CYC:30;
} BIT;
} TMCYCR5;
union {
unsigned long LONG;
struct {
unsigned long :3;
unsigned long WTH:29;
} BIT;
} TMPLSR5;
char wk13[28];
union {
unsigned long LONG;
struct {
unsigned long :26;
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;
} TMSTARTR;
char wk14[128];
// union {
// unsigned long LONG;
// struct {
// unsigned long :2;
// unsigned long URE1:1;
// unsigned long URE0:1;
// unsigned long :19;
// unsigned long MACE:1;
// unsigned long :4;
// unsigned long OVRE3:1;
// unsigned long OVRE2:1;
// unsigned long OVRE1:1;
// unsigned long OVRE0:1;
// } BIT;
// } PRSR;
unsigned long PRSR;
union {
unsigned long LONG;
struct {
unsigned long :2;
unsigned long URE1:1;
unsigned long URE0:1;
unsigned long :19;
unsigned long MACE:1;
unsigned long :4;
unsigned long OVRE3:1;
unsigned long OVRE2:1;
unsigned long OVRE1:1;
unsigned long OVRE0:1;
} BIT;
} PRIPR;
char wk15[8];
union {
unsigned long LONG;
struct {
unsigned long :8;
unsigned long MACU:24;
} BIT;
} PRMACRU0;
union {
unsigned long LONG;
struct {
unsigned long :8;
unsigned long MACL:24;
} BIT;
} PRMACRL0;
union {
unsigned long LONG;
struct {
unsigned long :8;
unsigned long MACU:24;
} BIT;
} PRMACRU1;
union {
unsigned long LONG;
struct {
unsigned long :8;
unsigned long MACL:24;
} BIT;
} PRMACRL1;
union {
unsigned long LONG;
struct {
unsigned long :30;
unsigned long TDIS:2;
} BIT;
} TRNDISR;
char wk16[12];
union {
unsigned long LONG;
struct {
unsigned long :22;
unsigned long FWD1:1;
unsigned long FWD0:1;
unsigned long :7;
unsigned long MOD:1;
} BIT;
} TRNMR;
union {
unsigned long LONG;
struct {
unsigned long :21;
unsigned long THVAL:11;
} BIT;
} TRNCTTDR;
};
struct st_eptpc0 {
// union {
// unsigned long LONG;
// struct {
// unsigned long :14;
// unsigned long GENDN:1;
// unsigned long RESDN:1;
// unsigned long :1;
// unsigned long INFABT:1;
// unsigned long :1;
// unsigned long RECLP:1;
// unsigned long :5;
// unsigned long DRQOVR:1;
// unsigned long INTDEV:1;
// unsigned long DRPTO:1;
// unsigned long :1;
// unsigned long MPDUD:1;
// unsigned long INTCHG:1;
// unsigned long OFMUD:1;
// } BIT;
// } SYSR;
unsigned long SYSR;
union {
unsigned long LONG;
struct {
unsigned long :14;
unsigned long GENDN:1;
unsigned long RESDN:1;
unsigned long :1;
unsigned long INFABT:1;
unsigned long :1;
unsigned long RECLP:1;
unsigned long :5;
unsigned long DRQOVR:1;
unsigned long INTDEV:1;
unsigned long DRPTO:1;