📄 iolpc2378.h
字号:
struct
{
union
{
struct{
__REG16 P2_0 : 1;
__REG16 P2_1 : 1;
__REG16 P2_2 : 1;
__REG16 P2_3 : 1;
__REG16 P2_4 : 1;
__REG16 P2_5 : 1;
__REG16 P2_6 : 1;
__REG16 P2_7 : 1;
__REG16 P2_8 : 1;
__REG16 P2_9 : 1;
__REG16 P2_10 : 1;
__REG16 P2_11 : 1;
__REG16 P2_12 : 1;
__REG16 P2_13 : 1;
__REG16 P2_14 : 1;
__REG16 P2_15 : 1;
} __shortl_bit;
__REG16 __shortl;
};
union
{
struct{
__REG16 P2_0 : 1;
__REG16 P2_1 : 1;
__REG16 P2_2 : 1;
__REG16 P2_3 : 1;
__REG16 P2_4 : 1;
__REG16 P2_5 : 1;
__REG16 P2_6 : 1;
__REG16 P2_7 : 1;
__REG16 P2_8 : 1;
__REG16 P2_9 : 1;
__REG16 P2_10 : 1;
__REG16 P2_11 : 1;
__REG16 P2_12 : 1;
__REG16 P2_13 : 1;
__REG16 P2_14 : 1;
__REG16 P2_15 : 1;
} __shortu_bit;
__REG16 __shortu;
};
};
} __fgpio2_bits;
/* FGPIO 3 Registers*/
typedef union{
struct {
__REG32 P3_0 : 1;
__REG32 P3_1 : 1;
__REG32 P3_2 : 1;
__REG32 P3_3 : 1;
__REG32 P3_4 : 1;
__REG32 P3_5 : 1;
__REG32 P3_6 : 1;
__REG32 P3_7 : 1;
__REG32 P3_8 : 1;
__REG32 P3_9 : 1;
__REG32 P3_10 : 1;
__REG32 P3_11 : 1;
__REG32 P3_12 : 1;
__REG32 P3_13 : 1;
__REG32 P3_14 : 1;
__REG32 P3_15 : 1;
__REG32 P3_16 : 1;
__REG32 P3_17 : 1;
__REG32 P3_18 : 1;
__REG32 P3_19 : 1;
__REG32 P3_20 : 1;
__REG32 P3_21 : 1;
__REG32 P3_22 : 1;
__REG32 P3_23 : 1;
__REG32 P3_24 : 1;
__REG32 P3_25 : 1;
__REG32 P3_26 : 1;
__REG32 P3_27 : 1;
__REG32 P3_28 : 1;
__REG32 P3_29 : 1;
__REG32 P3_30 : 1;
__REG32 P3_31 : 1;
};
struct
{
union
{
struct{
__REG8 P3_0 : 1;
__REG8 P3_1 : 1;
__REG8 P3_2 : 1;
__REG8 P3_3 : 1;
__REG8 P3_4 : 1;
__REG8 P3_5 : 1;
__REG8 P3_6 : 1;
__REG8 P3_7 : 1;
} __byte0_bit;
__REG8 __byte0;
};
union
{
struct{
__REG8 P3_0 : 1;
__REG8 P3_1 : 1;
__REG8 P3_2 : 1;
__REG8 P3_3 : 1;
__REG8 P3_4 : 1;
__REG8 P3_5 : 1;
__REG8 P3_6 : 1;
__REG8 P3_7 : 1;
} __byte1_bit;
__REG8 __byte1;
};
union
{
struct{
__REG8 P3_0 : 1;
__REG8 P3_1 : 1;
__REG8 P3_2 : 1;
__REG8 P3_3 : 1;
__REG8 P3_4 : 1;
__REG8 P3_5 : 1;
__REG8 P3_6 : 1;
__REG8 P3_7 : 1;
} __byte2_bit;
__REG8 __byte2;
};
union
{
struct{
__REG8 P3_0 : 1;
__REG8 P3_1 : 1;
__REG8 P3_2 : 1;
__REG8 P3_3 : 1;
__REG8 P3_4 : 1;
__REG8 P3_5 : 1;
__REG8 P3_6 : 1;
__REG8 P3_7 : 1;
} __byte3_bit;
__REG8 __byte3;
};
};
struct
{
union
{
struct{
__REG16 P3_0 : 1;
__REG16 P3_1 : 1;
__REG16 P3_2 : 1;
__REG16 P3_3 : 1;
__REG16 P3_4 : 1;
__REG16 P3_5 : 1;
__REG16 P3_6 : 1;
__REG16 P3_7 : 1;
__REG16 P3_8 : 1;
__REG16 P3_9 : 1;
__REG16 P3_10 : 1;
__REG16 P3_11 : 1;
__REG16 P3_12 : 1;
__REG16 P3_13 : 1;
__REG16 P3_14 : 1;
__REG16 P3_15 : 1;
} __shortl_bit;
__REG16 __shortl;
};
union
{
struct{
__REG16 P3_0 : 1;
__REG16 P3_1 : 1;
__REG16 P3_2 : 1;
__REG16 P3_3 : 1;
__REG16 P3_4 : 1;
__REG16 P3_5 : 1;
__REG16 P3_6 : 1;
__REG16 P3_7 : 1;
__REG16 P3_8 : 1;
__REG16 P3_9 : 1;
__REG16 P3_10 : 1;
__REG16 P3_11 : 1;
__REG16 P3_12 : 1;
__REG16 P3_13 : 1;
__REG16 P3_14 : 1;
__REG16 P3_15 : 1;
} __shortu_bit;
__REG16 __shortu;
};
};
} __fgpio3_bits;
/* FGPIO 4 Registers*/
typedef union{
struct {
__REG32 P4_0 : 1;
__REG32 P4_1 : 1;
__REG32 P4_2 : 1;
__REG32 P4_3 : 1;
__REG32 P4_4 : 1;
__REG32 P4_5 : 1;
__REG32 P4_6 : 1;
__REG32 P4_7 : 1;
__REG32 P4_8 : 1;
__REG32 P4_9 : 1;
__REG32 P4_10 : 1;
__REG32 P4_11 : 1;
__REG32 P4_12 : 1;
__REG32 P4_13 : 1;
__REG32 P4_14 : 1;
__REG32 P4_15 : 1;
__REG32 P4_16 : 1;
__REG32 P4_17 : 1;
__REG32 P4_18 : 1;
__REG32 P4_19 : 1;
__REG32 P4_20 : 1;
__REG32 P4_21 : 1;
__REG32 P4_22 : 1;
__REG32 P4_23 : 1;
__REG32 P4_24 : 1;
__REG32 P4_25 : 1;
__REG32 P4_26 : 1;
__REG32 P4_27 : 1;
__REG32 P4_28 : 1;
__REG32 P4_29 : 1;
__REG32 P4_30 : 1;
__REG32 P4_31 : 1;
};
struct
{
union
{
struct{
__REG8 P4_0 : 1;
__REG8 P4_1 : 1;
__REG8 P4_2 : 1;
__REG8 P4_3 : 1;
__REG8 P4_4 : 1;
__REG8 P4_5 : 1;
__REG8 P4_6 : 1;
__REG8 P4_7 : 1;
} __byte0_bit;
__REG8 __byte0;
};
union
{
struct{
__REG8 P4_0 : 1;
__REG8 P4_1 : 1;
__REG8 P4_2 : 1;
__REG8 P4_3 : 1;
__REG8 P4_4 : 1;
__REG8 P4_5 : 1;
__REG8 P4_6 : 1;
__REG8 P4_7 : 1;
} __byte1_bit;
__REG8 __byte1;
};
union
{
struct{
__REG8 P4_0 : 1;
__REG8 P4_1 : 1;
__REG8 P4_2 : 1;
__REG8 P4_3 : 1;
__REG8 P4_4 : 1;
__REG8 P4_5 : 1;
__REG8 P4_6 : 1;
__REG8 P4_7 : 1;
} __byte2_bit;
__REG8 __byte2;
};
union
{
struct{
__REG8 P4_0 : 1;
__REG8 P4_1 : 1;
__REG8 P4_2 : 1;
__REG8 P4_3 : 1;
__REG8 P4_4 : 1;
__REG8 P4_5 : 1;
__REG8 P4_6 : 1;
__REG8 P4_7 : 1;
} __byte3_bit;
__REG8 __byte3;
};
};
struct
{
union
{
struct{
__REG16 P4_0 : 1;
__REG16 P4_1 : 1;
__REG16 P4_2 : 1;
__REG16 P4_3 : 1;
__REG16 P4_4 : 1;
__REG16 P4_5 : 1;
__REG16 P4_6 : 1;
__REG16 P4_7 : 1;
__REG16 P4_8 : 1;
__REG16 P4_9 : 1;
__REG16 P4_10 : 1;
__REG16 P4_11 : 1;
__REG16 P4_12 : 1;
__REG16 P4_13 : 1;
__REG16 P4_14 : 1;
__REG16 P4_15 : 1;
} __shortl_bit;
__REG16 __shortl;
};
union
{
struct{
__REG16 P4_0 : 1;
__REG16 P4_1 : 1;
__REG16 P4_2 : 1;
__REG16 P4_3 : 1;
__REG16 P4_4 : 1;
__REG16 P4_5 : 1;
__REG16 P4_6 : 1;
__REG16 P4_7 : 1;
__REG16 P4_8 : 1;
__REG16 P4_9 : 1;
__REG16 P4_10 : 1;
__REG16 P4_11 : 1;
__REG16 P4_12 : 1;
__REG16 P4_13 : 1;
__REG16 P4_14 : 1;
__REG16 P4_15 : 1;
} __shortu_bit;
__REG16 __shortu;
};
};
} __fgpio4_bits;
/* GPIO overall Interrupt Status register */
typedef struct{
__REG32 P0INT : 1;
__REG32 : 1;
__REG32 P1INT : 1;
__REG32 :29;
}__iointst_bits;
/* MAC Configuration Register 1 */
typedef struct{
__REG32 RE : 1;
__REG32 PARF : 1;
__REG32 RXFC : 1;
__REG32 TXFC : 1;
__REG32 LB : 1;
__REG32 : 3;
__REG32 RSTTX : 1;
__REG32 RSTMCSTX : 1;
__REG32 RSTRX : 1;
__REG32 RSTMCSRX : 1;
__REG32 : 2;
__REG32 SRST : 1;
__REG32 SOFTRST : 1;
__REG32 :16;
}__mac1_bits;
/* MAC Configuration Register 2 */
typedef struct{
__REG32 FD : 1;
__REG32 FLC : 1;
__REG32 HFE : 1;
__REG32 DLYCRC : 1;
__REG32 CRCEN : 1;
__REG32 PADCRCEN : 1;
__REG32 VLANCRCEN : 1;
__REG32 ADPE : 1;
__REG32 PPE : 1;
__REG32 LPE : 1;
__REG32 : 2;
__REG32 NOBACKOFF : 1;
__REG32 BP : 1;
__REG32 ED : 1;
__REG32 :17;
}__mac2_bits;
/* Back-to-Back Inter-Packet-Gap Register */
typedef struct{
__REG32 IPG : 7;
__REG32 :25;
}__ipgt_bits;
/* Non Back-to-Back Inter-Packet-Gap Register */
typedef struct{
__REG32 IPGR2 : 7;
__REG32 : 1;
__REG32 IPGR1 : 7;
__REG32 :17;
}__ipgr_bits;
/*Collision Window / Retry Register */
typedef struct{
__REG32 RM : 4;
__REG32 : 4;
__REG32 CW : 6;
__REG32 :18;
}__clrt_bits;
/* Maximum Frame Register */
typedef struct{
__REG32 MAXF :16;
__REG32 :16;
}__maxf_bits;
/* PHY Support Register */
typedef struct{
__REG32 : 8;
__REG32 SPEED : 1;
__REG32 :23;
}__supp_bits;
/* Test Register */
typedef struct{
__REG32 SPQ : 1;
__REG32 TP : 1;
__REG32 TB : 1;
__REG32 :29;
}__test_bits;
/* MII Mgmt Configuration Register */
typedef struct{
__REG32 SI : 1;
__REG32 SP : 1;
__REG32 CS : 3;
__REG32 :10;
__REG32 RSTMIIMGMT : 1;
__REG32 :16;
}__mcfg_bits;
/* MII Mgmt Command Register */
typedef struct{
__REG32 READ : 1;
__REG32 SCAN : 1;
__REG32 :30;
}__mcmd_bits;
/* MII Mgmt Address Register */
typedef struct{
__REG32 REGADDR : 5;
__REG32 : 3;
__REG32 PHY_ADDR : 5;
__REG32 :19;
}__madr_bits;
/* MII Mgmt Write Data Register */
typedef struct{
__REG32 WRITEDATA :16;
__REG32 :16;
}__mwtd_bits;
/* MII Mgmt Read Data Register */
typedef struct{
__REG32 READDATA :16;
__REG32 :16;
}__mrdd_bits;
/* MII Mgmt Indicators Register */
typedef struct{
__REG32 BUSY : 1;
__REG32 SCANNING : 1;
__REG32 NOT_VALID : 1;
__REG32 MII_LINC_FAIL : 1;
__REG32 :28;
}__mind_bits;
/* Station Address 0 Register */
typedef struct{
__REG32 STATION_ADDR_2 : 8;
__REG32 STATION_ADDR_1 : 8;
__REG32 :16;
}__sa0_bits;
/* Station Address 1 Register */
typedef struct{
__REG32 STATION_ADDR_4 : 8;
__REG32 STATION_ADDR_3 : 8;
__REG32 :16;
}__sa1_bits;
/* Station Address 2 Register */
typedef struct{
__REG32 STATION_ADDR_6 : 8;
__REG32 STATION_ADDR_5 : 8;
__REG32 :16;
}__sa2_bits;
/* Command Register */
typedef struct{
__REG32 RXENABLE : 1;
__REG32 TXENABLE : 1;
__REG32 : 1;
__REG32 REGRESET : 1;
__REG32 TXRESET : 1;
__REG32 RXRESET : 1;
__REG32 PASSRUNTFRAME : 1;
__REG32 PASSRXFILTER : 1;
__REG32 TXFLOWCONTROL : 1;
__REG32 RMII : 1;
__REG32 FULLDUPLEX : 1;
__REG32 :21;
}__command_bits;
/* Status Register */
typedef struct{
__REG32 RXSTATUS : 1;
__REG32 TXSTATUS : 1;
__REG32 :30;
}__status_bits;
/* Receive Number of Descriptors Register */
typedef struct{
__REG32 RXDESCRIPTORNUMBER :16;
__REG32 :16;
}__rxdescrn_bits;
/* Receive Produce Index Register */
typedef struct{
__REG32 RXPRODUCDINDEX :16;
__REG32 :16;
}__rxprodind_bits;
/* Receive Consume Index Register */
typedef struct{
__REG32 RXCONSUMEINDEX :16;
__REG32 :16;
}__rxcomind_bits;
/* Transmit Number of Descriptors Register */
typedef struct{
__REG32 TXDESCRIPTORNUMBER :16;
__REG32 :16;
}__txdescrn_bits;
/* Transmit Produce Index Register */
typedef struct{
__REG32 TXPRODUCDINDEX :16;
__REG32 :16;
}__txprodind_bits;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -