📄 mb90495.h
字号:
#define ADCR_ST0 _adcr.bit.ST0
#define ADCR_ST1 _adcr.bit.ST1
#define ADCR_S10 _adcr.bit.S10
#define ADCR_CT _adcr.bitc.CT
#define ADCR_ST _adcr.bitc.ST
__IO_EXTERN __io ADCR0STR _adcr0;
#define ADCR0 _adcr0.byte
#define ADCR0_D0 _adcr0.bit.D0
#define ADCR0_D1 _adcr0.bit.D1
#define ADCR0_D2 _adcr0.bit.D2
#define ADCR0_D3 _adcr0.bit.D3
#define ADCR0_D4 _adcr0.bit.D4
#define ADCR0_D5 _adcr0.bit.D5
#define ADCR0_D6 _adcr0.bit.D6
#define ADCR0_D7 _adcr0.bit.D7
__IO_EXTERN __io ADCR1STR _adcr1;
#define ADCR1 _adcr1.byte
#define ADCR1_D8 _adcr1.bit.D8
#define ADCR1_D9 _adcr1.bit.D9
#define ADCR1_CT0 _adcr1.bit.CT0
#define ADCR1_CT1 _adcr1.bit.CT1
#define ADCR1_ST0 _adcr1.bit.ST0
#define ADCR1_ST1 _adcr1.bit.ST1
#define ADCR1_S10 _adcr1.bit.S10
#define ADCR1_CT _adcr1.bitc.CT
#define ADCR1_ST _adcr1.bitc.ST
#endif /* __ADC_H */
__IO_EXTERN __io IO_WORD _ppgc01;
#define PPGC01 _ppgc01 /* Puls Pattern Generator Channel 0,1 */
__IO_EXTERN __io PPGC0STR _ppgc0;
#define PPGC0 _ppgc0.byte
#define PPGC0_RESV _ppgc0.bit.RESV
#define PPGC0_PUF0 _ppgc0.bit.PUF0
#define PPGC0_PIE0 _ppgc0.bit.PIE0
#define PPGC0_PE00 _ppgc0.bit.PE00
#define PPGC0_PEN0 _ppgc0.bit.PEN0
__IO_EXTERN __io PPGC1STR _ppgc1;
#define PPGC1 _ppgc1.byte
#define PPGC1_RESV _ppgc1.bit.RESV
#define PPGC1_MD0 _ppgc1.bit.MD0
#define PPGC1_MD1 _ppgc1.bit.MD1
#define PPGC1_PUF1 _ppgc1.bit.PUF1
#define PPGC1_PIE1 _ppgc1.bit.PIE1
#define PPGC1_PE10 _ppgc1.bit.PE10
#define PPGC1_PEN1 _ppgc1.bit.PEN1
#define PPGC1_MD _ppgc1.bitc.MD
__IO_EXTERN __io PPG01STR _ppg01;
#define PPG01 _ppg01.byte
#define PPG01_PCM0 _ppg01.bit.PCM0
#define PPG01_PCM1 _ppg01.bit.PCM1
#define PPG01_PCM2 _ppg01.bit.PCM2
#define PPG01_PCS0 _ppg01.bit.PCS0
#define PPG01_PCS1 _ppg01.bit.PCS1
#define PPG01_PCS2 _ppg01.bit.PCS2
#define PPG01_PCM _ppg01.bitc.PCM
#define PPG01_PCS _ppg01.bitc.PCS
__IO_EXTERN __io IO_WORD _ppgc23;
#define PPGC23 _ppgc23
__IO_EXTERN __io PPGC2STR _ppgc2;
#define PPGC2 _ppgc2.byte
#define PPGC2_RESV _ppgc2.bit.RESV
#define PPGC2_PUF2 _ppgc2.bit.PUF2
#define PPGC2_PIE2 _ppgc2.bit.PIE2
#define PPGC2_PE20 _ppgc2.bit.PE20
#define PPGC2_PEN2 _ppgc2.bit.PEN2
__IO_EXTERN __io PPGC3STR _ppgc3;
#define PPGC3 _ppgc3.byte
#define PPGC3_RESV _ppgc3.bit.RESV
#define PPGC3_MD0 _ppgc3.bit.MD0
#define PPGC3_MD1 _ppgc3.bit.MD1
#define PPGC3_PUF3 _ppgc3.bit.PUF3
#define PPGC3_PIE3 _ppgc3.bit.PIE3
#define PPGC3_PE30 _ppgc3.bit.PE30
#define PPGC3_PEN3 _ppgc3.bit.PEN3
#define PPGC3_MD _ppgc3.bitc.MD
__IO_EXTERN __io PPG23STR _ppg23;
#define PPG23 _ppg23.byte
#define PPG23_PCM0 _ppg23.bit.PCM0
#define PPG23_PCM1 _ppg23.bit.PCM1
#define PPG23_PCM2 _ppg23.bit.PCM2
#define PPG23_PCS0 _ppg23.bit.PCS0
#define PPG23_PCS1 _ppg23.bit.PCS1
#define PPG23_PCS2 _ppg23.bit.PCS2
#define PPG23_PCM _ppg23.bitc.PCM
#define PPG23_PCS _ppg23.bitc.PCS
__IO_EXTERN __io IPCP0STR _ipcp0; /* ICU unit 0/1 */
#define IPCP0 _ipcp0.word
#define IPCP0_CP00 _ipcp0.bit.CP00
#define IPCP0_CP01 _ipcp0.bit.CP01
#define IPCP0_CP02 _ipcp0.bit.CP02
#define IPCP0_CP03 _ipcp0.bit.CP03
#define IPCP0_CP04 _ipcp0.bit.CP04
#define IPCP0_CP05 _ipcp0.bit.CP05
#define IPCP0_CP06 _ipcp0.bit.CP06
#define IPCP0_CP07 _ipcp0.bit.CP07
#define IPCP0_CP08 _ipcp0.bit.CP08
#define IPCP0_CP09 _ipcp0.bit.CP09
#define IPCP0_CP10 _ipcp0.bit.CP10
#define IPCP0_CP11 _ipcp0.bit.CP11
#define IPCP0_CP12 _ipcp0.bit.CP12
#define IPCP0_CP13 _ipcp0.bit.CP13
#define IPCP0_CP14 _ipcp0.bit.CP14
#define IPCP0_CP15 _ipcp0.bit.CP15
__IO_EXTERN __io IPCP1STR _ipcp1;
#define IPCP1 _ipcp1.word
#define IPCP1_CP00 _ipcp1.bit.CP00
#define IPCP1_CP01 _ipcp1.bit.CP01
#define IPCP1_CP02 _ipcp1.bit.CP02
#define IPCP1_CP03 _ipcp1.bit.CP03
#define IPCP1_CP04 _ipcp1.bit.CP04
#define IPCP1_CP05 _ipcp1.bit.CP05
#define IPCP1_CP06 _ipcp1.bit.CP06
#define IPCP1_CP07 _ipcp1.bit.CP07
#define IPCP1_CP08 _ipcp1.bit.CP08
#define IPCP1_CP09 _ipcp1.bit.CP09
#define IPCP1_CP10 _ipcp1.bit.CP10
#define IPCP1_CP11 _ipcp1.bit.CP11
#define IPCP1_CP12 _ipcp1.bit.CP12
#define IPCP1_CP13 _ipcp1.bit.CP13
#define IPCP1_CP14 _ipcp1.bit.CP14
#define IPCP1_CP15 _ipcp1.bit.CP15
__IO_EXTERN __io ICS01STR _ics01; /* Input Capture 0/1/2/3 */
#define ICS01 _ics01.byte
#define ICS01_EG00 _ics01.bit.EG00
#define ICS01_EG01 _ics01.bit.EG01
#define ICS01_EG10 _ics01.bit.EG10
#define ICS01_EG11 _ics01.bit.EG11
#define ICS01_ICE0 _ics01.bit.ICE0
#define ICS01_ICE1 _ics01.bit.ICE1
#define ICS01_ICP0 _ics01.bit.ICP0
#define ICS01_ICP1 _ics01.bit.ICP1
#define ICS01_EG0 _ics01.bitc.EG0
#define ICS01_EG1 _ics01.bitc.EG1
__IO_EXTERN __io ICS23STR _ics23;
#define ICS23 _ics23.byte
#define ICS23_EG20 _ics23.bit.EG20
#define ICS23_EG21 _ics23.bit.EG21
#define ICS23_EG30 _ics23.bit.EG30
#define ICS23_EG31 _ics23.bit.EG31
#define ICS23_ICE2 _ics23.bit.ICE2
#define ICS23_ICE3 _ics23.bit.ICE3
#define ICS23_ICP2 _ics23.bit.ICP2
#define ICS23_ICP3 _ics23.bit.ICP3
#define ICS23_EG2 _ics23.bitc.EG2
#define ICS23_EG3 _ics23.bitc.EG3
__IO_EXTERN __io TCDTSTR _tcdt; /* I/O Timer */
#define TCDT _tcdt.word
#define TCDT_T00 _tcdt.bit.T00
#define TCDT_T01 _tcdt.bit.T01
#define TCDT_T02 _tcdt.bit.T02
#define TCDT_T03 _tcdt.bit.T03
#define TCDT_T04 _tcdt.bit.T04
#define TCDT_T05 _tcdt.bit.T05
#define TCDT_T06 _tcdt.bit.T06
#define TCDT_T07 _tcdt.bit.T07
#define TCDT_T08 _tcdt.bit.T08
#define TCDT_T09 _tcdt.bit.T09
#define TCDT_T10 _tcdt.bit.T10
#define TCDT_T11 _tcdt.bit.T11
#define TCDT_T12 _tcdt.bit.T12
#define TCDT_T13 _tcdt.bit.T13
#define TCDT_T14 _tcdt.bit.T14
#define TCDT_T15 _tcdt.bit.T15
__IO_EXTERN __io IO_BYTE _tcdtl;
#define TCDTL _tcdtl
__IO_EXTERN __io IO_BYTE _tcdth;
#define TCDTH _tcdth
__IO_EXTERN __io TCCSSTR _tccs;
#define TCCS _tccs.word
#define TCCS_CLK0 _tccs.bit.CLK0
#define TCCS_CLK1 _tccs.bit.CLK1
#define TCCS_CLK2 _tccs.bit.CLK2
#define TCCS_CLR _tccs.bit.CLR
#define TCCS_MODE _tccs.bit.MODE
#define TCCS_STOP _tccs.bit.STOP
#define TCCS_IVFE _tccs.bit.IVFE
#define TCCS_IVF _tccs.bit.IVF
#define TCCS_ECKE _tccs.bit.ECKE
#define TCCS_CLK _tccs.bitc.CLK
__IO_EXTERN __io TCCSLSTR _tccsl;
#define TCCSL _tccsl.byte
#define TCCSL_CLK0 _tccsl.bit.CLK0
#define TCCSL_CLK1 _tccsl.bit.CLK1
#define TCCSL_CLK2 _tccsl.bit.CLK2
#define TCCSL_CLR _tccsl.bit.CLR
#define TCCSL_MODE _tccsl.bit.MODE
#define TCCSL_STOP _tccsl.bit.STOP
#define TCCSL_IVFE _tccsl.bit.IVFE
#define TCCSL_IVF _tccsl.bit.IVF
#define TCCSL_CLK _tccsl.bitc.CLK
__IO_EXTERN __io TCCSHSTR _tccsh;
#define TCCSH _tccsh.byte
#define TCCSH_ECKE _tccsh.bit.ECKE
__IO_EXTERN __io IPCP2STR _ipcp2; /* ICU unit 2/3 */
#define IPCP2 _ipcp2.word
#define IPCP2_CP00 _ipcp2.bit.CP00
#define IPCP2_CP01 _ipcp2.bit.CP01
#define IPCP2_CP02 _ipcp2.bit.CP02
#define IPCP2_CP03 _ipcp2.bit.CP03
#define IPCP2_CP04 _ipcp2.bit.CP04
#define IPCP2_CP05 _ipcp2.bit.CP05
#define IPCP2_CP06 _ipcp2.bit.CP06
#define IPCP2_CP07 _ipcp2.bit.CP07
#define IPCP2_CP08 _ipcp2.bit.CP08
#define IPCP2_CP09 _ipcp2.bit.CP09
#define IPCP2_CP10 _ipcp2.bit.CP10
#define IPCP2_CP11 _ipcp2.bit.CP11
#define IPCP2_CP12 _ipcp2.bit.CP12
#define IPCP2_CP13 _ipcp2.bit.CP13
#define IPCP2_CP14 _ipcp2.bit.CP14
#define IPCP2_CP15 _ipcp2.bit.CP15
__IO_EXTERN __io IPCP3STR _ipcp3;
#define IPCP3 _ipcp3.word
#define IPCP3_CP00 _ipcp3.bit.CP00
#define IPCP3_CP01 _ipcp3.bit.CP01
#define IPCP3_CP02 _ipcp3.bit.CP02
#define IPCP3_CP03 _ipcp3.bit.CP03
#define IPCP3_CP04 _ipcp3.bit.CP04
#define IPCP3_CP05 _ipcp3.bit.CP05
#define IPCP3_CP06 _ipcp3.bit.CP06
#define IPCP3_CP07 _ipcp3.bit.CP07
#define IPCP3_CP08 _ipcp3.bit.CP08
#define IPCP3_CP09 _ipcp3.bit.CP09
#define IPCP3_CP10 _ipcp3.bit.CP10
#define IPCP3_CP11 _ipcp3.bit.CP11
#define IPCP3_CP12 _ipcp3.bit.CP12
#define IPCP3_CP13 _ipcp3.bit.CP13
#define IPCP3_CP14 _ipcp3.bit.CP14
#define IPCP3_CP15 _ipcp3.bit.CP15
__IO_EXTERN __io TMCSR0STR _tmcsr0; /* Reload Timer 0/1 */
#define TMCSR0 _tmcsr0.word
#define TMCSR0_TRG _tmcsr0.bit.TRG
#define TMCSR0_CNTE _tmcsr0.bit.CNTE
#define TMCSR0_UF _tmcsr0.bit.UF
#define TMCSR0_INTE _tmcsr0.bit.INTE
#define TMCSR0_RELD _tmcsr0.bit.RELD
#define TMCSR0_OUTL _tmcsr0.bit.OUTL
#define TMCSR0_OUTE _tmcsr0.bit.OUTE
#define TMCSR0_MOD0 _tmcsr0.bit.MOD0
#define TMCSR0_MOD1 _tmcsr0.bit.MOD1
#define TMCSR0_MOD2 _tmcsr0.bit.MOD2
#define TMCSR0_CSL0 _tmcsr0.bit.CSL0
#define TMCSR0_CSL1 _tmcsr0.bit.CSL1
__IO_EXTERN __io TMCSR1STR _tmcsr1;
#define TMCSR1 _tmcsr1.word
#define TMCSR1_TRG _tmcsr1.bit.TRG
#define TMCSR1_CNTE _tmcsr1.bit.CNTE
#define TMCSR1_UF _tmcsr1.bit.UF
#define TMCSR1_INTE _tmcsr1.bit.INTE
#define TMCSR1_RELD _tmcsr1.bit.RELD
#define TMCSR1_OUTL _tmcsr1.bit.OUTL
#define TMCSR1_OUTE _tmcsr1.bit.OUTE
#define TMCSR1_MOD0 _tmcsr1.bit.MOD0
#define TMCSR1_MOD1 _tmcsr1.bit.MOD1
#define TMCSR1_MOD2 _tmcsr1.bit.MOD2
#define TMCSR1_CSL0 _tmcsr1.bit.CSL0
#define TMCSR1_CSL1 _tmcsr1.bit.CSL1
__IO_EXTERN __io IO_BYTE _romm;
#define ROMM _romm /* ROM mirror function */
/*
* CANIO: control structures of CAN for LX-controllers
* This version is limited to 8 message bufers
* Version: 1.0 08.02.00 HL
* - original version
* - only 8 message buffers
* - reduced registers changed to byte access
* Version: 1.1 09.02.00 HL
* - RC7 was missing
* Version: 1.1 10.08.00 HL
* - _reserved members enlarged to original register size
* because alignment was not correct for AMR0 and AMR1
*/
#ifndef __CANSTR
#define __CANSTR
typedef struct
{
union{
IO_BYTE byte;
IO_WORD _reserved;
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;
} 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;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -