blob: b2ff2a8e4dbd62ebd5b02fb41c9e1a663ee9aebf [file] [log] [blame]
/************************************************************************
*
* Device : RX/RX600/RX630
*
* File Name : ioedfine.h
*
* Abstract : Definition of I/O Register.
*
* History : 0.50 (2011-03-28) [Hardware Manual Revision : 0.50]
* : 0.10 (2010-10-06) [Hardware Manual Revision : 0.11]
*
* NOTE : THIS IS A TYPICAL EXAMPLE.
*
* Copyright (C) 2010(2011) Renesas Electronics Corporation
* and Renesas Solutions Corp.
*
************************************************************************/
/********************************************************************************/
/* */
/* DESCRIPTION : Definition of ICU Register */
/* CPU TYPE : RX630 */
/* */
/* 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 __RX630IODEFINE_HEADER__
#define __RX630IODEFINE_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 :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[974];
unsigned char 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_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;
unsigned char TXETTME:1;
unsigned char TXERO:1;
unsigned char TXEACK:1;
} BIT;
} IETSR;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char TXSE:1;
unsigned char TXFE:1;
unsigned char :1;
unsigned char TXEALE:1;
unsigned char TXETTMEE:1;
unsigned char TXEROE:1;
unsigned char TXEACKE:1;
} BIT;
} IEIET;
char wk2[1];
union {
unsigned char BYTE;
struct {
unsigned char RXBSY:1;
unsigned char RXS:1;
unsigned char RXF:1;
unsigned char RXEDE:1;
unsigned char RXEOVE:1;
unsigned char RXERTME:1;
unsigned char RXEDLE:1;
unsigned char RXEPE:1;
} BIT;
} IERSR;
union {
unsigned char BYTE;
struct {
unsigned char RXBSYE:1;
unsigned char RXSE:1;
unsigned char RXFE:1;
unsigned char RXEDEE:1;
unsigned char RXEOVEE:1;
unsigned char RXERTMEE:1;
unsigned char RXEDLEE:1;
unsigned char RXEPEE:1;
} BIT;
} IEIER;
char wk3[2];
union {
unsigned char BYTE;
struct {
unsigned char FLT:1;
unsigned char FCKS:2;
unsigned char CKS3:1;
unsigned char SRSTP:1;
unsigned char CKS:3;
} BIT;
} IECKSR;
char wk4[230];
unsigned char IETB[33];
char wk5[223];
unsigned char IERB[33];
};
struct st_iwdt {
unsigned char IWDTRR;
char wk0[1];
union {
unsigned short WORD;
struct {
unsigned short :2;
unsigned short RPSS:2;
unsigned short :2;
unsigned short RPES:2;
unsigned short CKS:4;
unsigned short :2;
unsigned short TOPS:2;
} BIT;
} IWDTCR;
union {
unsigned short WORD;
struct {
unsigned short REFEF:1;
unsigned short UNDFF:1;
unsigned short CNTVAL:14;
} BIT;
} IWDTSR;
union {
unsigned char BYTE;
struct {
unsigned char RSTIRQS:1;
} BIT;
} IWDTRCR;
char wk1[1];
union {
unsigned char BYTE;
struct {
unsigned char SLCSTP:1;
} BIT;
} IWDTCSTPR;
};
struct st_mpc {
union {
unsigned char BYTE;
struct {
unsigned char CS7E:1;
unsigned char CS6E:1;
unsigned char CS5E:1;
unsigned char CS4E:1;
unsigned char CS3E:1;
unsigned char CS2E:1;
unsigned char CS1E:1;
unsigned char CS0E:1;
} BIT;
} PFCSE;
char wk0[1];
union {
unsigned char BYTE;
struct {
unsigned char CS3S:2;
unsigned char CS2S:2;
unsigned char CS1S:2;
unsigned char :1;
unsigned char CS0S:1;
} BIT;
} PFCSS0;
union {
unsigned char BYTE;
struct {
unsigned char CS7S:2;
unsigned char CS6S:2;
unsigned char CS5S:2;
unsigned char CS4S:2;
} BIT;
} PFCSS1;
union {
unsigned char BYTE;
struct {
unsigned char A15E:1;
unsigned char A14E:1;
unsigned char A13E:1;
unsigned char A12E:1;
unsigned char A11E:1;
unsigned char A10E:1;
unsigned char A9E:1;
unsigned char A8E:1;
} BIT;
} PFAOE0;
union {
unsigned char BYTE;
struct {
unsigned char A23E:1;
unsigned char A22E:1;
unsigned char A21E:1;
unsigned char A20E:1;
unsigned char A19E:1;
unsigned char A18E:1;
unsigned char A17E:1;
unsigned char A16E:1;
} BIT;
} PFAOE1;
union {
unsigned char BYTE;
struct {
unsigned char WR32BC32E:1;
unsigned char WR1BC1E:1;
unsigned char DH32E:1;
unsigned char DHE:1;
unsigned char :2;
unsigned char ADRHMS:1;
unsigned char ADRLE:1;
} BIT;
} PFBCR0;
union {
unsigned char BYTE;
struct {
unsigned char :5;
unsigned char ALEOE:1;
unsigned char WAITS:2;
} BIT;
} PFBCR1;
char wk1[12];
union {
unsigned char BYTE;
struct {
unsigned char :5;
unsigned char PUPHZS:1;
} BIT;
} PFUSB0;
char wk2[10];
union {
unsigned char BYTE;
struct {
unsigned char B0WI:1;
unsigned char PFSWE:1;
} BIT;
} PWPR;
char wk3[32];
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P00PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P01PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P02PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P03PFS;
char wk4[1];
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P05PFS;
char wk5[1];
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P07PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P10PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P11PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P12PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P13PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P14PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P15PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P16PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P17PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P20PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P21PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P22PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P23PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P24PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P25PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P26PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P27PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P30PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P31PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P32PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P33PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P34PFS;
char wk6[3];
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
} BIT;
} P40PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
} BIT;
} P41PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
} BIT;
} P42PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
} BIT;
} P43PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
} BIT;
} P44PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
} BIT;
} P45PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
} BIT;
} P46PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char ISEL:1;
} BIT;
} P47PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P50PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P51PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P52PFS;
char wk7[1];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P54PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P55PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P56PFS;
char wk8[1];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P60PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P61PFS;
char wk9[4];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P66PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;
unsigned char ISEL:1;
unsigned char :1;
unsigned char PSEL:5;
} BIT;
} P67PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P70PFS;
char wk10[2];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P73PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P74PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P75PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P76PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P77PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P80PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P81PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P82PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P83PFS;
char wk11[2];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P86PFS;
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} P87PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char :2;
unsigned char PSEL:5;
} BIT;
} P90PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char :2;
unsigned char PSEL:5;
} BIT;
} P91PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char :2;
unsigned char PSEL:5;
} BIT;
} P92PFS;
union {
unsigned char BYTE;
struct {
unsigned char ASEL:1;
unsigned char :2;
unsigned char PSEL:5;
} BIT;
} P93PFS;
char wk12[4];
union {
unsigned char BYTE;
struct {
unsigned char :3;
unsigned char PSEL:5;
} BIT;
} PA0PFS;
union {
unsigned char BYTE;
struct {
unsigned char :1;