phy_tlk110.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. #pragma once
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #include "phy.h"
  18. /**
  19. * @brief Dump TLK110 PHY SMI configuration registers
  20. *
  21. */
  22. void phy_tlk110_dump_registers();
  23. /**
  24. * @brief Default TLK110 phy_check_init function
  25. *
  26. */
  27. void phy_tlk110_check_phy_init(void);
  28. /**
  29. * @brief Default TLK110 phy_get_speed_mode function
  30. *
  31. * @return eth_speed_mode_t Ethernet speed mode
  32. */
  33. eth_speed_mode_t phy_tlk110_get_speed_mode(void);
  34. /**
  35. * @brief Default TLK110 phy_get_duplex_mode function
  36. *
  37. * @return eth_duplex_mode_t Ethernet duplex mode
  38. */
  39. eth_duplex_mode_t phy_tlk110_get_duplex_mode(void);
  40. /**
  41. * @brief Default TLK110 phy_power_enable function
  42. *
  43. */
  44. void phy_tlk110_power_enable(bool);
  45. /**
  46. * @brief Default TLK110 phy_init function
  47. *
  48. * @return esp_err_t
  49. * - ESP_OK on success
  50. * - ESP_FAIL on error
  51. */
  52. esp_err_t phy_tlk110_init(void);
  53. /**
  54. * @brief Default TLK110 PHY configuration
  55. *
  56. * @note This configuration is not suitable for use as-is,
  57. * it will need to be modified for your particular PHY hardware setup.
  58. *
  59. */
  60. extern const eth_config_t phy_tlk110_default_ethernet_config;
  61. #ifdef __cplusplus
  62. }
  63. #endif