📄 mb90385.h
字号:
IO_WORD BVAL5 :1;
IO_WORD BVAL6 :1;
IO_WORD BVAL7 :1;
} bit;
} bvalr;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} treqr;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} tcanr;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} tcr;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} rcr;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} rrtrr;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} rovrr;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} 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_BYTE REC;
IO_BYTE TEC;
}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_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} ider;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} trtrr;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} rfwtr;
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} bit;
} tier;
union{
IO_WORD word;
IO_LWORD _reserved;
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;
}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;
} bitc;
} amsr;
union {
IO_LWORD dword;
IO_WORD 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;
IO_WORD AM1 :1;
IO_WORD AM2 :1;
IO_WORD AM3 :1;
IO_WORD AM4 :1;
} bit_ext;
struct {
IO_WORD AM3 :1;
IO_WORD AM4 :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 :5;
IO_WORD AM0 :1;
IO_WORD AM1 :1;
IO_WORD AM2 :1;
} bit_std;
struct {
IO_WORD AM21_28 : 8;
IO_WORD AM13_20 : 8;
IO_WORD AM5_12 : 8;
IO_WORD unused : 3; /* unused bits */
IO_WORD AM0_4 : 5;
} bitc_ext;
struct {
IO_WORD AM3_10 : 8;
IO_WORD unused : 5; /* unused bits */
IO_WORD AM0_2 : 3;
/*IO_WORD upper :16; /* unused bits */
} bitc_std;
} amr[2];
} CANHSTR;
typedef struct
{
IO_WORD ram[8];
union {
IO_LWORD dword;
IO_WORD word;
struct {
const IO_WORD ID21 :1;
const IO_WORD ID22 :1;
const IO_WORD ID23 :1;
const IO_WORD ID24 :1;
const IO_WORD ID25 :1;
const IO_WORD ID26 :1;
const IO_WORD ID27 :1;
const IO_WORD ID28 :1;
const IO_WORD ID13 :1;
const IO_WORD ID14 :1;
const IO_WORD ID15 :1;
const IO_WORD ID16 :1;
const IO_WORD ID17 :1;
const IO_WORD ID18 :1;
const IO_WORD ID19 :1;
const IO_WORD ID20 :1;
const IO_WORD ID5 :1;
const IO_WORD ID6 :1;
const IO_WORD ID7 :1;
const IO_WORD ID8 :1;
const IO_WORD ID9 :1;
const IO_WORD ID10 :1;
const IO_WORD ID11 :1;
const IO_WORD ID12 :1;
const IO_WORD :3;
const IO_WORD ID0 :1;
const IO_WORD ID1 :1;
const IO_WORD ID2 :1;
const IO_WORD ID3 :1;
const IO_WORD ID4 :1;
} bit_ext;
struct {
const IO_WORD ID3 :1;
const IO_WORD ID4 :1;
const IO_WORD ID5 :1;
const IO_WORD ID6 :1;
const IO_WORD ID7 :1;
const IO_WORD ID8 :1;
const IO_WORD ID9 :1;
const IO_WORD ID10:1;
const IO_WORD ID :5;
const IO_WORD ID0 :1;
const IO_WORD ID1 :1;
const IO_WORD ID2 :1;
} bit_std;
struct {
const IO_WORD ID21_28 : 8;
const IO_WORD ID13_20 : 8;
const IO_WORD ID5_12 : 8;
const IO_WORD unused : 3; /* unused bits */
const IO_WORD ID0_4 : 5;
} bitc_ext;
struct {
const IO_WORD ID3_10 : 8;
const IO_WORD unused : 5; /* unused bits */
const IO_WORD ID0_2 : 3;
} bitc_std;
} idr[8];
union{
IO_WORD word;
IO_BYTE byte;
struct {
IO_WORD DLC0:1;
IO_WORD DLC1:1;
IO_WORD DLC2:1;
IO_WORD DLC3:1;
} bit;
struct {
IO_WORD DLC:4;
} bitc;
} dlcr[8];
union{
IO_LWORD dwords [2];
long longs [2];
IO_WORD words [4];
int ints [4];
const IO_BYTE bytes [8]; /* because of word access*/
const char chars [8]; /* because of word access*/
float floats [2];
double adouble;
}dtr[8];
} CANMSTR;
#endif /* CANSTR */
__IO_EXTERN __io DIRRSTR _dirr; /* Delayed Interrupt */
#define DIRR _dirr.byte
#define DIRR_R0 _dirr.bit.R0
__IO_EXTERN __io IO_BYTE _lpmcr;
#define LPMCR _lpmcr /* Low Power Control Registers */
__IO_EXTERN __io CKSCRSTR _ckscr;
#define CKSCR _ckscr.byte
#define CKSCR_CS0 _ckscr.bit.CS0
#define CKSCR_CS1 _ckscr.bit.CS1
#define CKSCR_MCS _ckscr.bit.MCS
#define CKSCR_SCS _ckscr.bit.SCS
#define CKSCR_WS0 _ckscr.bit.WS0
#define CKSCR_WS1 _ckscr.bit.WS1
#define CKSCR_MCM _ckscr.bit.MCM
#define CKSCR_SCM _ckscr.bit.SCM
#define CKSCR_CS _ckscr.bitc.CS
#define CKSCR_WS _ckscr.bitc.WS
__IO_EXTERN __io IO_BYTE _wdtc;
#define WDTC _wdtc /* Watch Dog */
__IO_EXTERN __io IO_BYTE _tbtc;
#define TBTC _tbtc /* Time Base Timer */
__IO_EXTERN __io WTCSTR _wtc; /* Watch Timer */
#define WTC _wtc.byte
#define WTC_WTC0 _wtc.bit.WTC0
#define WTC_WTC1 _wtc.bit.WTC1
#define WTC_WTC2 _wtc.bit.WTC2
#define WTC_WTR _wtc.bit.WTR
#define WTC_WTOF _wtc.bit.WTOF
#define WTC_WTIE _wtc.bit.WTIE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -