esp_eth.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ETHERNET
  2. ========
  3. Application Example
  4. -------------------
  5. Ethernet example: :example:`ethernet/ethernet`.
  6. API Reference
  7. -------------
  8. Header Files
  9. ^^^^^^^^^^^^
  10. * :component_file:`ethernet/include/esp_eth.h`
  11. * :component_file:`ethernet/include/phy/phy.h`
  12. PHY Interfaces
  13. ^^^^^^^^^^^^^^
  14. The configured PHY model(s) are set in software by configuring the eth_config_t structure for the given PHY.
  15. Headers include a default configuration structure. These default configurations will need some members overriden or re-set before they can be used for a particular PHY hardware configuration. Consult the Ethernet example to see how this is done.
  16. * :component_file:`ethernet/include/phy/phy_tlk110.h`
  17. * :component_file:`ethernet/include/phy/phy_lan8720.h`
  18. Type Definitions
  19. ^^^^^^^^^^^^^^^^
  20. .. doxygentypedef:: eth_phy_check_link_func
  21. .. doxygentypedef:: eth_phy_check_init_func
  22. .. doxygentypedef:: eth_phy_get_speed_mode_func
  23. .. doxygentypedef:: eth_phy_get_duplex_mode_func
  24. .. doxygentypedef:: eth_phy_func
  25. .. doxygentypedef:: eth_tcpip_input_func
  26. .. doxygentypedef:: eth_gpio_config_func
  27. .. doxygentypedef:: eth_phy_get_partner_pause_enable_func
  28. Enumerations
  29. ^^^^^^^^^^^^
  30. .. doxygenenum:: eth_mode_t
  31. .. doxygenenum:: eth_speed_mode_t
  32. .. doxygenenum:: eth_duplex_mode_t
  33. .. doxygenenum:: eth_phy_base_t
  34. Structures
  35. ^^^^^^^^^^
  36. .. doxygenstruct:: eth_config_t
  37. :members:
  38. Functions
  39. ^^^^^^^^^
  40. .. doxygenfunction:: esp_eth_init
  41. .. doxygenfunction:: esp_eth_tx
  42. .. doxygenfunction:: esp_eth_enable
  43. .. doxygenfunction:: esp_eth_disable
  44. .. doxygenfunction:: esp_eth_get_mac
  45. .. doxygenfunction:: esp_eth_smi_write
  46. .. doxygenfunction:: esp_eth_smi_read
  47. .. doxygenfunction:: esp_eth_smi_wait_value
  48. .. doxygenfunction:: esp_eth_smi_wait_set
  49. .. doxygenfunction:: esp_eth_free_rx_buf
  50. PHY Configuration Constants
  51. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  52. .. doxygenvariable:: phy_tlk110_default_ethernet_config
  53. .. doxygenvariable:: phy_lan8720_default_ethernet_config