📄 iolpc3100.h
字号:
/* USB - Endpoint Interrupt Set Register */
/* USB - Endpoint Interrupt Priority Register */
typedef struct {
__REG32 EP_0RX : 1;
__REG32 EP_0TX : 1;
__REG32 EP_1RX : 1;
__REG32 EP_1TX : 1;
__REG32 EP_2RX : 1;
__REG32 EP_2TX : 1;
__REG32 EP_3RX : 1;
__REG32 EP_3TX : 1;
__REG32 EP_4RX : 1;
__REG32 EP_4TX : 1;
__REG32 EP_5RX : 1;
__REG32 EP_5TX : 1;
__REG32 EP_6RX : 1;
__REG32 EP_6TX : 1;
__REG32 EP_7RX : 1;
__REG32 EP_7TX : 1;
__REG32 EP_8RX : 1;
__REG32 EP_8TX : 1;
__REG32 EP_9RX : 1;
__REG32 EP_9TX : 1;
__REG32 EP_10RX : 1;
__REG32 EP_10TX : 1;
__REG32 EP_11RX : 1;
__REG32 EP_11TX : 1;
__REG32 EP_12RX : 1;
__REG32 EP_12TX : 1;
__REG32 EP_13RX : 1;
__REG32 EP_13TX : 1;
__REG32 EP_14RX : 1;
__REG32 EP_14TX : 1;
__REG32 EP_15RX : 1;
__REG32 EP_15TX : 1;
} __endpints_bits;
/* USB - Realize Enpoint Register */
typedef struct {
__REG32 EP0 : 1;
__REG32 EP1 : 1;
__REG32 EP2 : 1;
__REG32 EP3 : 1;
__REG32 EP4 : 1;
__REG32 EP5 : 1;
__REG32 EP6 : 1;
__REG32 EP7 : 1;
__REG32 EP8 : 1;
__REG32 EP9 : 1;
__REG32 EP10 : 1;
__REG32 EP11 : 1;
__REG32 EP12 : 1;
__REG32 EP13 : 1;
__REG32 EP14 : 1;
__REG32 EP15 : 1;
__REG32 EP16 : 1;
__REG32 EP17 : 1;
__REG32 EP18 : 1;
__REG32 EP19 : 1;
__REG32 EP20 : 1;
__REG32 EP21 : 1;
__REG32 EP22 : 1;
__REG32 EP23 : 1;
__REG32 EP24 : 1;
__REG32 EP25 : 1;
__REG32 EP26 : 1;
__REG32 EP27 : 1;
__REG32 EP28 : 1;
__REG32 EP29 : 1;
__REG32 EP30 : 1;
__REG32 EP31 : 1;
} __realizeendp_bits;
/* USB - Endpoint Index Register */
typedef struct {
__REG32 PHY_ENDP : 5;
__REG32 :27;
} __endpind_bits;
/* USB - MaxPacketSize Register */
typedef struct {
__REG32 MaxPacketSize :10;
__REG32 :22;
} __maxpacksize_bits;
/* USB - Receive Packet Length Register */
typedef struct {
__REG32 PKT_LNGTH :10;
__REG32 DV : 1;
__REG32 PKT_RDY : 1;
__REG32 :20;
} __rcvepktlen_bits;
/* USB - Transmit Packet Length Register */
typedef struct {
__REG32 PKT_LNGHT :10;
__REG32 :22;
} __transmitpktlen_bits;
/* USB - Control Register */
typedef struct {
__REG32 RD_EN : 1;
__REG32 WR_EN : 1;
__REG32 LOG_ENDPOINT : 4;
__REG32 :26;
} __usbctrl_bits;
/* USB - Command Code Register */
typedef struct {
__REG32 : 8;
__REG32 CMD_PHASE : 8;
__REG32 CMD_CODE : 8;
__REG32 : 8;
} __cmdcode_bits;
/* USB - Command Data Register */
typedef struct {
__REG32 CMD_DATA : 8;
__REG32 :24;
} __cmddata_bits;
/* USB - DMA Request Status Register */
/* USB - DMA Request Clear Register */
/* USB - DMA Request Set Regiser */
typedef struct {
__REG32 EP0 : 1;
__REG32 EP1 : 1;
__REG32 EP2 : 1;
__REG32 EP3 : 1;
__REG32 EP4 : 1;
__REG32 EP5 : 1;
__REG32 EP6 : 1;
__REG32 EP7 : 1;
__REG32 EP8 : 1;
__REG32 EP9 : 1;
__REG32 EP10 : 1;
__REG32 EP11 : 1;
__REG32 EP12 : 1;
__REG32 EP13 : 1;
__REG32 EP14 : 1;
__REG32 EP15 : 1;
__REG32 EP16 : 1;
__REG32 EP17 : 1;
__REG32 EP18 : 1;
__REG32 EP19 : 1;
__REG32 EP20 : 1;
__REG32 EP21 : 1;
__REG32 EP22 : 1;
__REG32 EP23 : 1;
__REG32 EP24 : 1;
__REG32 EP25 : 1;
__REG32 EP26 : 1;
__REG32 EP27 : 1;
__REG32 EP28 : 1;
__REG32 EP29 : 1;
__REG32 EP30 : 1;
__REG32 EP31 : 1;
} __dmarqstdiv_bits;
/* USB - UDCA Head Register */
typedef struct {
__REG32 : 7;
__REG32 UDCA_Header :25;
} __udcahead_bits;
/* USB - EP DMA Status Register */
/* USB - EP DMA Enable Register */
/* USB - EP DMA Disable Register */
typedef struct {
__REG32 EP0 : 1;
__REG32 EP1 : 1;
__REG32 EP2 : 1;
__REG32 EP3 : 1;
__REG32 EP4 : 1;
__REG32 EP5 : 1;
__REG32 EP6 : 1;
__REG32 EP7 : 1;
__REG32 EP8 : 1;
__REG32 EP9 : 1;
__REG32 EP10 : 1;
__REG32 EP11 : 1;
__REG32 EP12 : 1;
__REG32 EP13 : 1;
__REG32 EP14 : 1;
__REG32 EP15 : 1;
__REG32 EP16 : 1;
__REG32 EP17 : 1;
__REG32 EP18 : 1;
__REG32 EP19 : 1;
__REG32 EP20 : 1;
__REG32 EP21 : 1;
__REG32 EP22 : 1;
__REG32 EP23 : 1;
__REG32 EP24 : 1;
__REG32 EP25 : 1;
__REG32 EP26 : 1;
__REG32 EP27 : 1;
__REG32 EP28 : 1;
__REG32 EP29 : 1;
__REG32 EP30 : 1;
__REG32 EP31 : 1;
} __epdmadiv_bits;
/* USB - DMA Interrupt Status Register */
/* USB - DMA Interrupt Enable Register */
typedef struct {
__REG32 End_of_Transfer_Interrupt : 1;
__REG32 New_DD_Request_Interrupt : 1;
__REG32 System_Error_Interrupt : 1;
__REG32 :29;
} __dmaintstat_bits;
/* USB - New DD Request Interrupt Status Register */
/* USB - New DD Request Interrupt Clear Register */
/* USB - New DD Request Interrupt Set Register */
/* USB - End Of Transfer Interrupt Status Register */
/* USB - End Of Transfer Interrupt Clear Register */
/* USB - End Of Transfer Interrupt Set Register */
/* USB - System Error Interrupt Status Register */
/* USB - System Error Interrupt Clear Register */
/* USB - System Error Interrupt Set Register */
typedef struct {
__REG32 EP0 : 1;
__REG32 EP1 : 1;
__REG32 EP2 : 1;
__REG32 EP3 : 1;
__REG32 EP4 : 1;
__REG32 EP5 : 1;
__REG32 EP6 : 1;
__REG32 EP7 : 1;
__REG32 EP8 : 1;
__REG32 EP9 : 1;
__REG32 EP10 : 1;
__REG32 EP11 : 1;
__REG32 EP12 : 1;
__REG32 EP13 : 1;
__REG32 EP14 : 1;
__REG32 EP15 : 1;
__REG32 EP16 : 1;
__REG32 EP17 : 1;
__REG32 EP18 : 1;
__REG32 EP19 : 1;
__REG32 EP20 : 1;
__REG32 EP21 : 1;
__REG32 EP22 : 1;
__REG32 EP23 : 1;
__REG32 EP24 : 1;
__REG32 EP25 : 1;
__REG32 EP26 : 1;
__REG32 EP27 : 1;
__REG32 EP28 : 1;
__REG32 EP29 : 1;
__REG32 EP30 : 1;
__REG32 EP31 : 1;
} __newdddiv_bits;
/* USB - Module ID Register */
typedef struct {
__REG32 REV : 8;
__REG32 VER : 8;
__REG32 IP_Number :16;
} __moduleid_bits;
/* HcRevision Register */
typedef struct {
__REG32 REV : 8;
__REG32 :24;
} __HcRevision_bits;
/* HcControl Register */
typedef struct {
__REG32 CBSR : 2;
__REG32 PLE : 1;
__REG32 IE : 1;
__REG32 CLE : 1;
__REG32 BLE : 1;
__REG32 HCFS : 2;
__REG32 IR : 1;
__REG32 RWC : 1;
__REG32 RWE : 1;
__REG32 :21;
} __HcControl_bits;
/* HcCommandStatus Register */
typedef struct {
__REG32 HCR : 1;
__REG32 CLF : 1;
__REG32 BLF : 1;
__REG32 OCR : 1;
__REG32 :12;
__REG32 SOC : 2;
__REG32 :14;
} __HcCommandStatus_bits;
/* HcInterruptStatus Register */
typedef struct {
__REG32 SO : 1;
__REG32 WDH : 1;
__REG32 SF : 1;
__REG32 RD : 1;
__REG32 UE : 1;
__REG32 FNO : 1;
__REG32 RHSC : 1;
__REG32 :23;
__REG32 OC : 1;
__REG32 : 1;
} __HcInterruptStatus_bits;
/* HcInterruptEnable Register
HcInterruptDisable Register */
typedef struct {
__REG32 SO : 1;
__REG32 WDH : 1;
__REG32 SF : 1;
__REG32 RD : 1;
__REG32 UE : 1;
__REG32 FNO : 1;
__REG32 RHSC : 1;
__REG32 :23;
__REG32 OC : 1;
__REG32 MIE : 1;
} __HcInterruptEnable_bits;
/* HcHCCA Register */
typedef struct {
__REG32 : 8;
__REG32 HCCA :24;
} __HcHCCA_bits;
/* HcPeriodCurrentED Register */
typedef struct {
__REG32 : 4;
__REG32 PCED :28;
} __HcPeriodCurrentED_bits;
/* HcControlHeadED Registerr */
typedef struct {
__REG32 : 4;
__REG32 CHED :28;
} __HcControlHeadED_bits;
/* HcControlCurrentED Register */
typedef struct {
__REG32 : 4;
__REG32 CCED :28;
} __HcControlCurrentED_bits;
/* HcBulkHeadED Register */
typedef struct {
__REG32 : 4;
__REG32 BHED :28;
} __HcBulkHeadED_bits;
/* HcBulkCurrentED Register */
typedef struct {
__REG32 : 4;
__REG32 BCED :28;
} __HcBulkCurrentED_bits;
/* HcDoneHead Register */
typedef struct {
__REG32 : 4;
__REG32 DH :28;
} __HcDoneHead_bits;
/* HcFmInterval Register */
typedef struct {
__REG32 FI :14;
__REG32 : 2;
__REG32 FSMPS :15;
__REG32 FIT : 1;
} __HcFmInterval_bits;
/* HcFmRemaining Register */
typedef struct {
__REG32 FR :14;
__REG32 :17;
__REG32 FRT : 1;
} __HcFmRemaining_bits;
/* HcFmNumber Register */
typedef struct {
__REG32 FN :16;
__REG32 :16;
} __HcFmNumber_bits;
/* HcPeriodicStart Register */
typedef struct {
__REG32 PS :14;
__REG32 :18;
} __HcPeriodicStart_bits;
/* HcLSThreshold Register */
typedef struct {
__REG32 LST :12;
__REG32 :20;
} __HcLSThreshold_bits;
/* HcRhDescriptorA Register */
typedef struct {
__REG32 NDP : 8;
__REG32 PSM : 1; // ??
__REG32 NPS : 1; // ??
__REG32 DT : 1;
__REG32 OCPM : 1;
__REG32 NOCP : 1;
__REG32 :11;
__REG32 POTPGT : 8;
} __HcRhDescriptorA_bits;
/* HcRhDescriptorB Register */
typedef struct {
__REG32 DR :16;
__REG32 PPCM :16;
} __HcRhDescriptorB_bits;
/* HcRhStatus Register */
typedef struct {
__REG32 LPS : 1;
__REG32 OCI : 1;
__REG32 :13;
__REG32 DRWE : 1;
__REG32 LPSC : 1;
__REG32 CCIC : 1;
__REG32 :13;
__REG32 CRWE : 1;
} __HcRhStatus_bits;
/* HcRhPortStatus[1:2] Register */
typedef struct {
__REG32 CCS : 1;
__REG32 PES : 1;
__REG32 PSS : 1;
__REG32 POCI : 1;
__REG32 PRS : 1;
__REG32 : 3;
__REG32 PPS : 1;
__REG32 LSDA : 1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -