6678给网口发数据的 GE 程序中,这几个SGMII 状态分别表示什么意思,谢谢。
//The port connection state for the test
typedef enum
{
GE_PORT_NOT_USED = 0,
/*the port is not connnected, can only run internal loopback test*/
GE_PORT_NO_CONNECT, //recieve all packets to port 0
/*the port connect through SGMII to another device*/
GE_PORT_SGMII_CONNECT, //recieve all packets to port 0
/*The port connect through PHY and ethernet cable to another device*/
GE_PORT_CABLE_CONNECT
}GE_Port_Connection;
还有这几个模式也不太懂
typedef enum
{
/*SGMII will be slave in auto negotiation mode*/
ETHERNET_AUTO_NEGOTIAT_SLAVE = 0,
/*SGMII will be master in auto negotiation mode*/
ETHERNET_AUTO_NEGOTIAT_MASTER,
/*SGMII will be in master force mode for following modes*/
//ETHERNET_10M_HALFDUPLEX,
ETHERNET_10M_FULLDUPLEX,
//ETHERNET_100M_HALFDUPLEX,
ETHERNET_100M_FULLDUPLEX,
ETHERNET_1000M_FULLDUPLEX,
ETHERNET_10G_FULLDUPLEX
}Ethernet_Mode;