2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								ETHERNET
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								========
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Application Example
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-------------------
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-01-19 16:16:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Ethernet example: :example: `ethernet/ethernet` .
 
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-19 12:02:53 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								PHY Interfaces
 
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								--------------
 
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-19 12:02:53 +10: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.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  *  :component_file:`ethernet/include/eth_phy/phy.h` 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  *  :component_file:`ethernet/include/eth_phy/phy_tlk110.h` 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  *  :component_file:`ethernet/include/eth_phy/phy_lan8720.h` 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PHY Configuration Constants
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								..  doxygenvariable ::  phy_tlk110_default_ethernet_config
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								..  doxygenvariable ::  phy_lan8720_default_ethernet_config
  
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								API Reference - Ethernet
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								------------------------
 
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								..  include ::  /_build/inc/esp_eth.inc
  
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								API Reference - PHY Common
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								--------------------------
 
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								..  include ::  /_build/inc/phy.inc
  
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								API Reference - PHY TLK110
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								--------------------------
 
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								..  include ::  /_build/inc/phy_tlk110.inc
  
						 
					
						
							
								
									
										
										
										
											2016-11-08 17:45:17 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								API Reference - PHY LAN8720
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---------------------------
 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-19 12:02:53 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-05-02 10:36:01 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								..  include ::  /_build/inc/phy_lan8720.inc
  
						 
					
						
							
								
									
										
										
										
											2017-04-19 12:02:53 +10:00