2016-11-08 09:45:17 +00:00
ETHERNET
========
Application Example
-------------------
2017-01-19 08:16:06 +00:00
Ethernet example: :example: `ethernet/ethernet` .
2016-11-08 09:45:17 +00:00
API Reference
-------------
Header Files
^^^^^^^^^^^^
2017-01-19 08:16:06 +00:00
* :component_file:`ethernet/include/esp_eth.h`
2017-04-19 02:02:53 +00:00
* :component_file:`ethernet/include/phy/phy.h`
2016-11-08 09:45:17 +00:00
2017-04-19 02:02:53 +00:00
PHY Interfaces
^^^^^^^^^^^^^^
2016-11-08 09:45:17 +00:00
2017-04-19 02:02:53 +00:00
The configured PHY model(s) are set in software by configuring the eth_config_t structure for the given PHY.
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.
* :component_file:`ethernet/include/phy/phy_tlk110.h`
* :component_file:`ethernet/include/phy/phy_lan8720.h`
2016-11-08 09:45:17 +00:00
Type Definitions
^^^^^^^^^^^^^^^^
2017-01-06 06:16:34 +00:00
.. doxygentypedef :: eth_phy_check_link_func
.. doxygentypedef :: eth_phy_check_init_func
.. doxygentypedef :: eth_phy_get_speed_mode_func
.. doxygentypedef :: eth_phy_get_duplex_mode_func
.. doxygentypedef :: eth_phy_func
.. doxygentypedef :: eth_tcpip_input_func
2016-11-08 09:45:17 +00:00
.. doxygentypedef :: eth_gpio_config_func
2017-01-06 05:49:42 +00:00
.. doxygentypedef :: eth_phy_get_partner_pause_enable_func
2016-11-08 09:45:17 +00:00
Enumerations
^^^^^^^^^^^^
.. doxygenenum :: eth_mode_t
2017-01-06 06:16:34 +00:00
.. doxygenenum :: eth_speed_mode_t
.. doxygenenum :: eth_duplex_mode_t
2016-11-08 09:45:17 +00:00
.. doxygenenum :: eth_phy_base_t
Structures
^^^^^^^^^^
.. doxygenstruct :: eth_config_t
:members:
Functions
^^^^^^^^^
.. doxygenfunction :: esp_eth_init
.. doxygenfunction :: esp_eth_tx
.. doxygenfunction :: esp_eth_enable
.. doxygenfunction :: esp_eth_disable
.. doxygenfunction :: esp_eth_get_mac
.. doxygenfunction :: esp_eth_smi_write
.. doxygenfunction :: esp_eth_smi_read
2017-04-19 03:43:25 +00:00
.. doxygenfunction :: esp_eth_smi_wait_value
.. doxygenfunction :: esp_eth_smi_wait_set
2017-01-06 06:16:34 +00:00
.. doxygenfunction :: esp_eth_free_rx_buf
2017-04-19 02:02:53 +00:00
PHY Configuration Constants
^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. doxygenvariable :: phy_tlk110_default_ethernet_config
.. doxygenvariable :: phy_lan8720_default_ethernet_config