/***************************************************************/ | |
/* */ | |
/* PROJECT NAME : RTOSDemo */ | |
/* FILE : iodefine.h */ | |
/* DESCRIPTION : Definition of I/O Registers */ | |
/* CPU SERIES : RX100 */ | |
/* CPU TYPE : RX113 */ | |
/* */ | |
/* This file is generated by e2 studio. */ | |
/* */ | |
/***************************************************************/ | |
/********************************************************************************* | |
* | |
* Device : RX/RX100/RX113 | |
* | |
* File Name : iodefine.h | |
* | |
* Abstract : Definition of I/O Register. | |
* | |
* History : 0.4 (2013-11-18) [Hardware Manual Revision : 0.40] | |
* : 0.5 (2014-01-05) [Hardware Manual Revision : 0.50] | |
* : 1.0 (2014-07-22) [Hardware Manual Revision : 1.00] | |
* : 1.0A (2015-04-20) [Hardware Manual Revision : 1.02 + TU] | |
* | |
* NOTE : THIS IS A TYPICAL EXAMPLE. | |
* | |
* Copyright (C) 2015 (2013 - 2014) Renesas Electronics Corporation. | |
* | |
*********************************************************************************/ | |
/********************************************************************************/ | |
/* */ | |
/* DESCRIPTION : Definition of ICU Register */ | |
/* CPU TYPE : RX113 */ | |
/* */ | |
/* Usage : IR,DTCER,IER,IPR of ICU Register */ | |
/* The following IR, DTCE, IEN, IPR macro functions simplify usage. */ | |
/* The bit access operation is "Bit_Name(interrupt source,name)". */ | |
/* A part of the name can be omitted. */ | |
/* for example : */ | |
/* IR(MTU0,TGIA0) = 0; expands to : */ | |
/* ICU.IR[114].BIT.IR = 0; */ | |
/* */ | |
/* DTCE(ICU,IRQ0) = 1; expands to : */ | |
/* ICU.DTCER[64].BIT.DTCE = 1; */ | |
/* */ | |
/* IEN(CMT0,CMI0) = 1; expands to : */ | |
/* ICU.IER[0x03].BIT.IEN4 = 1; */ | |
/* */ | |
/* Usage : #pragma interrupt Function_Identifier(vect=**) */ | |
/* The number of vector is "(interrupt source, name)". */ | |
/* for example : */ | |
/* #pragma interrupt INT_IRQ0(vect=VECT(ICU,IRQ0)) expands to : */ | |
/* #pragma interrupt INT_IRQ0(vect=64) */ | |
/* #pragma interrupt INT_CMT0_CMI0(vect=VECT(CMT0,CMI0)) expands to : */ | |
/* #pragma interrupt INT_CMT0_CMI0(vect=28) */ | |
/* #pragma interrupt INT_MTU0_TGIA0(vect=VECT(MTU0,TGIA0)) expands to : */ | |
/* #pragma interrupt INT_MTU0_TGIA0(vect=114) */ | |
/* */ | |
/* 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; // TMR23,TMR2,TMR3 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(CMT3) = 0; // CMT2,CMT3 expands to : */ | |
/* SYSTEM.MSTPCRA.BIT.MSTPA14 = 0; */ | |
/* */ | |
/* */ | |
/********************************************************************************/ | |
#ifndef __RX113IODEFINE_HEADER__ | |
#define __RX113IODEFINE_HEADER__ | |
#pragma pack(4) | |
struct st_bsc { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char STSCLR : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char STSCLR : 1; | |
#endif | |
} BIT; | |
} BERCLR; | |
char wk0[3]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char IGAEN : 1; | |
unsigned char TOEN : 1; | |
unsigned char : 6; | |
#else | |
unsigned char : 6; | |
unsigned char TOEN : 1; | |
unsigned char IGAEN : 1; | |
#endif | |
} BIT; | |
} BEREN; | |
char wk1[3]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char IA : 1; | |
unsigned char TO : 1; | |
unsigned char : 2; | |
unsigned char MST : 3; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char MST : 3; | |
unsigned char : 2; | |
unsigned char TO : 1; | |
unsigned char IA : 1; | |
#endif | |
} BIT; | |
} BERSR1; | |
char wk2[1]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short : 3; | |
unsigned short ADDR : 13; | |
#else | |
unsigned short ADDR : 13; | |
unsigned short : 3; | |
#endif | |
} BIT; | |
} BERSR2; | |
char wk3[4]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short BPRA : 2; | |
unsigned short BPRO : 2; | |
unsigned short BPIB : 2; | |
unsigned short BPGB : 2; | |
unsigned short : 2; | |
unsigned short BPFB : 2; | |
unsigned short : 4; | |
#else | |
unsigned short : 4; | |
unsigned short BPFB : 2; | |
unsigned short : 2; | |
unsigned short BPGB : 2; | |
unsigned short BPIB : 2; | |
unsigned short BPRO : 2; | |
unsigned short BPRA : 2; | |
#endif | |
} BIT; | |
} BUSPRI; | |
}; | |
struct st_cac { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CFME : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char CFME : 1; | |
#endif | |
} BIT; | |
} CACR0; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CACREFE : 1; | |
unsigned char FMCS : 3; | |
unsigned char TCSS : 2; | |
unsigned char EDGES : 2; | |
#else | |
unsigned char EDGES : 2; | |
unsigned char TCSS : 2; | |
unsigned char FMCS : 3; | |
unsigned char CACREFE : 1; | |
#endif | |
} BIT; | |
} CACR1; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char RPS : 1; | |
unsigned char RSCS : 3; | |
unsigned char RCDS : 2; | |
unsigned char DFS : 2; | |
#else | |
unsigned char DFS : 2; | |
unsigned char RCDS : 2; | |
unsigned char RSCS : 3; | |
unsigned char RPS : 1; | |
#endif | |
} BIT; | |
} CACR2; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char FERRIE : 1; | |
unsigned char MENDIE : 1; | |
unsigned char OVFIE : 1; | |
unsigned char : 1; | |
unsigned char FERRFCL : 1; | |
unsigned char MENDFCL : 1; | |
unsigned char OVFFCL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char OVFFCL : 1; | |
unsigned char MENDFCL : 1; | |
unsigned char FERRFCL : 1; | |
unsigned char : 1; | |
unsigned char OVFIE : 1; | |
unsigned char MENDIE : 1; | |
unsigned char FERRIE : 1; | |
#endif | |
} BIT; | |
} CAICR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char FERRF : 1; | |
unsigned char MENDF : 1; | |
unsigned char OVFF : 1; | |
unsigned char : 5; | |
#else | |
unsigned char : 5; | |
unsigned char OVFF : 1; | |
unsigned char MENDF : 1; | |
unsigned char FERRF : 1; | |
#endif | |
} BIT; | |
} CASTR; | |
char wk0[1]; | |
unsigned short CAULVR; | |
unsigned short CALLVR; | |
unsigned short CACNTBR; | |
}; | |
struct st_cmpb { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CPB0INI : 1; | |
unsigned char : 3; | |
unsigned char CPB1INI : 1; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char CPB1INI : 1; | |
unsigned char : 3; | |
unsigned char CPB0INI : 1; | |
#endif | |
} BIT; | |
} CPBCNT1; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CPB0WCP : 1; | |
unsigned char : 3; | |
unsigned char CPB1WCP : 1; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char CPB1WCP : 1; | |
unsigned char : 3; | |
unsigned char CPB0WCP : 1; | |
#endif | |
} BIT; | |
} CPBCNT2; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 3; | |
unsigned char CPB0OUT : 1; | |
unsigned char : 3; | |
unsigned char CPB1OUT : 1; | |
#else | |
unsigned char CPB1OUT : 1; | |
unsigned char : 3; | |
unsigned char CPB0OUT : 1; | |
unsigned char : 3; | |
#endif | |
} BIT; | |
} CPBFLG; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CPB0INTEN : 1; | |
unsigned char CPB0INTEG : 1; | |
unsigned char CPB0INTPL : 1; | |
unsigned char : 1; | |
unsigned char CPB1INTEN : 1; | |
unsigned char CPB1INTEG : 1; | |
unsigned char CPB1INTPL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char CPB1INTPL : 1; | |
unsigned char CPB1INTEG : 1; | |
unsigned char CPB1INTEN : 1; | |
unsigned char : 1; | |
unsigned char CPB0INTPL : 1; | |
unsigned char CPB0INTEG : 1; | |
unsigned char CPB0INTEN : 1; | |
#endif | |
} BIT; | |
} CPBINT; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CPB0FEN : 1; | |
unsigned char : 1; | |
unsigned char CPB0F : 2; | |
unsigned char CPB1FEN : 1; | |
unsigned char : 1; | |
unsigned char CPB1F : 2; | |
#else | |
unsigned char CPB1F : 2; | |
unsigned char : 1; | |
unsigned char CPB1FEN : 1; | |
unsigned char CPB0F : 2; | |
unsigned char : 1; | |
unsigned char CPB0FEN : 1; | |
#endif | |
} BIT; | |
} CPBF; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CPBSPDMD : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char CPBSPDMD : 1; | |
#endif | |
} BIT; | |
} CPBMD; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CPB0VRF : 1; | |
unsigned char : 3; | |
unsigned char CPB1VRF : 1; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char CPB1VRF : 1; | |
unsigned char : 3; | |
unsigned char CPB0VRF : 1; | |
#endif | |
} BIT; | |
} CPBREF; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CPB0OE : 1; | |
unsigned char CPB0OP : 1; | |
unsigned char : 2; | |
unsigned char CPB1OE : 1; | |
unsigned char CPB1OP : 1; | |
unsigned char : 2; | |
#else | |
unsigned char : 2; | |
unsigned char CPB1OP : 1; | |
unsigned char CPB1OE : 1; | |
unsigned char : 2; | |
unsigned char CPB0OP : 1; | |
unsigned char CPB0OE : 1; | |
#endif | |
} BIT; | |
} CPBOCR; | |
}; | |
struct st_cmt { | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short STR0 : 1; | |
unsigned short STR1 : 1; | |
unsigned short : 14; | |
#else | |
unsigned short : 14; | |
unsigned short STR1 : 1; | |
unsigned short STR0 : 1; | |
#endif | |
} BIT; | |
} CMSTR0; | |
char wk0[14]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short STR2 : 1; | |
unsigned short STR3 : 1; | |
unsigned short : 14; | |
#else | |
unsigned short : 14; | |
unsigned short STR3 : 1; | |
unsigned short STR2 : 1; | |
#endif | |
} BIT; | |
} CMSTR1; | |
}; | |
struct st_cmt0 { | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short CKS : 2; | |
unsigned short : 4; | |
unsigned short CMIE : 1; | |
unsigned short : 9; | |
#else | |
unsigned short : 9; | |
unsigned short CMIE : 1; | |
unsigned short : 4; | |
unsigned short CKS : 2; | |
#endif | |
} BIT; | |
} CMCR; | |
unsigned short CMCNT; | |
unsigned short CMCOR; | |
}; | |
struct st_crc { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char GPS : 2; | |
unsigned char LMS : 1; | |
unsigned char : 4; | |
unsigned char DORCLR : 1; | |
#else | |
unsigned char DORCLR : 1; | |
unsigned char : 4; | |
unsigned char LMS : 1; | |
unsigned char GPS : 2; | |
#endif | |
} BIT; | |
} CRCCR; | |
unsigned char CRCDIR; | |
unsigned short CRCDOR; | |
}; | |
struct st_ctsu { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUSTRT : 1; | |
unsigned char CTSUCAP : 1; | |
unsigned char CTSUSNZ : 1; | |
unsigned char : 1; | |
unsigned char CTSUINIT : 1; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char CTSUINIT : 1; | |
unsigned char : 1; | |
unsigned char CTSUSNZ : 1; | |
unsigned char CTSUCAP : 1; | |
unsigned char CTSUSTRT : 1; | |
#endif | |
} BIT; | |
} CTSUCR0; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUPON : 1; | |
unsigned char CTSUCSW : 1; | |
unsigned char CTSUATUNE0 : 1; | |
unsigned char CTSUATUNE1 : 1; | |
unsigned char CTSUCLK : 2; | |
unsigned char CTSUMD : 2; | |
#else | |
unsigned char CTSUMD : 2; | |
unsigned char CTSUCLK : 2; | |
unsigned char CTSUATUNE1 : 1; | |
unsigned char CTSUATUNE0 : 1; | |
unsigned char CTSUCSW : 1; | |
unsigned char CTSUPON : 1; | |
#endif | |
} BIT; | |
} CTSUCR1; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUPRRATIO : 4; | |
unsigned char CTSUPRMODE : 2; | |
unsigned char CTSUSOFF : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char CTSUSOFF : 1; | |
unsigned char CTSUPRMODE : 2; | |
unsigned char CTSUPRRATIO : 4; | |
#endif | |
} BIT; | |
} CTSUSDPRS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUSST : 8; | |
#else | |
unsigned char CTSUSST : 8; | |
#endif | |
} BIT; | |
} CTSUSST; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUMCH0 : 4; | |
unsigned char : 4; | |
#else | |
unsigned char : 4; | |
unsigned char CTSUMCH0 : 4; | |
#endif | |
} BIT; | |
} CTSUMCH0; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUMCH1 : 4; | |
unsigned char : 4; | |
#else | |
unsigned char : 4; | |
unsigned char CTSUMCH1 : 4; | |
#endif | |
} BIT; | |
} CTSUMCH1; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUCHAC00 : 1; | |
unsigned char CTSUCHAC01 : 1; | |
unsigned char CTSUCHAC02 : 1; | |
unsigned char CTSUCHAC03 : 1; | |
unsigned char CTSUCHAC04 : 1; | |
unsigned char CTSUCHAC05 : 1; | |
unsigned char CTSUCHAC06 : 1; | |
unsigned char CTSUCHAC07 : 1; | |
#else | |
unsigned char CTSUCHAC07 : 1; | |
unsigned char CTSUCHAC06 : 1; | |
unsigned char CTSUCHAC05 : 1; | |
unsigned char CTSUCHAC04 : 1; | |
unsigned char CTSUCHAC03 : 1; | |
unsigned char CTSUCHAC02 : 1; | |
unsigned char CTSUCHAC01 : 1; | |
unsigned char CTSUCHAC00 : 1; | |
#endif | |
} BIT; | |
} CTSUCHAC0; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUCHAC10 : 1; | |
unsigned char CTSUCHAC11 : 1; | |
unsigned char CTSUCHAC12 : 1; | |
unsigned char CTSUCHAC13 : 1; | |
unsigned char : 4; | |
#else | |
unsigned char : 4; | |
unsigned char CTSUCHAC13 : 1; | |
unsigned char CTSUCHAC12 : 1; | |
unsigned char CTSUCHAC11 : 1; | |
unsigned char CTSUCHAC10 : 1; | |
#endif | |
} BIT; | |
} CTSUCHAC1; | |
char wk0[3]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUCHTRC00 : 1; | |
unsigned char CTSUCHTRC01 : 1; | |
unsigned char CTSUCHTRC02 : 1; | |
unsigned char CTSUCHTRC03 : 1; | |
unsigned char CTSUCHTRC04 : 1; | |
unsigned char CTSUCHTRC05 : 1; | |
unsigned char CTSUCHTRC06 : 1; | |
unsigned char CTSUCHTRC07 : 1; | |
#else | |
unsigned char CTSUCHTRC07 : 1; | |
unsigned char CTSUCHTRC06 : 1; | |
unsigned char CTSUCHTRC05 : 1; | |
unsigned char CTSUCHTRC04 : 1; | |
unsigned char CTSUCHTRC03 : 1; | |
unsigned char CTSUCHTRC02 : 1; | |
unsigned char CTSUCHTRC01 : 1; | |
unsigned char CTSUCHTRC00 : 1; | |
#endif | |
} BIT; | |
} CTSUCHTRC0; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUCHTRC10 : 1; | |
unsigned char CTSUCHTRC11 : 1; | |
unsigned char CTSUCHTRC12 : 1; | |
unsigned char CTSUCHTRC13 : 1; | |
unsigned char : 4; | |
#else | |
unsigned char : 4; | |
unsigned char CTSUCHTRC13 : 1; | |
unsigned char CTSUCHTRC12 : 1; | |
unsigned char CTSUCHTRC11 : 1; | |
unsigned char CTSUCHTRC10 : 1; | |
#endif | |
} BIT; | |
} CTSUCHTRC1; | |
char wk1[3]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUSSMOD : 2; | |
unsigned char : 2; | |
unsigned char CTSUSSCNT : 2; | |
unsigned char : 2; | |
#else | |
unsigned char : 2; | |
unsigned char CTSUSSCNT : 2; | |
unsigned char : 2; | |
unsigned char CTSUSSMOD : 2; | |
#endif | |
} BIT; | |
} CTSUDCLKC; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CTSUSTC : 3; | |
unsigned char : 1; | |
unsigned char CTSUDTSR : 1; | |
unsigned char CTSUSOVF : 1; | |
unsigned char CTSUROVF : 1; | |
unsigned char CTSUPS : 1; | |
#else | |
unsigned char CTSUPS : 1; | |
unsigned char CTSUROVF : 1; | |
unsigned char CTSUSOVF : 1; | |
unsigned char CTSUDTSR : 1; | |
unsigned char : 1; | |
unsigned char CTSUSTC : 3; | |
#endif | |
} BIT; | |
} CTSUST; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short : 8; | |
unsigned short CTSUSSDIV : 4; | |
unsigned short : 4; | |
#else | |
unsigned short : 4; | |
unsigned short CTSUSSDIV : 4; | |
unsigned short : 8; | |
#endif | |
} BIT; | |
} CTSUSSC; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short CTSUSO : 10; | |
unsigned short CTSUSNUM : 6; | |
#else | |
unsigned short CTSUSNUM : 6; | |
unsigned short CTSUSO : 10; | |
#endif | |
} BIT; | |
} CTSUSO0; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short CTSURICOA : 8; | |
unsigned short CTSUSDPA : 5; | |
unsigned short CTSUICOG : 2; | |
unsigned short : 1; | |
#else | |
unsigned short : 1; | |
unsigned short CTSUICOG : 2; | |
unsigned short CTSUSDPA : 5; | |
unsigned short CTSURICOA : 8; | |
#endif | |
} BIT; | |
} CTSUSO1; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short CTSUSC : 16; | |
#else | |
unsigned short CTSUSC : 16; | |
#endif | |
} BIT; | |
} CTSUSC; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short CTSURC : 16; | |
#else | |
unsigned short CTSURC : 16; | |
#endif | |
} BIT; | |
} CTSURC; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short : 15; | |
unsigned short CTSUICOMP : 1; | |
#else | |
unsigned short CTSUICOMP : 1; | |
unsigned short : 15; | |
#endif | |
} BIT; | |
} CTSUERRS; | |
}; | |
struct st_da { | |
unsigned short DADR0; | |
unsigned short DADR1; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 6; | |
unsigned char DAOE0 : 1; | |
unsigned char DAOE1 : 1; | |
#else | |
unsigned char DAOE1 : 1; | |
unsigned char DAOE0 : 1; | |
unsigned char : 6; | |
#endif | |
} BIT; | |
} DACR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char DPSEL : 1; | |
#else | |
unsigned char DPSEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} DADPR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char DAADST : 1; | |
#else | |
unsigned char DAADST : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} DAADSCR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char REF : 3; | |
unsigned char : 5; | |
#else | |
unsigned char : 5; | |
unsigned char REF : 3; | |
#endif | |
} BIT; | |
} DAVREFCR; | |
}; | |
struct st_doc { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char OMS : 2; | |
unsigned char DCSEL : 1; | |
unsigned char : 1; | |
unsigned char DOPCIE : 1; | |
unsigned char DOPCF : 1; | |
unsigned char DOPCFCL : 1; | |
unsigned char : 1; | |
#else | |
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; | |
#endif | |
} BIT; | |
} DOCR; | |
char wk0[1]; | |
unsigned short DODIR; | |
unsigned short DODSR; | |
}; | |
struct st_dtc { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 4; | |
unsigned char RRS : 1; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char RRS : 1; | |
unsigned char : 4; | |
#endif | |
} BIT; | |
} DTCCR; | |
char wk0[3]; | |
void *DTCVBR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char SHORT : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char SHORT : 1; | |
#endif | |
} BIT; | |
} DTCADMOD; | |
char wk1[3]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char DTCST : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char DTCST : 1; | |
#endif | |
} BIT; | |
} DTCST; | |
char wk2[1]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short VECN : 8; | |
unsigned short : 7; | |
unsigned short ACT : 1; | |
#else | |
unsigned short ACT : 1; | |
unsigned short : 7; | |
unsigned short VECN : 8; | |
#endif | |
} BIT; | |
} DTCSTS; | |
}; | |
struct st_elc { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ELCON : 1; | |
#else | |
unsigned char ELCON : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} ELCR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char ELS : 8; | |
#else | |
unsigned char ELS : 8; | |
#endif | |
} BIT; | |
} ELSR[26]; | |
char wk0[4]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 2; | |
unsigned char MTU1MD : 2; | |
unsigned char MTU2MD : 2; | |
unsigned char MTU3MD : 2; | |
#else | |
unsigned char MTU3MD : 2; | |
unsigned char MTU2MD : 2; | |
unsigned char MTU1MD : 2; | |
unsigned char : 2; | |
#endif | |
} BIT; | |
} ELOPA; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char MTU4MD : 2; | |
unsigned char : 6; | |
#else | |
unsigned char : 6; | |
unsigned char MTU4MD : 2; | |
#endif | |
} BIT; | |
} ELOPB; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 2; | |
unsigned char CMT1MD : 2; | |
unsigned char : 4; | |
#else | |
unsigned char : 4; | |
unsigned char CMT1MD : 2; | |
unsigned char : 2; | |
#endif | |
} BIT; | |
} ELOPC; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char TMR0MD : 2; | |
unsigned char : 2; | |
unsigned char TMR2MD : 2; | |
unsigned char : 2; | |
#else | |
unsigned char : 2; | |
unsigned char TMR2MD : 2; | |
unsigned char : 2; | |
unsigned char TMR0MD : 2; | |
#endif | |
} BIT; | |
} ELOPD; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PGR0 : 1; | |
unsigned char PGR1 : 1; | |
unsigned char PGR2 : 1; | |
unsigned char PGR3 : 1; | |
unsigned char PGR4 : 1; | |
unsigned char PGR5 : 1; | |
unsigned char PGR6 : 1; | |
unsigned char PGR7 : 1; | |
#else | |
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; | |
#endif | |
} BIT; | |
} PGR1; | |
char wk1[1]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PGCI : 2; | |
unsigned char PGCOVE : 1; | |
unsigned char : 1; | |
unsigned char PGCO : 3; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char PGCO : 3; | |
unsigned char : 1; | |
unsigned char PGCOVE : 1; | |
unsigned char PGCI : 2; | |
#endif | |
} BIT; | |
} PGC1; | |
char wk2[1]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PDBF0 : 1; | |
unsigned char PDBF1 : 1; | |
unsigned char PDBF2 : 1; | |
unsigned char PDBF3 : 1; | |
unsigned char PDBF4 : 1; | |
unsigned char PDBF5 : 1; | |
unsigned char PDBF6 : 1; | |
unsigned char PDBF7 : 1; | |
#else | |
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; | |
#endif | |
} BIT; | |
} PDBF1; | |
char wk3[1]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSB : 3; | |
unsigned char PSP : 2; | |
unsigned char PSM : 2; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char PSM : 2; | |
unsigned char PSP : 2; | |
unsigned char PSB : 3; | |
#endif | |
} BIT; | |
} PEL0; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSB : 3; | |
unsigned char PSP : 2; | |
unsigned char PSM : 2; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char PSM : 2; | |
unsigned char PSP : 2; | |
unsigned char PSB : 3; | |
#endif | |
} BIT; | |
} PEL1; | |
char wk4[2]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char SEG : 1; | |
unsigned char : 5; | |
unsigned char WE : 1; | |
unsigned char WI : 1; | |
#else | |
unsigned char WI : 1; | |
unsigned char WE : 1; | |
unsigned char : 5; | |
unsigned char SEG : 1; | |
#endif | |
} BIT; | |
} ELSEGR; | |
}; | |
struct st_flash { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char DFLEN : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char DFLEN : 1; | |
#endif | |
} BIT; | |
} DFLCTL; | |
char wk0[31]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short : 8; | |
unsigned short SASMF : 1; | |
unsigned short : 7; | |
#else | |
unsigned short : 7; | |
unsigned short SASMF : 1; | |
unsigned short : 8; | |
#endif | |
} BIT; | |
} FSCMR; | |
unsigned short FAWSMR; | |
unsigned short FAWEMR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PCKA : 5; | |
unsigned char : 1; | |
unsigned char SAS : 2; | |
#else | |
unsigned char SAS : 2; | |
unsigned char : 1; | |
unsigned char PCKA : 5; | |
#endif | |
} BIT; | |
} FISR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CMD : 3; | |
unsigned char : 4; | |
unsigned char OPST : 1; | |
#else | |
unsigned char OPST : 1; | |
unsigned char : 4; | |
unsigned char CMD : 3; | |
#endif | |
} BIT; | |
} FEXCR; | |
unsigned short FEAML; | |
// char wk1[1]; | |
unsigned char FEAMH; | |
char wk2[5]; | |
unsigned char FPR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PERR : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char PERR : 1; | |
#endif | |
} BIT; | |
} FPSR; | |
unsigned short FRBL; | |
unsigned short FRBH; | |
char wk3[16058]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 1; | |
unsigned char FMS0 : 1; | |
unsigned char : 1; | |
unsigned char RPDIS : 1; | |
unsigned char FMS1 : 1; | |
unsigned char : 1; | |
unsigned char LVPE : 1; | |
unsigned char FMS2 : 1; | |
#else | |
unsigned char FMS2 : 1; | |
unsigned char LVPE : 1; | |
unsigned char : 1; | |
unsigned char FMS1 : 1; | |
unsigned char RPDIS : 1; | |
unsigned char : 1; | |
unsigned char FMS0 : 1; | |
unsigned char : 1; | |
#endif | |
} BIT; | |
} FPMCR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char EXS : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char EXS : 1; | |
#endif | |
} BIT; | |
} FASR; | |
unsigned short FSARL; | |
// char wk4[1]; | |
unsigned char FSARH; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char CMD : 4; | |
unsigned char DRC : 1; | |
unsigned char : 1; | |
unsigned char STOP : 1; | |
unsigned char OPST : 1; | |
#else | |
unsigned char OPST : 1; | |
unsigned char STOP : 1; | |
unsigned char : 1; | |
unsigned char DRC : 1; | |
unsigned char CMD : 4; | |
#endif | |
} BIT; | |
} FCR; | |
unsigned short FEARL; | |
unsigned char FEARH; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char FRESET : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char FRESET : 1; | |
#endif | |
} BIT; | |
} FRESETR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char ERERR : 1; | |
unsigned char PRGERR : 1; | |
unsigned char : 1; | |
unsigned char BCERR : 1; | |
unsigned char ILGLERR : 1; | |
unsigned char EILGLERR : 1; | |
unsigned char : 2; | |
#else | |
unsigned char : 2; | |
unsigned char EILGLERR : 1; | |
unsigned char ILGLERR : 1; | |
unsigned char BCERR : 1; | |
unsigned char : 1; | |
unsigned char PRGERR : 1; | |
unsigned char ERERR : 1; | |
#endif | |
} BIT; | |
} FSTATR0; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 1; | |
unsigned char DRRDY : 1; | |
unsigned char : 4; | |
unsigned char FRDY : 1; | |
unsigned char EXRDY : 1; | |
#else | |
unsigned char EXRDY : 1; | |
unsigned char FRDY : 1; | |
unsigned char : 4; | |
unsigned char DRRDY : 1; | |
unsigned char : 1; | |
#endif | |
} BIT; | |
} FSTATR1; | |
unsigned short FWBL; | |
unsigned short FWBH; | |
char wk5[34]; | |
union { | |
unsigned short WORD; | |
// struct { | |
// unsigned short FEKEY:8; | |
// unsigned short FENTRYD:1; | |
// unsigned short :6; | |
// unsigned short FENTRY0:1; | |
// } BIT; | |
} FENTRYR; | |
}; | |
struct st_icu { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char IR : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char IR : 1; | |
#endif | |
} BIT; | |
} IR[250]; | |
char wk0[6]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char DTCE : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char DTCE : 1; | |
#endif | |
} BIT; | |
} DTCER[249]; | |
char wk1[7]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char IEN0 : 1; | |
unsigned char IEN1 : 1; | |
unsigned char IEN2 : 1; | |
unsigned char IEN3 : 1; | |
unsigned char IEN4 : 1; | |
unsigned char IEN5 : 1; | |
unsigned char IEN6 : 1; | |
unsigned char IEN7 : 1; | |
#else | |
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; | |
#endif | |
} BIT; | |
} IER[32]; | |
char wk2[192]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char SWINT : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char SWINT : 1; | |
#endif | |
} BIT; | |
} SWINTR; | |
char wk3[15]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short FVCT : 8; | |
unsigned short : 7; | |
unsigned short FIEN : 1; | |
#else | |
unsigned short FIEN : 1; | |
unsigned short : 7; | |
unsigned short FVCT : 8; | |
#endif | |
} BIT; | |
} FIR; | |
char wk4[14]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char IPR : 4; | |
unsigned char : 4; | |
#else | |
unsigned char : 4; | |
unsigned char IPR : 4; | |
#endif | |
} BIT; | |
} IPR[250]; | |
char wk5[262]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 2; | |
unsigned char IRQMD : 2; | |
unsigned char : 4; | |
#else | |
unsigned char : 4; | |
unsigned char IRQMD : 2; | |
unsigned char : 2; | |
#endif | |
} BIT; | |
} IRQCR[8]; | |
char wk6[8]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char FLTEN0 : 1; | |
unsigned char FLTEN1 : 1; | |
unsigned char FLTEN2 : 1; | |
unsigned char FLTEN3 : 1; | |
unsigned char FLTEN4 : 1; | |
unsigned char FLTEN5 : 1; | |
unsigned char FLTEN6 : 1; | |
unsigned char FLTEN7 : 1; | |
#else | |
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; | |
#endif | |
} BIT; | |
} IRQFLTE0; | |
char wk7[3]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short FCLKSEL0 : 2; | |
unsigned short FCLKSEL1 : 2; | |
unsigned short FCLKSEL2 : 2; | |
unsigned short FCLKSEL3 : 2; | |
unsigned short FCLKSEL4 : 2; | |
unsigned short FCLKSEL5 : 2; | |
unsigned short FCLKSEL6 : 2; | |
unsigned short FCLKSEL7 : 2; | |
#else | |
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; | |
#endif | |
} BIT; | |
} IRQFLTC0; | |
char wk8[106]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char NMIST : 1; | |
unsigned char OSTST : 1; | |
unsigned char : 1; | |
unsigned char IWDTST : 1; | |
unsigned char LVD1ST : 1; | |
unsigned char LVD2ST : 1; | |
unsigned char : 2; | |
#else | |
unsigned char : 2; | |
unsigned char LVD2ST : 1; | |
unsigned char LVD1ST : 1; | |
unsigned char IWDTST : 1; | |
unsigned char : 1; | |
unsigned char OSTST : 1; | |
unsigned char NMIST : 1; | |
#endif | |
} BIT; | |
} NMISR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char NMIEN : 1; | |
unsigned char OSTEN : 1; | |
unsigned char : 1; | |
unsigned char IWDTEN : 1; | |
unsigned char LVD1EN : 1; | |
unsigned char LVD2EN : 1; | |
unsigned char : 2; | |
#else | |
unsigned char : 2; | |
unsigned char LVD2EN : 1; | |
unsigned char LVD1EN : 1; | |
unsigned char IWDTEN : 1; | |
unsigned char : 1; | |
unsigned char OSTEN : 1; | |
unsigned char NMIEN : 1; | |
#endif | |
} BIT; | |
} NMIER; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char NMICLR : 1; | |
unsigned char OSTCLR : 1; | |
unsigned char : 1; | |
unsigned char IWDTCLR : 1; | |
unsigned char LVD1CLR : 1; | |
unsigned char LVD2CLR : 1; | |
unsigned char : 2; | |
#else | |
unsigned char : 2; | |
unsigned char LVD2CLR : 1; | |
unsigned char LVD1CLR : 1; | |
unsigned char IWDTCLR : 1; | |
unsigned char : 1; | |
unsigned char OSTCLR : 1; | |
unsigned char NMICLR : 1; | |
#endif | |
} BIT; | |
} NMICLR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 3; | |
unsigned char NMIMD : 1; | |
unsigned char : 4; | |
#else | |
unsigned char : 4; | |
unsigned char NMIMD : 1; | |
unsigned char : 3; | |
#endif | |
} BIT; | |
} NMICR; | |
char wk9[12]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char NFLTEN : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char NFLTEN : 1; | |
#endif | |
} BIT; | |
} NMIFLTE; | |
char wk10[3]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char NFCLKSEL : 2; | |
unsigned char : 6; | |
#else | |
unsigned char : 6; | |
unsigned char NFCLKSEL : 2; | |
#endif | |
} BIT; | |
} NMIFLTC; | |
}; | |
struct st_irda { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 2; | |
unsigned char IRRXINV : 1; | |
unsigned char IRTXINV : 1; | |
unsigned char IRCKS : 3; | |
unsigned char IRE : 1; | |
#else | |
unsigned char IRE : 1; | |
unsigned char IRCKS : 3; | |
unsigned char IRTXINV : 1; | |
unsigned char IRRXINV : 1; | |
unsigned char : 2; | |
#endif | |
} BIT; | |
} IRCR; | |
}; | |
struct st_iwdt { | |
unsigned char IWDTRR; | |
char wk0[1]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short TOPS : 2; | |
unsigned short : 2; | |
unsigned short CKS : 4; | |
unsigned short RPES : 2; | |
unsigned short : 2; | |
unsigned short RPSS : 2; | |
unsigned short : 2; | |
#else | |
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; | |
#endif | |
} BIT; | |
} IWDTCR; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short CNTVAL : 14; | |
unsigned short UNDFF : 1; | |
unsigned short REFEF : 1; | |
#else | |
unsigned short REFEF : 1; | |
unsigned short UNDFF : 1; | |
unsigned short CNTVAL : 14; | |
#endif | |
} BIT; | |
} IWDTSR; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char RSTIRQS : 1; | |
#else | |
unsigned char RSTIRQS : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} IWDTRCR; | |
char wk1[1]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char SLCSTP : 1; | |
#else | |
unsigned char SLCSTP : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} IWDTCSTPR; | |
}; | |
struct st_lcdc { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char LBAS : 2; | |
unsigned char LDTY : 3; | |
unsigned char LWAVE : 1; | |
unsigned char MDSET : 2; | |
#else | |
unsigned char MDSET : 2; | |
unsigned char LWAVE : 1; | |
unsigned char LDTY : 3; | |
unsigned char LBAS : 2; | |
#endif | |
} BIT; | |
} LCDM0; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char LCDVLM : 1; | |
unsigned char : 2; | |
unsigned char LCDSEL : 1; | |
unsigned char BLON : 1; | |
unsigned char VLCON : 1; | |
unsigned char SCOC : 1; | |
unsigned char LCDON : 1; | |
#else | |
unsigned char LCDON : 1; | |
unsigned char SCOC : 1; | |
unsigned char VLCON : 1; | |
unsigned char BLON : 1; | |
unsigned char LCDSEL : 1; | |
unsigned char : 2; | |
unsigned char LCDVLM : 1; | |
#endif | |
} BIT; | |
} LCDM1; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char LCDC0 : 6; | |
unsigned char : 2; | |
#else | |
unsigned char : 2; | |
unsigned char LCDC0 : 6; | |
#endif | |
} BIT; | |
} LCDC0; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char VLCD : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char VLCD : 5; | |
#endif | |
} BIT; | |
} VLCD; | |
char wk0[60]; | |
unsigned char SEG00; | |
unsigned char SEG01; | |
unsigned char SEG02; | |
unsigned char SEG03; | |
unsigned char SEG04; | |
unsigned char SEG05; | |
unsigned char SEG06; | |
unsigned char SEG07; | |
unsigned char SEG08; | |
unsigned char SEG09; | |
unsigned char SEG10; | |
unsigned char SEG11; | |
unsigned char SEG12; | |
unsigned char SEG13; | |
unsigned char SEG14; | |
unsigned char SEG15; | |
unsigned char SEG16; | |
unsigned char SEG17; | |
unsigned char SEG18; | |
unsigned char SEG19; | |
unsigned char SEG20; | |
unsigned char SEG21; | |
unsigned char SEG22; | |
unsigned char SEG23; | |
unsigned char SEG24; | |
unsigned char SEG25; | |
unsigned char SEG26; | |
unsigned char SEG27; | |
unsigned char SEG28; | |
unsigned char SEG29; | |
unsigned char SEG30; | |
unsigned char SEG31; | |
unsigned char SEG32; | |
unsigned char SEG33; | |
unsigned char SEG34; | |
unsigned char SEG35; | |
unsigned char SEG36; | |
unsigned char SEG37; | |
unsigned char SEG38; | |
unsigned char SEG39; | |
}; | |
struct st_lpt { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char LPCNTPSSEL : 3; | |
unsigned char : 1; | |
unsigned char LPCNTCKSEL : 1; | |
unsigned char : 1; | |
unsigned char LPCMRE0 : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char LPCMRE0 : 1; | |
unsigned char : 1; | |
unsigned char LPCNTCKSEL : 1; | |
unsigned char : 1; | |
unsigned char LPCNTPSSEL : 3; | |
#endif | |
} BIT; | |
} LPTCR1; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char LPCNTSTP : 1; | |
unsigned char : 7; | |
#else | |
unsigned char : 7; | |
unsigned char LPCNTSTP : 1; | |
#endif | |
} BIT; | |
} LPTCR2; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char LPCNTEN : 1; | |
unsigned char LPCNTRST : 1; | |
unsigned char : 6; | |
#else | |
unsigned char : 6; | |
unsigned char LPCNTRST : 1; | |
unsigned char LPCNTEN : 1; | |
#endif | |
} BIT; | |
} LPTCR3; | |
char wk0[1]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short LPCNTPRD : 16; | |
#else | |
unsigned short LPCNTPRD : 16; | |
#endif | |
} BIT; | |
} LPTPRD; | |
char wk1[2]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short LPCMR0 : 16; | |
#else | |
unsigned short LPCMR0 : 16; | |
#endif | |
} BIT; | |
} LPCMR0; | |
char wk2[2]; | |
union { | |
unsigned short WORD; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned short : 15; | |
unsigned short LPWKUPEN : 1; | |
#else | |
unsigned short LPWKUPEN : 1; | |
unsigned short : 15; | |
#endif | |
} BIT; | |
} LPWUCR; | |
}; | |
struct st_mpc { | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 6; | |
unsigned char PFSWE : 1; | |
unsigned char B0WI : 1; | |
#else | |
unsigned char B0WI : 1; | |
unsigned char PFSWE : 1; | |
unsigned char : 6; | |
#endif | |
} BIT; | |
} PWPR; | |
char wk0[34]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P02PFS; | |
char wk1[1]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P04PFS; | |
char wk2[2]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P07PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P10PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P11PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P12PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P13PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P14PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P15PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P16PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P17PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P20PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P21PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P22PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P23PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P24PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P25PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P26PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P27PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P30PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P31PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P32PFS; | |
char wk3[2]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 6; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 6; | |
#endif | |
} BIT; | |
} P35PFS; | |
char wk4[2]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} P40PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} P41PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} P42PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} P43PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} P44PFS; | |
char wk5[1]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} P46PFS; | |
char wk6[1]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P50PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P51PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P52PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P53PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P54PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P55PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} P56PFS; | |
char wk7[25]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} P90PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} P91PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char : 7; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char : 7; | |
#endif | |
} BIT; | |
} P92PFS; | |
char wk8[5]; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PA0PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PA1PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PA2PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PA3PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char ASEL : 1; | |
#else | |
unsigned char ASEL : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PA4PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PA5PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PA6PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PA7PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PB0PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PB1PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PB2PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PB3PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PB4PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PB5PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PB6PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PB7PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PC0PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PC1PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PC2PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PC3PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
#else | |
unsigned char : 1; | |
unsigned char ISEL : 1; | |
unsigned char : 1; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PC4PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PC5PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |
#ifdef __RX_LITTLE_ENDIAN__ | |
unsigned char PSEL : 5; | |
unsigned char : 3; | |
#else | |
unsigned char : 3; | |
unsigned char PSEL : 5; | |
#endif | |
} BIT; | |
} PC6PFS; | |
union { | |
unsigned char BYTE; | |
struct { | |