📄 lpc2103.h
字号:
__REG8 P0_2 : 1;
__REG8 P0_3 : 1;
__REG8 P0_4 : 1;
__REG8 P0_5 : 1;
__REG8 P0_6 : 1;
__REG8 P0_7 : 1;
} __byte2_bit;
__REG8 __byte2;
};
union
{
//FIODIR3
//FIOMASK3
//FIOPIN3
//FIOSET3
//FIOCLR3
struct{
__REG8 P0_0 : 1;
__REG8 P0_1 : 1;
__REG8 P0_2 : 1;
__REG8 P0_3 : 1;
__REG8 P0_4 : 1;
__REG8 P0_5 : 1;
__REG8 P0_6 : 1;
__REG8 P0_7 : 1;
} __byte3_bit;
__REG8 __byte3;
};
};
struct
{
union
{
//FIODIRL
//FIOMASKL
//FIOPINL
//FIOSETL
//FIOCLRL
struct{
__REG16 P0_0 : 1;
__REG16 P0_1 : 1;
__REG16 P0_2 : 1;
__REG16 P0_3 : 1;
__REG16 P0_4 : 1;
__REG16 P0_5 : 1;
__REG16 P0_6 : 1;
__REG16 P0_7 : 1;
__REG16 P0_8 : 1;
__REG16 P0_9 : 1;
__REG16 P0_10 : 1;
__REG16 P0_11 : 1;
__REG16 P0_12 : 1;
__REG16 P0_13 : 1;
__REG16 P0_14 : 1;
__REG16 P0_15 : 1;
} __shortl_bit;
__REG16 __shortl;
};
union
{
//FIODIRU
//FIOMASKU
//FIOPINU
//FIOSETU
//FIOCLRU
struct{
__REG16 P0_0 : 1;
__REG16 P0_1 : 1;
__REG16 P0_2 : 1;
__REG16 P0_3 : 1;
__REG16 P0_4 : 1;
__REG16 P0_5 : 1;
__REG16 P0_6 : 1;
__REG16 P0_7 : 1;
__REG16 P0_8 : 1;
__REG16 P0_9 : 1;
__REG16 P0_10 : 1;
__REG16 P0_11 : 1;
__REG16 P0_12 : 1;
__REG16 P0_13 : 1;
__REG16 P0_14 : 1;
__REG16 P0_15 : 1;
} __shortu_bit;
__REG16 __shortu;
};
};
} __fgpio_bits;
/* UART Fractional Divider Register */
typedef struct{
__REG32 DIVADDVAL : 4;
__REG32 MULVAL : 4;
__REG32 :24;
} __uartfdr_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;
/* 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;
} __uartier1_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 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 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 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;
/* UART Transmit Enable Register */
typedef struct{
__REG8 : 7;
__REG8 TXEN : 1;
} __uartter_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;
} __i2conset_bits;
/* I2C Control Clear Register */
typedef struct{
__REG32 : 2;
__REG32 AAC : 1;
__REG32 SIC : 1;
__REG32 : 1;
__REG32 STAC : 1;
__REG32 I2ENC : 1;
__REG32 :25;
} __i2conclr_bits;
/* I2C Status Register */
typedef struct{
__REG32 STATUS : 8;
__REG32 :24;
} __i2stat_bits;
/* I2C Data Register */
typedef struct{
__REG32 DATA : 8;
__REG32 :24;
} __i2dat_bits;
/* I2C Slave Address Register */
typedef struct{
__REG32 GC : 1;
__REG32 ADDR : 7;
__REG32 :24;
} __i2adr_bits;
/* I2C SCL Duty Cycle Register */
typedef struct{
__REG32 COUNT :16;
__REG32 :16;
} __i2scl_bits;
/* SPI Control Register */
typedef struct{
__REG32 : 2;
__REG32 BitEna : 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 Data Register */
typedef struct{
__REG32 DATA :16;
__REG32 :16;
} __spdr_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;
/* SSP Control Register 0 */
typedef struct{
__REG32 DSS : 4;
__REG32 FRF : 2;
__REG32 CPOL : 1;
__REG32 CPHA : 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 RNF : 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 Register */
typedef struct{
__REG32 RORMIS : 1;
__REG32 RTMIS : 1;
__REG32 RXMIS : 1;
__REG32 TXMIS : 1;
__REG32 :28;
} __sspmis_bits;
/* SSP Interrupt Clear Registerr */
typedef struct{
__REG32 RORIC : 1;
__REG32 RTIC : 1;
__REG32 :30;
} __sspicr_bits;
/* A/D Control Register */
typedef struct{
__REG32 SEL : 8;
__REG32 CLKDIV : 8;
__REG32 BURST : 1;
__REG32 CLKS : 3;
__REG32 : 1;
__REG32 PDN : 1;
__REG32 : 2;
__REG32 START : 3;
__REG32 EDGE : 1;
__REG32 : 4;
} __adcr_bits;
/* A/D Global Data Register */
typedef struct{
__REG32 : 6;
__REG32 RESULT :10;
__REG32 : 8;
__REG32 CHN : 3;
__REG32 : 3;
__REG32 OVERUN : 1;
__REG32 DONE : 1;
} __adgdr_bits;
/* A/D Status Register */
typedef struct{
__REG32 DONE0 : 1;
__REG32 DONE1 : 1;
__REG32 DONE2 : 1;
__REG32 DONE3 : 1;
__REG32 DONE4 : 1;
__REG32 DONE5 : 1;
__REG32 DONE6 : 1;
__REG32 DONE7 : 1;
__REG32 OVERRUN0 : 1;
__REG32 OVERRUN1 : 1;
__REG32 OVERRUN2 : 1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -