📄 lcd1602.i
字号:
typedef struct
{
volatile uint32_t WTR:1;
volatile uint32_t WTRE:1;
volatile uint32_t WTRF:1;
volatile uint32_t WTIF:1;
volatile uint32_t WTWKE:1;
volatile uint32_t WTWKF:1;
volatile uint32_t WTIE:1;
volatile uint32_t WTE:1;
volatile uint32_t WTIS:3;
volatile const uint32_t RESERVE1:20;
volatile uint32_t DBGACK_WDT:1;
} WDT_WTCR_T;
typedef struct
{
union {
volatile uint32_t u32WTCR;
struct {
volatile uint32_t WTR:1;
volatile uint32_t WTRE:1;
volatile uint32_t WTRF:1;
volatile uint32_t WTIF:1;
volatile uint32_t WTWKE:1;
volatile uint32_t WTWKF:1;
volatile uint32_t WTIE:1;
volatile uint32_t WTE:1;
volatile uint32_t WTIS:3;
volatile const uint32_t RESERVE1:20;
volatile uint32_t DBGACK_WDT:1;
} WTCR;
};
} WDT_T;
typedef struct
{
volatile uint32_t GO_BUSY:1;
volatile uint32_t RX_NEG:1;
volatile uint32_t TX_NEG:1;
volatile uint32_t TX_BIT_LEN:5;
volatile uint32_t TX_NUM:2;
volatile uint32_t LSB:1;
volatile uint32_t CLKP:1;
volatile uint32_t SP_CYCLE:4;
volatile uint32_t IF:1;
volatile uint32_t IE:1;
volatile uint32_t SLAVE:1;
volatile uint32_t REORDER:2;
volatile uint32_t FIFO:1;
volatile uint32_t TWOB:1;
volatile uint32_t VARCLK_EN:1;
volatile const uint32_t RX_EMPTY:1;
volatile const uint32_t RX_FULL:1;
volatile const uint32_t TX_EMPTY:1;
volatile const uint32_t TX_FULL:1;
volatile const uint32_t RESERVE:4;
} SPI_CNTRL_T;
typedef struct
{
volatile uint32_t DIVIDER:16;
volatile uint32_t DIVIDER2:16;
} SPI_DIVIDER_T;
typedef struct
{
volatile uint32_t SSR:2;
volatile uint32_t SS_LVL:1;
volatile uint32_t AUTOSS:1;
volatile uint32_t SS_LTRIG:1;
volatile const uint32_t LTRIG_FLAG:1;
volatile const uint32_t RESERVE:26;
} SPI_SSR_T;
typedef volatile const uint32_t SPI_RX_T;
typedef volatile uint32_t SPI_TX_T;
typedef volatile uint32_t SPI_VARCLK_T;
typedef struct
{
volatile uint32_t TX_DMA_GO:1;
volatile uint32_t RX_DMA_GO:1;
volatile const uint32_t RESERVE:30;
} SPI_DMA_T;
typedef struct
{
volatile uint32_t DIV_ONE:1;
volatile const uint32_t RESERVE0:7;
volatile uint32_t NOSLVSEL:1;
volatile uint32_t SLV_ABORT:1;
volatile uint32_t SSTA_INTEN:1;
volatile uint32_t SLV_START_INTSTS:1;
volatile const uint32_t RESERVE1:20;
} SPI_CNTRL2_T;
typedef struct
{
volatile uint32_t RX_CLR:1;
volatile uint32_t TX_CLR:1;
volatile const uint32_t RESERVE0:30;
} SPI_FIFO_CTL_T;
typedef struct
{
union {
volatile uint32_t u32CNTRL;
struct {
volatile uint32_t GO_BUSY:1;
volatile uint32_t RX_NEG:1;
volatile uint32_t TX_NEG:1;
volatile uint32_t TX_BIT_LEN:5;
volatile uint32_t TX_NUM:2;
volatile uint32_t LSB:1;
volatile uint32_t CLKP:1;
volatile uint32_t SP_CYCLE:4;
volatile uint32_t IF:1;
volatile uint32_t IE:1;
volatile uint32_t SLAVE:1;
volatile uint32_t REORDER:2;
volatile uint32_t FIFO:1;
volatile uint32_t TWOB:1;
volatile uint32_t VARCLK_EN:1;
volatile const uint32_t RX_EMPTY:1;
volatile const uint32_t RX_FULL:1;
volatile const uint32_t TX_EMPTY:1;
volatile const uint32_t TX_FULL:1;
volatile const uint32_t RESERVE:4;
} CNTRL;
};
union {
volatile uint32_t u32DIVIDER;
struct {
volatile uint32_t DIVIDER:16;
volatile uint32_t DIVIDER2:16;
} DIVIDER;
};
union {
volatile uint32_t u32SSR;
struct {
volatile uint32_t SSR:2;
volatile uint32_t SS_LVL:1;
volatile uint32_t AUTOSS:1;
volatile uint32_t SS_LTRIG:1;
volatile const uint32_t LTRIG_FLAG:1;
volatile const uint32_t RESERVE:26;
} SSR;
};
volatile const uint32_t RESERVE0;
union {
volatile const uint32_t u32RX[2];
volatile const uint32_t RX[2];
};
volatile const uint32_t RESERVE1;
volatile const uint32_t RESERVE2;
union {
volatile uint32_t u32TX[2];
volatile uint32_t TX[2];
};
volatile const uint32_t RESERVE3;
volatile const uint32_t RESERVE4;
volatile const uint32_t RESERVE5;
union {
volatile uint32_t u32VARCLK;
volatile uint32_t VARCLK;
};
union {
volatile uint32_t u32DMA;
struct {
volatile uint32_t TX_DMA_GO:1;
volatile uint32_t RX_DMA_GO:1;
volatile const uint32_t RESERVE:30;
} DMA;
};
union {
volatile uint32_t u32CNTRL2;
struct {
volatile uint32_t DIV_ONE:1;
volatile const uint32_t RESERVE0:7;
volatile uint32_t NOSLVSEL:1;
volatile uint32_t SLV_ABORT:1;
volatile uint32_t SSTA_INTEN:1;
volatile uint32_t SLV_START_INTSTS:1;
volatile const uint32_t RESERVE1:20;
} CNTRL2;
};
union {
volatile uint32_t u32FIFO_CTL;
struct {
volatile uint32_t RX_CLR:1;
volatile uint32_t TX_CLR:1;
volatile const uint32_t RESERVE0:30;
} FIFO_CTL;
};
} SPI_T;
typedef struct
{
volatile const uint32_t RESERVE0:2;
volatile uint32_t AA:1;
volatile uint32_t SI:1;
volatile uint32_t STO:1;
volatile uint32_t STA:1;
volatile uint32_t ENS1:1;
volatile uint32_t EI:1;
volatile const uint32_t RESERVE1:24;
} I2C_I2CON_T;
typedef struct
{
volatile uint32_t GC:1;
volatile uint32_t I2CADDR:7;
volatile const uint32_t RESERVE:24;
} I2C_I2CADDR_T;
typedef volatile uint32_t I2C_I2CDAT_T;
typedef volatile const uint32_t I2C_I2CSTATUS_T;
typedef volatile uint32_t I2C_I2CLK_T;
typedef struct
{
volatile uint32_t TIF:1;
volatile uint32_t DIV4:1;
volatile uint32_t ENTI:1;
volatile const uint32_t RESERVE:29;
} I2C_I2CTOC_T;
typedef struct
{
volatile const uint32_t RESERVE0:1;
volatile uint32_t I2CADM:7;
volatile const uint32_t RESERVE1:24;
} I2C_I2CADM_T;
typedef struct
{
union
{
volatile uint32_t u32I2CON;
struct
{
volatile const uint32_t RESERVE0:2;
volatile uint32_t AA:1;
volatile uint32_t SI:1;
volatile uint32_t STO:1;
volatile uint32_t STA:1;
volatile uint32_t ENS1:1;
volatile uint32_t EI:1;
volatile const uint32_t RESERVE1:24;
} I2CON;
};
union
{
volatile uint32_t u32I2CADDR0;
struct
{
volatile uint32_t GC:1;
volatile uint32_t I2CADDR:7;
volatile const uint32_t RESERVE:24;
} I2CADDR0;
};
union
{
volatile uint32_t u32I2CDAT;
volatile uint32_t I2CDAT;
};
union
{
volatile const uint32_t u32I2CSTATUS;
volatile const uint32_t I2CSTATUS;
};
union
{
volatile uint32_t u32I2CLK;
volatile uint32_t I2CLK;
};
union
{
volatile uint32_t u32I2CTOC;
struct
{
volatile uint32_t TIF:1;
volatile uint32_t DIV4:1;
volatile uint32_t ENTI:1;
volatile const uint32_t RESERVE:29;
} I2CTOC;
};
union
{
volatile uint32_t u32I2CADDR1;
struct
{
volatile uint32_t GC:1;
volatile uint32_t I2CADDR:7;
volatile const uint32_t RESERVE:24;
} I2CADDR1;
};
union
{
volatile uint32_t u32I2CADDR2;
struct
{
volatile uint32_t GC:1;
volatile uint32_t I2CADDR:7;
volatile const uint32_t RESERVE:24;
} I2CADDR2;
};
union
{
volatile uint32_t u32I2CADDR3;
struct
{
volatile uint32_t GC:1;
volatile uint32_t I2CADDR:7;
volatile const uint32_t RESERVE:24;
} I2CADDR3;
};
union
{
volatile uint32_t u32I2CADM0;
struct
{
volatile const uint32_t RESERVE0:1;
volatile uint32_t I2CADM:7;
volatile const uint32_t RESERVE1:24;
} I2CADM0;
};
union
{
volatile uint32_t u32I2CADM1;
struct
{
volatile const uint32_t RESERVE0:1;
volatile uint32_t I2CADM:7;
volatile const uint32_t RESERVE1:24;
} I2CADM1;
};
union
{
volatile uint32_t u32I2CADM2;
struct
{
volatile const uint32_t RESERVE0:1;
volatile uint32_t I2CADM:7;
volatile const uint32_t RESERVE1:24;
} I2CADM2;
};
union
{
volatile uint32_t u32I2CADM3;
struct
{
volatile const uint32_t RESERVE0:1;
volatile uint32_t I2CADM:7;
volatile const uint32_t RESERVE1:24;
} I2CADM3;
};
} I2C_T;
typedef volatile uint32_t RTC_INIR_T;
typedef struct
{
volatile uint32_t AER:16;
volatile const uint32_t ENF:1;
volatile const uint32_t RESERVE1:15;
} RTC_AER_T;
typedef struct
{
volatile uint32_t FRACTION:6;
volatile const uint32_t RESERVE0:2;
volatile uint32_t INTEGER:4;
volatile const uint32_t RESERVE1:20;
} RTC_FCR_T;
typedef struct
{
volatile uint32_t SEC1:4;
volatile uint32_t SEC10:3;
volatile const uint32_t RESERVE0:1;
volatile uint32_t MIN1:4;
volatile uint32_t MIN10:3;
volatile const uint32_t RESERVE1:1;
volatile uint32_t HR1:4;
volatile uint32_t HR10:2;
volatile const uint32_t RESERVE2:10;
} RTC_TLR_T;
typedef struct
{
volatile uint32_t DAY1:4;
volatile uint32_t DAY10:2;
volatile const uint32_t RESERVE0:2;
volatile uint32_t MON1:4;
volatile uint32_t MON10:1;
volatile const uint32_t RESERVE1:3;
volatile uint32_t YEAR1:4;
volatile uint32_t YEAR10:4;
volatile const uint32_t RESERVE2:8;
} RTC_CLR_T;
typedef struct
{
volatile uint32_t HR24_HR12:1;
volatile const uint32_t RESERVE:31;
} RTC_TSSR_T;
typedef struct
{
volatile uint32_t DWR:3;
volatile const uint32_t RESERVE:29;
} RTC_DWR_T;
typedef RTC_TLR_T RTC_TAR_T;
typedef RTC_CLR_T RTC_CAR_T;
typedef struct
{
volatile uint32_t LIR:1;
volatile const uint32_t RESERVE:31;
} RTC_LIR_T;
typedef struct
{
volatile uint32_t AIER:1;
volatile uint32_t TIER:1;
volatile const uint32_t RESERVE:30;
} RTC_RIER_T;
typedef struct
{
volatile uint32_t AIF:1;
volatile uint32_t TIF:1;
volatile const uint32_t RESERVE:30;
} RTC_RIIR_T;
typedef struct
{
volatile uint32_t TTR:3;
volatile uint32_t TWKE:1;
volatile const uint32_t RESERVE:28;
} RTC_TTR_T;
typedef struct
{
union {
volatile uint32_t u32INIR;
volatile uint32_t INIR;
};
union {
volatile uint32_t u32AER;
struct {
volatile uint32_t AER:16;
volatile const uint32_t ENF:1;
volatile const uint32_t RESERVE1:15;
} AER;
};
union {
volatile uint32_t u32FCR;
struct {
volatile uint32_t FRACTION:6;
volatile const uint32_t RESERVE0:2;
volatile uint32_t INTEGER:4;
volatile const uint32_t RESERVE1:20;
} FCR;
};
union {
volatile uint32_t u32TLR;
struct {
volatile uint32_t SEC1:4;
volatile uint32_t SEC10:3;
volatile const uint32_t RESERVE0:1;
volatile uint32_t MIN1:4;
volatile uint32_t MIN10:3;
volatile const uint32_t RESERVE1:1;
volatile uint32_t HR1:4;
volatile uint32_t HR10:2;
volatile const uint32_t RESERVE2:10;
} TLR;
};
union {
volatile uint32_t u32CLR;
struct {
volatile uint32_t DAY1:4;
volatile uint32_t DAY10:2;
volatile const uint32_t RESERVE0:2;
volatile uint32_t MON1:4;
volatile uint32_t MON10:1;
volatile const uint32_t RESERVE1:3;
volatile uint32_t YEAR1:4;
volatile uint32_t YEAR10:4;
volatile const uint32_t RESERVE2:8;
} CLR;
};
union {
volatile uint32_t u32TSSR;
struct {
volatile uint32_t HR24_HR12:1;
volatile const uint32_t RESERVE:31;
} TSSR;
};
union {
volatile uint32_t u32DWR;
struct {
volatile uint32_t DWR:3;
volatile const uint32_t RESERVE:29;
} DWR;
};
union {
volatile uint32_t u32TAR;
struct {
volatile uint32_t SEC1:4;
volatile uint32_t SEC10:3;
volatile const uint32_t RESERVE0:1;
volatile uint32_t MIN1:4;
volatile uint32_t MIN10:3;
volatile const uint32_t RESERVE1:1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -