📄 mb90420.h
字号:
#define SIDR0_D7 _sidr0.bit._D7
__IO_EXTERN __io SODR0STR _sodr0;
#define SODR0 _sodr0.byte
#define SODR0_D0 _sodr0.bit._D0
#define SODR0_D1 _sodr0.bit._D1
#define SODR0_D2 _sodr0.bit._D2
#define SODR0_D3 _sodr0.bit._D3
#define SODR0_D4 _sodr0.bit._D4
#define SODR0_D5 _sodr0.bit._D5
#define SODR0_D6 _sodr0.bit._D6
#define SODR0_D7 _sodr0.bit._D7
__IO_EXTERN __io SSR0STR _ssr0;
#define SSR0 _ssr0.byte
#define SSR0_TIE _ssr0.bit._TIE
#define SSR0_RIE _ssr0.bit._RIE
#define SSR0_BDS _ssr0.bit._BDS
#define SSR0_TDRE _ssr0.bit._TDRE
#define SSR0_RDRF _ssr0.bit._RDRF
#define SSR0_FRE _ssr0.bit._FRE
#define SSR0_ORE _ssr0.bit._ORE
#define SSR0_PE _ssr0.bit._PE
__IO_EXTERN __io SMR1STR _smr1; /* UART1 */
#define SMR1 _smr1.byte
#define SMR1_SOE _smr1.bit._SOE
#define SMR1_SCKE _smr1.bit._SCKE
#define SMR1_CS0 _smr1.bit._CS0
#define SMR1_CS1 _smr1.bit._CS1
#define SMR1_CS2 _smr1.bit._CS2
#define SMR1_MD0 _smr1.bit._MD0
#define SMR1_MD1 _smr1.bit._MD1
#define SMR1_CS _smr1.bitc._CS
#define SMR1_MD _smr1.bitc._MD
__IO_EXTERN __io SCR1STR _scr1;
#define SCR1 _scr1.byte
#define SCR1_TXE _scr1.bit._TXE
#define SCR1_RXE _scr1.bit._RXE
#define SCR1_REC _scr1.bit._REC
#define SCR1_AD _scr1.bit._AD
#define SCR1_CL _scr1.bit._CL
#define SCR1_SBL _scr1.bit._SBL
#define SCR1_P _scr1.bit._P
#define SCR1_PEN _scr1.bit._PEN
__IO_EXTERN __io SIDR1STR _sidr1;
#define SIDR1 _sidr1.byte
#define SIDR1_D0 _sidr1.bit._D0
#define SIDR1_D1 _sidr1.bit._D1
#define SIDR1_D2 _sidr1.bit._D2
#define SIDR1_D3 _sidr1.bit._D3
#define SIDR1_D4 _sidr1.bit._D4
#define SIDR1_D5 _sidr1.bit._D5
#define SIDR1_D6 _sidr1.bit._D6
#define SIDR1_D7 _sidr1.bit._D7
__IO_EXTERN __io SODR1STR _sodr1;
#define SODR1 _sodr1.byte
#define SODR1_D0 _sodr1.bit._D0
#define SODR1_D1 _sodr1.bit._D1
#define SODR1_D2 _sodr1.bit._D2
#define SODR1_D3 _sodr1.bit._D3
#define SODR1_D4 _sodr1.bit._D4
#define SODR1_D5 _sodr1.bit._D5
#define SODR1_D6 _sodr1.bit._D6
#define SODR1_D7 _sodr1.bit._D7
__IO_EXTERN __io SSR1STR _ssr1;
#define SSR1 _ssr1.byte
#define SSR1_TIE _ssr1.bit._TIE
#define SSR1_RIE _ssr1.bit._RIE
#define SSR1_BDS _ssr1.bit._BDS
#define SSR1_TDRE _ssr1.bit._TDRE
#define SSR1_RDRF _ssr1.bit._RDRF
#define SSR1_FRE _ssr1.bit._FRE
#define SSR1_ORE _ssr1.bit._ORE
#define SSR1_PE _ssr1.bit._PE
__IO_EXTERN __io CDCR0STR _cdcr0; /* */
#define CDCR0 _cdcr0.byte
#define CDCR0_DIV0 _cdcr0.bit._DIV0
#define CDCR0_DIV1 _cdcr0.bit._DIV1
#define CDCR0_DIV2 _cdcr0.bit._DIV2
#define CDCR0_DIV3 _cdcr0.bit._DIV3
#define CDCR0_MD _cdcr0.bit._MD
#define CDCR0_DIV _cdcr0.bitc._DIV
__IO_EXTERN __io IO_BYTE _cwucr;
#define CWUCR _cwucr
__IO_EXTERN __io CDCR1STR _cdcr1;
#define CDCR1 _cdcr1.byte
#define CDCR1_DIV0 _cdcr1.bit._DIV0
#define CDCR1_DIV1 _cdcr1.bit._DIV1
#define CDCR1_DIV2 _cdcr1.bit._DIV2
#define CDCR1_DIV3 _cdcr1.bit._DIV3
#define CDCR1_MD _cdcr1.bit._MD
#define CDCR1_DIV _cdcr1.bitc._DIV
/*
* CANIO: control structures of CAN for LX-controllers
*
* Version: 1.0 23.01.99 HL
* - original version
* Version: 2.0 26.02.99 HL
* - unsigned int replace by IO_WORD (FR/LX have diff int)
* - unsigned char replace by IO_BYTE
*/
#ifndef __CANSTR
#define __CANSTR
typedef struct
{
union{
IO_WORD word;
struct{
IO_WORD BVAL0 :1;
IO_WORD BVAL1 :1;
IO_WORD BVAL2 :1;
IO_WORD BVAL3 :1;
IO_WORD BVAL4 :1;
IO_WORD BVAL5 :1;
IO_WORD BVAL6 :1;
IO_WORD BVAL7 :1;
IO_WORD BVAL8 :1;
IO_WORD BVAL9 :1;
IO_WORD BVAL10 :1;
IO_WORD BVAL11 :1;
IO_WORD BVAL12 :1;
IO_WORD BVAL13 :1;
IO_WORD BVAL14 :1;
IO_WORD BVAL15 :1;
} bit;
} bvalr;
union{
IO_WORD word;
struct{
IO_WORD TREQ0 :1;
IO_WORD TREQ1 :1;
IO_WORD TREQ2 :1;
IO_WORD TREQ3 :1;
IO_WORD TREQ4 :1;
IO_WORD TREQ5 :1;
IO_WORD TREQ6 :1;
IO_WORD TREQ7 :1;
IO_WORD TREQ8 :1;
IO_WORD TREQ9 :1;
IO_WORD TREQ10 :1;
IO_WORD TREQ11 :1;
IO_WORD TREQ12 :1;
IO_WORD TREQ13 :1;
IO_WORD TREQ14 :1;
IO_WORD TREQ15 :1;
} bit;
} treqr;
union{
IO_WORD word;
struct{
IO_WORD TCAN0 :1;
IO_WORD TCAN1 :1;
IO_WORD TCAN2 :1;
IO_WORD TCAN3 :1;
IO_WORD TCAN4 :1;
IO_WORD TCAN5 :1;
IO_WORD TCAN6 :1;
IO_WORD TCAN7 :1;
IO_WORD TCAN8 :1;
IO_WORD TCAN9 :1;
IO_WORD TCAN10 :1;
IO_WORD TCAN11 :1;
IO_WORD TCAN12 :1;
IO_WORD TCAN13 :1;
IO_WORD TCAN14 :1;
IO_WORD TCAN15 :1;
} bit;
} tcanr;
union{
IO_WORD word;
struct{
IO_WORD TC0 :1;
IO_WORD TC1 :1;
IO_WORD TC2 :1;
IO_WORD TC3 :1;
IO_WORD TC4 :1;
IO_WORD TC5 :1;
IO_WORD TC6 :1;
IO_WORD TC7 :1;
IO_WORD TC8 :1;
IO_WORD TC9 :1;
IO_WORD TC10 :1;
IO_WORD TC11 :1;
IO_WORD TC12 :1;
IO_WORD TC13 :1;
IO_WORD TC14 :1;
IO_WORD TC15 :1;
} bit;
} tcr;
union{
IO_WORD word;
struct{
IO_WORD RC0 :1;
IO_WORD RC1 :1;
IO_WORD RC2 :1;
IO_WORD RC3 :1;
IO_WORD RC4 :1;
IO_WORD RC5 :1;
IO_WORD RC6 :1;
IO_WORD RC7 :1;
IO_WORD RC8 :1;
IO_WORD RC9 :1;
IO_WORD RC10 :1;
IO_WORD RC11 :1;
IO_WORD RC12 :1;
IO_WORD RC13 :1;
IO_WORD RC14 :1;
IO_WORD RC15 :1;
} bit;
} rcr;
union{
IO_WORD word;
struct{
IO_WORD RRTR0 :1;
IO_WORD RRTR1 :1;
IO_WORD RRTR2 :1;
IO_WORD RRTR3 :1;
IO_WORD RRTR4 :1;
IO_WORD RRTR5 :1;
IO_WORD RRTR6 :1;
IO_WORD RRTR7 :1;
IO_WORD RRTR8 :1;
IO_WORD RRTR9 :1;
IO_WORD RRTR10 :1;
IO_WORD RRTR11 :1;
IO_WORD RRTR12 :1;
IO_WORD RRTR13 :1;
IO_WORD RRTR14 :1;
IO_WORD RRTR15 :1;
} bit;
} rrtrr;
union{
IO_WORD word;
struct{
IO_WORD ROVR0 :1;
IO_WORD ROVR1 :1;
IO_WORD ROVR2 :1;
IO_WORD ROVR3 :1;
IO_WORD ROVR4 :1;
IO_WORD ROVR5 :1;
IO_WORD ROVR6 :1;
IO_WORD ROVR7 :1;
IO_WORD ROVR8 :1;
IO_WORD ROVR9 :1;
IO_WORD ROVR10 :1;
IO_WORD ROVR11 :1;
IO_WORD ROVR12 :1;
IO_WORD ROVR13 :1;
IO_WORD ROVR14 :1;
IO_WORD ROVR15 :1;
} bit;
} rovrr;
union{
IO_WORD word;
struct{
IO_WORD RIE0 :1;
IO_WORD RIE1 :1;
IO_WORD RIE2 :1;
IO_WORD RIE3 :1;
IO_WORD RIE4 :1;
IO_WORD RIE5 :1;
IO_WORD RIE6 :1;
IO_WORD RIE7 :1;
IO_WORD RIE8 :1;
IO_WORD RIE9 :1;
IO_WORD RIE10 :1;
IO_WORD RIE11 :1;
IO_WORD RIE12 :1;
IO_WORD RIE13 :1;
IO_WORD RIE14 :1;
IO_WORD RIE15 :1;
} bit;
} rier;
} CANLSTR;
typedef struct
{
union{
IO_WORD word;
struct{
IO_WORD HALT :1;
IO_WORD :1;
IO_WORD NIE :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD TOE :1;
IO_WORD NS0 :1;
IO_WORD NS1 :1;
IO_WORD NT :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD RS :1;
IO_WORD TS :1;
}bit;
struct{
IO_WORD :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD :1;
IO_WORD NS :2;
}bitc;
}csr;
union{
IO_WORD word;
IO_WORD byte;
struct{
IO_WORD MBP0 :1;
IO_WORD MBP1 :1;
IO_WORD MBP2 :1;
IO_WORD MBP3 :1;
IO_WORD :1;
IO_WORD RCE :1;
IO_WORD TCE :1;
IO_WORD NTE :1;
} bit;
struct{
IO_WORD MBP :4;
} bitc;
} leir;
union{
IO_WORD word;
struct{
IO_WORD REC0 :1;
IO_WORD REC1 :1;
IO_WORD REC2 :1;
IO_WORD REC3 :1;
IO_WORD REC4 :1;
IO_WORD REC5 :1;
IO_WORD REC6 :1;
IO_WORD REC7 :1;
IO_WORD TEC0 :1;
IO_WORD TEC1 :1;
IO_WORD TEC2 :1;
IO_WORD TEC3 :1;
IO_WORD TEC4 :1;
IO_WORD TEC5 :1;
IO_WORD TEC6 :1;
IO_WORD TEC7 :1;
}bit;
struct{
IO_WORD REC :8;
IO_WORD TEC :8;
}bitc;
}rtec;
union{
IO_WORD word;
struct{
IO_WORD PSC0 :1;
IO_WORD PSC1 :1;
IO_WORD PSC2 :1;
IO_WORD PSC3 :1;
IO_WORD PSC4 :1;
IO_WORD PSC5 :1;
IO_WORD RSJ0 :1;
IO_WORD RSJ1 :1;
IO_WORD TS10 :1;
IO_WORD TS11 :1;
IO_WORD TS12 :1;
IO_WORD TS13 :1;
IO_WORD TS20 :1;
IO_WORD TS21 :1;
IO_WORD TS22 :1;
IO_WORD :1;
} bit;
struct{
IO_WORD PSC :6;
IO_WORD RSJ :2;
IO_WORD TS1 :4;
IO_WORD TS2 :3;
} bitc;
} btr;
union{
IO_WORD word;
struct{
IO_WORD IDE0 :1;
IO_WORD IDE1 :1;
IO_WORD IDE2 :1;
IO_WORD IDE3 :1;
IO_WORD IDE4 :1;
IO_WORD IDE5 :1;
IO_WORD IDE6 :1;
IO_WORD IDE7 :1;
IO_WORD IDE8 :1;
IO_WORD IDE9 :1;
IO_WORD IDE10 :1;
IO_WORD IDE11 :1;
IO_WORD IDE12 :1;
IO_WORD IDE13 :1;
IO_WORD IDE14 :1;
IO_WORD IDE15 :1;
} bit;
} ider;
union{
IO_WORD word;
struct{
IO_WORD TRTR0 :1;
IO_WORD TRTR1 :1;
IO_WORD TRTR2 :1;
IO_WORD TRTR3 :1;
IO_WORD TRTR4 :1;
IO_WORD TRTR5 :1;
IO_WORD TRTR6 :1;
IO_WORD TRTR7 :1;
IO_WORD TRTR8 :1;
IO_WORD TRTR9 :1;
IO_WORD TRTR10 :1;
IO_WORD TRTR11 :1;
IO_WORD TRTR12 :1;
IO_WORD TRTR13 :1;
IO_WORD TRTR14 :1;
IO_WORD TRTR15 :1;
} bit;
} trtrr;
union{
IO_WORD word;
struct{
IO_WORD RFWT0 :1;
IO_WORD RFWT1 :1;
IO_WORD RFWT2 :1;
IO_WORD RFWT3 :1;
IO_WORD RFWT4 :1;
IO_WORD RFWT5 :1;
IO_WORD RFWT6 :1;
IO_WORD RFWT7 :1;
IO_WORD RFWT8 :1;
IO_WORD RFWT9 :1;
IO_WORD RFWT10 :1;
IO_WORD RFWT11 :1;
IO_WORD RFWT12 :1;
IO_WORD RFWT13 :1;
IO_WORD RFWT14 :1;
IO_WORD RFWT15 :1;
} bit;
} rfwtr;
union{
IO_WORD word;
struct{
IO_WORD TIE0 :1;
IO_WORD TIE1 :1;
IO_WORD TIE2 :1;
IO_WORD TIE3 :1;
IO_WORD TIE4 :1;
IO_WORD TIE5 :1;
IO_WORD TIE6 :1;
IO_WORD TIE7 :1;
IO_WORD TIE8 :1;
IO_WORD TIE9 :1;
IO_WORD TIE10 :1;
IO_WORD TIE11 :1;
IO_WORD TIE12 :1;
IO_WORD TIE13 :1;
IO_WORD TIE14 :1;
IO_WORD TIE15 :1;
} bit;
} tier;
union{
unsigned long dword;
struct{
IO_WORD AMS00:1;
IO_WORD AMS01:1;
IO_WORD AMS10:1;
IO_WORD AMS11:1;
IO_WORD AMS20:1;
IO_WORD AMS21:1;
IO_WORD AMS30:1;
IO_WORD AMS31:1;
IO_WORD AMS40:1;
IO_WORD AMS41:1;
IO_WORD AMS50:1;
IO_WORD AMS51:1;
IO_WORD AMS60:1;
IO_WORD AMS61:1;
IO_WORD AMS70:1;
IO_WORD AMS71:1;
IO_WORD AMS80:1;
IO_WORD AMS81:1;
IO_WORD AMS90:1;
IO_WORD AMS91:1;
IO_WORD AMS100:1;
IO_WORD AMS101:1;
IO_WORD AMS110:1;
IO_WORD AMS111:1;
IO_WORD AMS120:1;
IO_WORD AMS121:1;
IO_WORD AMS130:1;
IO_WORD AMS131:1;
IO_WORD AMS140:1;
IO_WORD AMS141:1;
IO_WORD AMS150:1;
IO_WORD AMS151:1;
}bit;
struct{
IO_WORD AMS0:2;
IO_WORD AMS1:2;
IO_WORD AMS2:2;
IO_WORD AMS3:2;
IO_WORD AMS4:2;
IO_WORD AMS5:2;
IO_WORD AMS6:2;
IO_WORD AMS7:2;
IO_WORD AMS8:2;
IO_WORD AMS9:2;
IO_WORD AMS10:2;
IO_WORD AMS11:2;
IO_WORD AMS12:2;
IO_WORD AMS13:2;
IO_WORD AMS14:2;
IO_WORD AMS15:2;
} bitc;
} amsr;
union {
unsigned long dword;
unsigned short word;
struct {
IO_WORD AM21 :1;
IO_WORD AM22 :1;
IO_WORD AM23 :1;
IO_WORD AM24 :1;
IO_WORD AM25 :1;
IO_WORD AM26 :1;
IO_WORD AM27 :1;
IO_WORD AM28 :1;
IO_WORD AM13 :1;
IO_WORD AM14 :1;
IO_WORD AM15 :1;
IO_WORD AM16 :1;
IO_WORD AM17 :1;
IO_WORD AM18 :1;
IO_WORD AM19 :1;
IO_WORD AM20 :1;
IO_WORD AM5 :1;
IO_WORD AM6 :1;
IO_WORD AM7 :1;
IO_WORD AM8 :1;
IO_WORD AM9 :1;
IO_WORD AM10 :1;
IO_WORD AM11 :1;
IO_WORD AM12 :1;
IO_WORD :3;
IO_WORD AM0 :1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -