app_phy.h 708 B

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