📄 iolpc2378.h
字号:
__REG32 DOI :1;
__REG32 WUI :1;
__REG32 EPI :1;
__REG32 ALI :1;
__REG32 BEI :1;
__REG32 IDI :1;
__REG32 TI2 :1;
__REG32 TI3 :1;
__REG32 :5;
__REG32 ERRBIT :5;
__REG32 ERRDIR :1;
__REG32 ERRC :2;
__REG32 ALCBIT :8;
} __canicr_bits;
/* CAN interrupt enable register */
typedef struct {
__REG32 RIE :1;
__REG32 TIE1 :1;
__REG32 EIE :1;
__REG32 DOIE :1;
__REG32 WUIE :1;
__REG32 EPIE :1;
__REG32 ALIE :1;
__REG32 BEIE :1;
__REG32 IDIE :1;
__REG32 TIE2 :1;
__REG32 TIE3 :1;
__REG32 :21;
} __canier_bits;
/* CAN bus timing register */
typedef struct {
__REG32 BRP :10;
__REG32 :4;
__REG32 SJW :2;
__REG32 TSEG1 :4;
__REG32 TSEG2 :3;
__REG32 SAM :1;
__REG32 :8;
} __canbtr_bits;
/* CAN error warning limit register */
typedef struct {
__REG32 EWL :8;
__REG32 :24;
} __canewl_bits;
/* CAN status register */
typedef struct {
__REG32 RBS :1;
__REG32 DOS :1;
__REG32 TBS1 :1;
__REG32 TCS1 :1;
__REG32 RS :1;
__REG32 TS1 :1;
__REG32 ES :1;
__REG32 BS :1;
__REG32 /*RBS*/ :1;
__REG32 /*DOS*/ :1;
__REG32 TBS2 :1;
__REG32 TCS2 :1;
__REG32 /*RS*/ :1;
__REG32 TS2 :1;
__REG32 /*ES*/ :1;
__REG32 /*BS*/ :1;
__REG32 /*RBS*/ :1;
__REG32 /*DOS*/ :1;
__REG32 TBS3 :1;
__REG32 TCS3 :1;
__REG32 /*RS*/ :1;
__REG32 TS3 :1;
__REG32 /*ES*/ :1;
__REG32 /*BS*/ :1;
__REG32 :8;
} __cansr_bits;
/* CAN rx frame status register */
typedef struct {
__REG32 IDINDEX :10;
__REG32 BP :1;
__REG32 :5;
__REG32 DLC :4;
__REG32 :10;
__REG32 RTR :1;
__REG32 FF :1;
} __canrfs_bits;
/* CAN rx identifier register */
typedef union {
//CANxRID
struct {
__REG32 ID10_0 :11;
__REG32 :21;
};
//CANxRID
struct {
__REG32 ID29_18 :11;
__REG32 :21;
};
//CANxRID
struct {
__REG32 ID29_0 :29;
__REG32 :3;
};
} __canrid_bits;
/* CAN rx data register A */
typedef struct {
__REG32 DATA1 :8;
__REG32 DATA2 :8;
__REG32 DATA3 :8;
__REG32 DATA4 :8;
} __canrda_bits;
/* CAN rx data register B */
typedef struct {
__REG32 DATA5 :8;
__REG32 DATA6 :8;
__REG32 DATA7 :8;
__REG32 DATA8 :8;
} __canrdb_bits;
/* CAN tx frame information register */
typedef struct {
__REG32 PRIO :8;
__REG32 :8;
__REG32 DLC :4;
__REG32 :10;
__REG32 RTR :1;
__REG32 FF :1;
} __cantfi_bits;
/* CAN tx identifier register */
typedef union {
//CANxTIDy
struct {
__REG32 ID10_0 :11;
__REG32 :21;
};
//CANxTIDy
struct {
__REG32 ID29_18 :11;
__REG32 :21;
};
//CANxTIDy
struct {
__REG32 ID29_0 :29;
__REG32 :3;
};
} __cantid_bits;
/* CAN tx data register A */
typedef struct {
__REG32 DATA1 :8;
__REG32 DATA2 :8;
__REG32 DATA3 :8;
__REG32 DATA4 :8;
} __cantda_bits;
/* CAN tx data register B */
typedef struct {
__REG32 DATA5 :8;
__REG32 DATA6 :8;
__REG32 DATA7 :8;
__REG32 DATA8 :8;
} __cantdb_bits;
/* UART interrupt enable register */
typedef struct{
__REG32 RDAIE : 1;
__REG32 THREIE : 1;
__REG32 RXLSIE : 1;
__REG32 : 5;
__REG32 ABTOINTEN : 1;
__REG32 ABEOINTEN : 1;
__REG32 :22;
} __uartier0_bits;
/* UART1 interrupt enable register */
typedef struct{
__REG32 RDAIE : 1;
__REG32 THREIE : 1;
__REG32 RXLSIE : 1;
__REG32 RXMSIE : 1;
__REG32 : 3;
__REG32 CTSIE : 1;
__REG32 ABTOINTEN : 1;
__REG32 ABEOINTEN : 1;
__REG32 :22;
} __uartier1_bits;
/* UART Transmit Enable Register */
typedef struct{
__REG8 : 7;
__REG8 TXEN : 1;
} __uartter_bits;
/* UART line status register */
typedef struct{
__REG8 DR : 1;
__REG8 OE : 1;
__REG8 PE : 1;
__REG8 FE : 1;
__REG8 BI : 1;
__REG8 THRE : 1;
__REG8 TEMT : 1;
__REG8 RXFE : 1;
} __uartlsr_bits;
/* UART line control register */
typedef struct{
__REG8 WLS : 2;
__REG8 SBS : 1;
__REG8 PE : 1;
__REG8 PS : 2;
__REG8 BC : 1;
__REG8 DLAB : 1;
} __uartlcr_bits;
/* UART interrupt identification register and fifo control register */
typedef union {
//UxIIR
struct {
__REG32 IP : 1;
__REG32 IID : 3;
__REG32 : 2;
__REG32 IIRFE : 2;
__REG32 ABEOINT: 1;
__REG32 ABTOINT: 1;
__REG32 :22;
};
//UxFCR
struct {
__REG32 FCRFE : 1;
__REG32 RFR : 1;
__REG32 TFR : 1;
__REG32 : 3;
__REG32 RTLS : 2;
__REG32 :24;
};
} __uartfcriir_bits;
/* UART modem control register */
typedef struct{
__REG8 DTR : 1;
__REG8 RTS : 1;
__REG8 : 2;
__REG8 LMS : 1;
__REG8 : 1;
__REG8 RTSEN : 1;
__REG8 CTSEN : 1;
} __uartmcr_bits;
/* UART modem status register */
typedef union{
//UxMSR
struct {
__REG8 DCTS : 1;
__REG8 DDSR : 1;
__REG8 TERI : 1;
__REG8 DDCD : 1;
__REG8 CTS : 1;
__REG8 DSR : 1;
__REG8 RI : 1;
__REG8 DCD : 1;
};
//UxMSR
struct {
__REG8 MSR0 : 1;
__REG8 MSR1 : 1;
__REG8 MSR2 : 1;
__REG8 MSR3 : 1;
__REG8 MSR4 : 1;
__REG8 MSR5 : 1;
__REG8 MSR6 : 1;
__REG8 MSR7 : 1;
};
} __uartmsr_bits;
/* UART Auto-baud Control Register */
typedef struct{
__REG32 START : 1;
__REG32 MODE : 1;
__REG32 AUTORESTART : 1;
__REG32 : 5;
__REG32 ABEOINTCLR : 1;
__REG32 ABTOINTCLR : 1;
__REG32 :22;
} __uartacr_bits;
/* IrDA Control Register for UART3 Only */
typedef struct{
__REG32 IRDAEN : 1;
__REG32 IRDAINV : 1;
__REG32 FIXPULSEEN : 1;
__REG32 PULSEDIV : 3;
__REG32 :26;
} __uarticr_bits;
/* UART Fractional Divider Register */
typedef struct{
__REG32 DIVADDVAL : 4;
__REG32 MULVAL : 4;
__REG32 :24;
} __uartfdr_bits;
/* SPI control register */
typedef struct{
__REG32 : 2;
__REG32 BITENABLE : 1;
__REG32 CPHA : 1;
__REG32 CPOL : 1;
__REG32 MSTR : 1;
__REG32 LSBF : 1;
__REG32 SPIE : 1;
__REG32 BITS : 4;
__REG32 :20;
} __spcr_bits;
/* SPI status register */
typedef struct{
__REG32 : 3;
__REG32 ABRT : 1;
__REG32 MODF : 1;
__REG32 ROVR : 1;
__REG32 WCOL : 1;
__REG32 SPIF : 1;
__REG32 :24;
} __spsr_bits;
/* SPI clock counter register */
typedef struct{
__REG32 COUNTER : 8;
__REG32 :24;
} __spccr_bits;
/* SPI interrupt register */
typedef struct{
__REG32 SPIINT : 1;
__REG32 :31;
} __spint_bits;
/* SPI Test control register */
typedef struct{
__REG8 : 1;
__REG8 TEST : 7;
} __sptcr_bits;
/* SPI Test Status Register */
typedef struct{
__REG8 : 3;
__REG8 ABRT : 1;
__REG8 MODF : 1;
__REG8 ROVR : 1;
__REG8 WCOL : 1;
__REG8 SPIF : 1;
} __sptsr_bits;
/* SSP Control Register 0 */
typedef struct{
__REG32 DSS : 4;
__REG32 FRF : 2;
__REG32 SPO : 1;
__REG32 SPH : 1;
__REG32 SCR : 8;
__REG32 :16;
} __sspcr0_bits;
/* SSP Control Register 1 */
typedef struct{
__REG32 LBM : 1;
__REG32 SSE : 1;
__REG32 MS : 1;
__REG32 SOD : 1;
__REG32 :28;
} __sspcr1_bits;
/* SSP Data Register */
typedef struct{
__REG32 DATA :16;
__REG32 :16;
} __sspdr_bits;
/* SSP Status Register */
typedef struct{
__REG32 TFE : 1;
__REG32 TNF : 1;
__REG32 RNE : 1;
__REG32 RFF : 1;
__REG32 BSY : 1;
__REG32 :27;
} __sspsr_bits;
/* SSP Clock Prescale Register */
typedef struct{
__REG32 CPSDVSR : 8;
__REG32 :24;
} __sspcpsr_bits;
/* SSP Interrupt Mask Set/Clear Register */
typedef struct{
__REG32 RORIM : 1;
__REG32 RTIM : 1;
__REG32 RXIM : 1;
__REG32 TXIM : 1;
__REG32 :28;
} __sspimsc_bits;
/* SSP Raw Interrupt Status Register */
typedef struct{
__REG32 RORRIS : 1;
__REG32 RTRIS : 1;
__REG32 RXRIS : 1;
__REG32 TXRIS : 1;
__REG32 :28;
} __sspris_bits;
/* SSP Masked Interrupt Status Register */
typedef struct{
__REG32 RORMIS : 1;
__REG32 RTMIS : 1;
__REG32 RXMIS : 1;
__REG32 TXMIS : 1;
__REG32 :28;
} __sspmis_bits;
/* SSP Interrupt Clear Register */
typedef struct{
__REG32 RORIC : 1;
__REG32 RTIC : 1;
__REG32 :30;
} __sspicr_bits;
/* SSP DMA Control Register */
typedef struct{
__REG32 RXDMAE : 1;
__REG32 TXDMAE : 1;
__REG32 :30;
} __sspdmacr_bits;
/* SD/MMC Power control register */
typedef struct{
__REG32 CTRL : 2;
__REG32 : 4;
__REG32 OPENDRAIN : 1;
__REG32 ROD : 1;
__REG32 :24;
} __mcipower_bits;
/* SD/MMC Clock control register */
typedef struct{
__REG32 CLKDIV : 8;
__REG32 ENABLE : 1;
__REG32 PWRSAVE : 1;
__REG32 BYPASS : 1;
__REG32 WIDEBUS : 1;
__REG32 :20;
} __mciclock_bits;
/* SD/MMC Command register */
typedef struct{
__REG32 CMDINDEX : 6;
__REG32 RESPONSE : 1;
__REG32 LONGRSP : 1;
__REG32 INTERRUPT : 1;
__REG32 PENDING : 1;
__REG32 ENABLE : 1;
__REG32 :21;
} __mcicommand_bits;
/* SD/MMC Command response register */
typedef struct{
__REG32 RESPCMD : 6;
__REG32 :26;
} __mcirespcmd_bits;
/* SD/MMC Data control register */
typedef struct{
__REG32 ENABLE : 1;
__REG32 DIRECTION : 1;
__REG32 MODE : 1;
__REG32 DMAENABLE : 1;
__REG32 BLOCKSIZE : 4;
__REG32 :24;
} __mcidatactrl_bits;
/* SD/MMC Status register */
typedef struct{
__REG32 CMDCRCFAIL : 1;
__REG32 DATACRCFAIL : 1;
__REG32 CMDTIMEOUT : 1;
__REG32 DATATIMEOUT : 1;
__REG32 TXUNDERRUN : 1;
__REG32 RXOVERRUN : 1;
__REG32 CMDRESPEND : 1;
__REG32 CMDSENT : 1;
__REG32 DATAEND : 1;
__REG32 STARTBITERR : 1;
__REG32 DATABLOCKEND : 1;
__REG32 CMDACTIVE : 1;
__REG32 TXACTIVE : 1;
__REG32 RXACTIVE : 1;
__REG32 TXFIFOHALFEMPTY : 1;
__REG32 RXFIFOHALFFULL : 1;
__REG32 TXFIFOFULL : 1;
__REG32 RXFIFOFULL : 1;
__REG32 TXFIFOEMPTY : 1;
__REG32 RXFIFOEMPTY : 1;
__REG32 TXDATAAVLBL : 1;
__REG32 RXDATAAVLBL : 1;
__REG32 :10;
} __mcistatus_bits;
/* SD/MMC Clear register */
typedef struct{
__REG32 CMDCRCFAILCLR : 1;
__REG32 DATACRCFAILCLR : 1;
__REG32 CMDTIMEOUTCLR : 1;
__REG32 DATATIMEOUTCLR : 1;
__REG32 TXUNDERRUNCLR : 1;
__REG32 RXOVERRUNCLR : 1;
__REG32 CMDRESPENDCLR : 1;
__REG32 CMDSENTCLR : 1;
__REG32 DATAENDCLR : 1;
__REG32 STARTBITERRCLR : 1;
__REG32 DATABLOCKENDCLR : 1;
__REG32 :21;
} __mciclear_bits;
/* SD/MMC FIFO counter register */
typedef struct{
__REG32 DATACOUNT :15;
__REG32 :17;
} __mcififocnt_bits;
/* I2C control set register */
typedef struct{
__REG32 : 2;
__REG32 AA : 1;
__REG32 SI : 1;
__REG32 STO : 1;
__REG32 STA : 1;
__REG32 I2EN : 1;
__REG32 :25;
} __i2c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -