1 #ifndef __APP_PHY_H 2 #define __APP_PHY_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #include "cmem7_includes.h" 9 10 #define PHY_SPEED_10 0x0 /*!< SPEED : 10M */ 11 #define PHY_SPEED_100 0x1 /*!< SPEED : 100M */ 12 #define PHY_SPEED_1000 0x2 /*!< SPEED : 1000M */ 13 14 #define PHY_DUPLEX_HALF 0x0 /*!< DUPLEX : half */ 15 #define PHY_DUPLEX_FULL 0x1 /*!< DUPLEX : full */ 16 17 void phy_Reset(void); 18 void phy_AutoNeg(void); 19 BOOL phy_IsLink(void); 20 BOOL phy_PartnerCanAutoNeg(void); 21 uint32_t phy_GetSpeed(void); 22 uint32_t phy_GetDuplex(void); 23 BOOL phy_Init(void); 24 25 #ifdef __cplusplus 26 } 27 #endif 28 29 #endif 30 31 32 33