📄 mb90495.h
字号:
#define ADCS0_ANE1 _adcs0.bit.ANE1
#define ADCS0_ANE2 _adcs0.bit.ANE2
#define ADCS0_ANS0 _adcs0.bit.ANS0
#define ADCS0_ANS1 _adcs0.bit.ANS1
#define ADCS0_ANS2 _adcs0.bit.ANS2
#define ADCS0_MD0 _adcs0.bit.MD0
#define ADCS0_MD1 _adcs0.bit.MD1
#define ADCS0_ANE _adcs0.bitc.ANE
#define ADCS0_ANS _adcs0.bitc.ANS
#define ADCS0_MD _adcs0.bitc.MD
__IO_EXTERN __io ADCS1STR _adcs1;
#define ADCS1 _adcs1.byte
#define ADCS1_STRT _adcs1.bit.STRT
#define ADCS1_STS0 _adcs1.bit.STS0
#define ADCS1_STS1 _adcs1.bit.STS1
#define ADCS1_PAUS _adcs1.bit.PAUS
#define ADCS1_INTE _adcs1.bit.INTE
#define ADCS1_INT _adcs1.bit.INT
#define ADCS1_BUSY _adcs1.bit.BUSY
#define ADCS1_STS _adcs1.bitc.STS
__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
__IO_EXTERN __io PPGC0STR _ppgc0; /* Puls Pattern Generator Channel 0,1 */
#define PPGC0 _ppgc0.byte
#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_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 PPGC2STR _ppgc2;
#define PPGC2 _ppgc2.byte
#define PPGC2_PUF0 _ppgc2.bit.PUF0
#define PPGC2_PIE0 _ppgc2.bit.PIE0
#define PPGC2_PE00 _ppgc2.bit.PE00
#define PPGC2_PEN0 _ppgc2.bit.PEN0
__IO_EXTERN __io PPGC3STR _ppgc3;
#define PPGC3 _ppgc3.byte
#define PPGC3_MD0 _ppgc3.bit.MD0
#define PPGC3_MD1 _ppgc3.bit.MD1
#define PPGC3_PUF1 _ppgc3.bit.PUF1
#define PPGC3_PIE1 _ppgc3.bit.PIE1
#define PPGC3_PE10 _ppgc3.bit.PE10
#define PPGC3_PEN1 _ppgc3.bit.PEN1
#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_UNSIGNED8 _tcdtl;
#define TCDTL _tcdtl
__IO_EXTERN __io IO_UNSIGNED8 _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 /* GB 4.2.2002 laut Datenblatt hinzugef黦t */
#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_CLK _tccs.bitc.CLK
__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 ROMMSTR _romm; /* ROM mirror function */
#define ROMM _romm.byte
#define ROMM_MI _romm.bit.MI
/*
* 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
*/
#ifndef __CANSTR
#define __CANSTR
typedef struct
{
union{
IO_UNSIGNED8 byte;
IO_UNSIGNED8 _reserved;
struct{
IO_UNSIGNED16 BVAL0 :1;
IO_UNSIGNED16 BVAL1 :1;
IO_UNSIGNED16 BVAL2 :1;
IO_UNSIGNED16 BVAL3 :1;
IO_UNSIGNED16 BVAL4 :1;
IO_UNSIGNED16 BVAL5 :1;
IO_UNSIGNED16 BVAL6 :1;
IO_UNSIGNED16 BVAL7 :1;
} bit;
} bvalr;
union{
IO_UNSIGNED8 byte;
IO_UNSIGNED8 _reserved;
struct{
IO_UNSIGNED16 TREQ0 :1;
IO_UNSIGNED16 TREQ1 :1;
IO_UNSIGNED16 TREQ2 :1;
IO_UNSIGNED16 TREQ3 :1;
IO_UNSIGNED16 TREQ4 :1;
IO_UNSIGNED16 TREQ5 :1;
IO_UNSIGNED16 TREQ6 :1;
IO_UNSIGNED16 TREQ7 :1;
} bit;
} treqr;
union{
IO_UNSIGNED8 byte;
IO_UNSIGNED8 _reserved;
struct{
IO_UNSIGNED16 TCAN0 :1;
IO_UNSIGNED16 TCAN1 :1;
IO_UNSIGNED16 TCAN2 :1;
IO_UNSIGNED16 TCAN3 :1;
IO_UNSIGNED16 TCAN4 :1;
IO_UNSIGNED16 TCAN5 :1;
IO_UNSIGNED16 TCAN6 :1;
IO_UNSIGNED16 TCAN7 :1;
} bit;
} tcanr;
union{
IO_UNSIGNED8 byte;
IO_UNSIGNED8 _reserved;
struct{
IO_UNSIGNED16 TC0 :1;
IO_UNSIGNED16 TC1 :1;
IO_UNSIGNED16 TC2 :1;
IO_UNSIGNED16 TC3 :1;
IO_UNSIGNED16 TC4 :1;
IO_UNSIGNED16 TC5 :1;
IO_UNSIGNED16 TC6 :1;
IO_UNSIGNED16 TC7 :1;
} bit;
} tcr;
union{
IO_UNSIGNED8 byte;
IO_UNSIGNED8 _reserved;
struct{
IO_UNSIGNED16 RC0 :1;
IO_UNSIGNED16 RC1 :1;
IO_UNSIGNED16 RC2 :1;
IO_UNSIGNED16 RC3 :1;
IO_UNSIGNED16 RC4 :1;
IO_UNSIGNED16 RC5 :1;
IO_UNSIGNED16 RC6 :1;
IO_UNSIGNED16 RC7 :1;
} bit;
} rcr;
union{
IO_UNSIGNED8 byte;
IO_UNSIGNED8 _reserved;
struct{
IO_UNSIGNED16 RRTR0 :1;
IO_UNSIGNED16 RRTR1 :1;
IO_UNSIGNED16 RRTR2 :1;
IO_UNSIGNED16 RRTR3 :1;
IO_UNSIGNED16 RRTR4 :1;
IO_UNSIGNED16 RRTR5 :1;
IO_UNSIGNED16 RRTR6 :1;
IO_UNSIGNED16 RRTR7 :1;
} bit;
} rrtrr;
union{
IO_UNSIGNED8 byte;
IO_UNSIGNED8 _reserved;
struct{
IO_UNSIGNED16 ROVR0 :1;
IO_UNSIGNED16 ROVR1 :1;
IO_UNSIGNED16 ROVR2 :1;
IO_UNSIGNED16 ROVR3 :1;
IO_UNSIGNED16 ROVR4 :1;
IO_UNSIGNED16 ROVR5 :1;
IO_UNSIGNED16 ROVR6 :1;
IO_UNSIGNED16 ROVR7 :1;
} bit;
} rovrr;
union{
IO_UNSIGNED8 byte;
IO_UNSIGNED8 _reserved;
struct{
IO_UNSIGNED16 RIE0 :1;
IO_UNSIGNED16 RIE1 :1;
IO_UNSIGNED16 RIE2 :1;
IO_UNSIGNED16 RIE3 :1;
IO_UNSIGNED16 RIE4 :1;
IO_UNSIGNED16 RIE5 :1;
IO_UNSIGNED16 RIE6 :1;
IO_UNSIGNED16 RIE7 :1;
} bit;
} rier;
} CANLSTR;
typedef struct
{
union{
IO_UNSIGNED16 word;
struct{
IO_UNSIGNED16 HALT :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 NIE :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 TOE :1;
IO_UNSIGNED16 NS0 :1;
IO_UNSIGNED16 NS1 :1;
IO_UNSIGNED16 NT :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 RS :1;
IO_UNSIGNED16 TS :1;
}bit;
struct{
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 NS :2;
}bitc;
}csr;
union{
IO_UNSIGNED16 word;
IO_UNSIGNED16 byte;
struct{
IO_UNSIGNED16 MBP0 :1;
IO_UNSIGNED16 MBP1 :1;
IO_UNSIGNED16 MBP2 :1;
IO_UNSIGNED16 MBP3 :1;
IO_UNSIGNED16 :1;
IO_UNSIGNED16 RCE :1;
IO_UNSIGNED16 TCE :1;
IO_UNSIGNED16 NTE :1;
} bit;
struct{
IO_UNSIGNED16 MBP :4;
} bitc;
} leir;
union{
IO_UNSIGNED16 word;
struct{
IO_UNSIGNED16 REC0 :1;
IO_UNSIGNED16 REC1 :1;
IO_UNSIGNED16 REC2 :1;
IO_UNSIGNED16 REC3 :1;
IO_UNSIGNED16 REC4 :1;
IO_UNSIGNED16 REC5 :1;
IO_UNSIGNED16 REC6 :1;
IO_UNSIGNED16 REC7 :1;
IO_UNSIGNED16 TEC0 :1;
IO_UNSIGNED16 TEC1 :1;
IO_UNSIGNED16 TEC2 :1;
IO_UNSIGNED16 TEC3 :1;
IO_UNSIGNED16 TEC4 :1;
IO_UNSIGNED16 TEC5 :1;
IO_UNSIGNED16 TEC6 :1;
IO_UNSIGNED16 TEC7 :1;
}bit;
struct{
IO_UNSIGNED8 REC;
IO_UNSIGNED8 TEC;
}bitc;
}rtec;
union{
IO_UNSIGNED16 word;
struct{
IO_UNSIGNED16 PSC0 :1;
IO_UNSIGNED16 PSC1 :1;
IO_UNSIGNED16 PSC2 :1;
IO_UNSIGNED16 PSC3 :1;
IO_UNSIGNED16 PSC4 :1;
IO_UNSIGNED16 PSC5 :1;
IO_UNSIGNED16 RSJ0 :1;
IO_UNSIGNED16 RSJ1 :1;
IO_UNSIGNED16 TS10 :1;
IO_UNSIGNED16 TS11 :1;
IO_UNSIGNED16 TS12 :1;
IO_UNSIGNED16 TS13 :1;
IO_UNSIGNED16 TS20 :1;
IO_UNSIGNED16 TS21 :1;
IO_UNSIGNED16 TS22 :1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -