Home
last modified time | relevance | path

Searched refs:phy (Results 1 – 25 of 129) sorted by relevance

123456

/hal_espressif-3.5.0/components/esp_eth/src/
Desp_eth.c40 esp_eth_phy_t *phy; member
160 esp_eth_phy_t *phy = eth_driver->phy; in eth_check_link_timer_cb() local
161 phy->get_link(phy); in eth_check_link_timer_cb()
174 esp_eth_phy_t *phy = NULL; in esp_eth_driver_install() local
178 phy = config->phy; in esp_eth_driver_install()
179 …ESP_GOTO_ON_FALSE(mac && phy, ESP_ERR_INVALID_ARG, err, TAG, "can't set eth->mac or eth->phy to nu… in esp_eth_driver_install()
193 eth_driver->phy = phy; in esp_eth_driver_install()
209 phy->set_mediator(phy, &eth_driver->mediator); in esp_eth_driver_install()
212 phy->reset_hw(phy); in esp_eth_driver_install()
215 ESP_GOTO_ON_ERROR(phy->init(phy), err, TAG, "init phy failed"); in esp_eth_driver_install()
[all …]
Desp_eth_phy_w5500.c92 static esp_err_t w5500_set_mediator(esp_eth_phy_t *phy, esp_eth_mediator_t *eth) in w5500_set_mediator() argument
96 phy_w5500_t *w5500 = __containerof(phy, phy_w5500_t, parent); in w5500_set_mediator()
103 static esp_err_t w5500_get_link(esp_eth_phy_t *phy) in w5500_get_link() argument
106 phy_w5500_t *w5500 = __containerof(phy, phy_w5500_t, parent); in w5500_get_link()
114 static esp_err_t w5500_reset(esp_eth_phy_t *phy) in w5500_reset() argument
117 phy_w5500_t *w5500 = __containerof(phy, phy_w5500_t, parent); in w5500_reset()
132 static esp_err_t w5500_reset_hw(esp_eth_phy_t *phy) in w5500_reset_hw() argument
134 phy_w5500_t *w5500 = __containerof(phy, phy_w5500_t, parent); in w5500_reset_hw()
146 static esp_err_t w5500_negotiate(esp_eth_phy_t *phy) in w5500_negotiate() argument
149 phy_w5500_t *w5500 = __containerof(phy, phy_w5500_t, parent); in w5500_negotiate()
[all …]
Desp_eth_phy_ksz8851snl.c84 static esp_err_t phy_ksz8851_set_mediator(esp_eth_phy_t *phy, esp_eth_mediator_t *eth) in phy_ksz8851_set_mediator() argument
88 phy_ksz8851snl_t *ksz8851 = __containerof(phy, phy_ksz8851snl_t, parent); in phy_ksz8851_set_mediator()
95 static esp_err_t phy_ksz8851_reset(esp_eth_phy_t *phy) in phy_ksz8851_reset() argument
98 phy_ksz8851snl_t *ksz8851 = __containerof(phy, phy_ksz8851snl_t, parent); in phy_ksz8851_reset()
110 static esp_err_t phy_ksz8851_reset_hw(esp_eth_phy_t *phy) in phy_ksz8851_reset_hw() argument
112 phy_ksz8851snl_t *ksz8851 = __containerof(phy, phy_ksz8851snl_t, parent); in phy_ksz8851_reset_hw()
125 static esp_err_t phy_ksz8851_pwrctl(esp_eth_phy_t *phy, bool enable) in phy_ksz8851_pwrctl() argument
128 phy_ksz8851snl_t *ksz8851 = __containerof(phy, phy_ksz8851snl_t, parent); in phy_ksz8851_pwrctl()
142 static esp_err_t phy_ksz8851_init(esp_eth_phy_t *phy) in phy_ksz8851_init() argument
146 ESP_GOTO_ON_ERROR(phy_ksz8851_pwrctl(phy, true), err, TAG, "power control failed"); in phy_ksz8851_init()
[all …]
Desp_eth_phy_rtl8201.c128 static esp_err_t rtl8201_set_mediator(esp_eth_phy_t *phy, esp_eth_mediator_t *eth) in rtl8201_set_mediator() argument
132 phy_rtl8201_t *rtl8201 = __containerof(phy, phy_rtl8201_t, parent); in rtl8201_set_mediator()
139 static esp_err_t rtl8201_get_link(esp_eth_phy_t *phy) in rtl8201_get_link() argument
142 phy_rtl8201_t *rtl8201 = __containerof(phy, phy_rtl8201_t, parent); in rtl8201_get_link()
150 static esp_err_t rtl8201_reset(esp_eth_phy_t *phy) in rtl8201_reset() argument
153 phy_rtl8201_t *rtl8201 = __containerof(phy, phy_rtl8201_t, parent); in rtl8201_reset()
173 static esp_err_t rtl8201_reset_hw(esp_eth_phy_t *phy) in rtl8201_reset_hw() argument
175 phy_rtl8201_t *rtl8201 = __containerof(phy, phy_rtl8201_t, parent); in rtl8201_reset_hw()
191 static esp_err_t rtl8201_negotiate(esp_eth_phy_t *phy) in rtl8201_negotiate() argument
194 phy_rtl8201_t *rtl8201 = __containerof(phy, phy_rtl8201_t, parent); in rtl8201_negotiate()
[all …]
Desp_eth_phy_dm9051.c134 static esp_err_t dm9051_set_mediator(esp_eth_phy_t *phy, esp_eth_mediator_t *eth) in dm9051_set_mediator() argument
138 phy_dm9051_t *dm9051 = __containerof(phy, phy_dm9051_t, parent); in dm9051_set_mediator()
145 static esp_err_t dm9051_get_link(esp_eth_phy_t *phy) in dm9051_get_link() argument
148 phy_dm9051_t *dm9051 = __containerof(phy, phy_dm9051_t, parent); in dm9051_get_link()
156 static esp_err_t dm9051_reset(esp_eth_phy_t *phy) in dm9051_reset() argument
159 phy_dm9051_t *dm9051 = __containerof(phy, phy_dm9051_t, parent); in dm9051_reset()
184 static esp_err_t dm9051_reset_hw(esp_eth_phy_t *phy) in dm9051_reset_hw() argument
186 phy_dm9051_t *dm9051 = __containerof(phy, phy_dm9051_t, parent); in dm9051_reset_hw()
203 static esp_err_t dm9051_negotiate(esp_eth_phy_t *phy) in dm9051_negotiate() argument
206 phy_dm9051_t *dm9051 = __containerof(phy, phy_dm9051_t, parent); in dm9051_negotiate()
[all …]
Desp_eth_phy_dp83848.c134 static esp_err_t dp83848_set_mediator(esp_eth_phy_t *phy, esp_eth_mediator_t *eth) in dp83848_set_mediator() argument
138 phy_dp83848_t *dp83848 = __containerof(phy, phy_dp83848_t, parent); in dp83848_set_mediator()
145 static esp_err_t dp83848_get_link(esp_eth_phy_t *phy) in dp83848_get_link() argument
148 phy_dp83848_t *dp83848 = __containerof(phy, phy_dp83848_t, parent); in dp83848_get_link()
156 static esp_err_t dp83848_reset(esp_eth_phy_t *phy) in dp83848_reset() argument
159 phy_dp83848_t *dp83848 = __containerof(phy, phy_dp83848_t, parent); in dp83848_reset()
179 static esp_err_t dp83848_reset_hw(esp_eth_phy_t *phy) in dp83848_reset_hw() argument
181 phy_dp83848_t *dp83848 = __containerof(phy, phy_dp83848_t, parent); in dp83848_reset_hw()
197 static esp_err_t dp83848_negotiate(esp_eth_phy_t *phy) in dp83848_negotiate() argument
200 phy_dp83848_t *dp83848 = __containerof(phy, phy_dp83848_t, parent); in dp83848_negotiate()
[all …]
Desp_eth_phy_ip101.c175 static esp_err_t ip101_set_mediator(esp_eth_phy_t *phy, esp_eth_mediator_t *eth) in ip101_set_mediator() argument
179 phy_ip101_t *ip101 = __containerof(phy, phy_ip101_t, parent); in ip101_set_mediator()
186 static esp_err_t ip101_get_link(esp_eth_phy_t *phy) in ip101_get_link() argument
189 phy_ip101_t *ip101 = __containerof(phy, phy_ip101_t, parent); in ip101_get_link()
197 static esp_err_t ip101_reset(esp_eth_phy_t *phy) in ip101_reset() argument
200 phy_ip101_t *ip101 = __containerof(phy, phy_ip101_t, parent); in ip101_reset()
220 static esp_err_t ip101_reset_hw(esp_eth_phy_t *phy) in ip101_reset_hw() argument
222 phy_ip101_t *ip101 = __containerof(phy, phy_ip101_t, parent); in ip101_reset_hw()
238 static esp_err_t ip101_negotiate(esp_eth_phy_t *phy) in ip101_negotiate() argument
241 phy_ip101_t *ip101 = __containerof(phy, phy_ip101_t, parent); in ip101_negotiate()
[all …]
Desp_eth_phy_ksz80xx.c153 static esp_err_t ksz80xx_set_mediator(esp_eth_phy_t *phy, esp_eth_mediator_t *eth) in ksz80xx_set_mediator() argument
157 phy_ksz80xx_t *ksz80xx = __containerof(phy, phy_ksz80xx_t, parent); in ksz80xx_set_mediator()
164 static esp_err_t ksz80xx_get_link(esp_eth_phy_t *phy) in ksz80xx_get_link() argument
167 phy_ksz80xx_t *ksz80xx = __containerof(phy, phy_ksz80xx_t, parent); in ksz80xx_get_link()
175 static esp_err_t ksz80xx_reset(esp_eth_phy_t *phy) in ksz80xx_reset() argument
178 phy_ksz80xx_t *ksz80xx = __containerof(phy, phy_ksz80xx_t, parent); in ksz80xx_reset()
198 static esp_err_t ksz80xx_reset_hw(esp_eth_phy_t *phy) in ksz80xx_reset_hw() argument
200 phy_ksz80xx_t *ksz80xx = __containerof(phy, phy_ksz80xx_t, parent); in ksz80xx_reset_hw()
216 static esp_err_t ksz80xx_negotiate(esp_eth_phy_t *phy) in ksz80xx_negotiate() argument
219 phy_ksz80xx_t *ksz80xx = __containerof(phy, phy_ksz80xx_t, parent); in ksz80xx_negotiate()
[all …]
Desp_eth_phy_lan87xx.c281 static esp_err_t lan87xx_set_mediator(esp_eth_phy_t *phy, esp_eth_mediator_t *eth) in lan87xx_set_mediator() argument
285 phy_lan87xx_t *lan87xx = __containerof(phy, phy_lan87xx_t, parent); in lan87xx_set_mediator()
292 static esp_err_t lan87xx_get_link(esp_eth_phy_t *phy) in lan87xx_get_link() argument
295 phy_lan87xx_t *lan87xx = __containerof(phy, phy_lan87xx_t, parent); in lan87xx_get_link()
303 static esp_err_t lan87xx_reset(esp_eth_phy_t *phy) in lan87xx_reset() argument
306 phy_lan87xx_t *lan87xx = __containerof(phy, phy_lan87xx_t, parent); in lan87xx_reset()
326 static esp_err_t lan87xx_reset_hw(esp_eth_phy_t *phy) in lan87xx_reset_hw() argument
328 phy_lan87xx_t *lan87xx = __containerof(phy, phy_lan87xx_t, parent); in lan87xx_reset_hw()
345 static esp_err_t lan87xx_negotiate(esp_eth_phy_t *phy) in lan87xx_negotiate() argument
348 phy_lan87xx_t *lan87xx = __containerof(phy, phy_lan87xx_t, parent); in lan87xx_negotiate()
[all …]
/hal_espressif-3.5.0/components/esp_eth/include/
Desp_eth_phy.h48 esp_err_t (*set_mediator)(esp_eth_phy_t *phy, esp_eth_mediator_t *mediator);
60 esp_err_t (*reset)(esp_eth_phy_t *phy);
74 esp_err_t (*reset_hw)(esp_eth_phy_t *phy);
86 esp_err_t (*init)(esp_eth_phy_t *phy);
98 esp_err_t (*deinit)(esp_eth_phy_t *phy);
110 esp_err_t (*negotiate)(esp_eth_phy_t *phy);
122 esp_err_t (*get_link)(esp_eth_phy_t *phy);
135 esp_err_t (*pwrctl)(esp_eth_phy_t *phy, bool enable);
148 esp_err_t (*set_addr)(esp_eth_phy_t *phy, uint32_t addr);
161 esp_err_t (*get_addr)(esp_eth_phy_t *phy, uint32_t *addr);
[all …]
Desp_eth.h45 esp_eth_phy_t *phy; member
139 .phy = ephy, \
/hal_espressif-3.5.0/examples/ethernet/enc28j60/components/eth_enc28j60/
Desp_eth_phy_enc28j60.c136 static esp_err_t enc28j60_set_mediator(esp_eth_phy_t *phy, esp_eth_mediator_t *eth) in enc28j60_set_mediator() argument
139 phy_enc28j60_t *enc28j60 = __containerof(phy, phy_enc28j60_t, parent); in enc28j60_set_mediator()
146 static esp_err_t enc28j60_get_link(esp_eth_phy_t *phy) in enc28j60_get_link() argument
148 phy_enc28j60_t *enc28j60 = __containerof(phy, phy_enc28j60_t, parent); in enc28j60_get_link()
156 static esp_err_t enc28j60_reset(esp_eth_phy_t *phy) in enc28j60_reset() argument
158 phy_enc28j60_t *enc28j60 = __containerof(phy, phy_enc28j60_t, parent); in enc28j60_reset()
180 static esp_err_t enc28j60_reset_hw(esp_eth_phy_t *phy) in enc28j60_reset_hw() argument
182 phy_enc28j60_t *enc28j60 = __containerof(phy, phy_enc28j60_t, parent); in enc28j60_reset_hw()
193 static esp_err_t enc28j60_negotiate(esp_eth_phy_t *phy) in enc28j60_negotiate() argument
202 phy_enc28j60_t *enc28j60 = __containerof(phy, phy_enc28j60_t, parent); in enc28j60_negotiate()
[all …]
/hal_espressif-3.5.0/components/esp_eth/test_apps/main/
Desp_eth_test.c59 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); // create PHY instance variable
61 esp_eth_phy_t *phy = esp_eth_phy_new_lan8720(&phy_config); variable
63 TEST_ASSERT_NOT_NULL(phy);
64 esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy); // apply default driver configuration
83 phy->del(phy);
110 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); // create PHY instance variable
112 esp_eth_phy_t *phy = esp_eth_phy_new_lan8720(&phy_config); variable
114 TEST_ASSERT_NOT_NULL(phy);
115 esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy); // apply default driver configuration
137 phy->del(phy);
[all …]
/hal_espressif-3.5.0/components/esp_eth/test/
Dtest_emac.c105 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); variable
106 esp_eth_config_t eth_config = ETH_DEFAULT_CONFIG(mac, phy);
122 TEST_ESP_OK(phy->del(phy));
136 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); variable
137 esp_eth_config_t eth_config = ETH_DEFAULT_CONFIG(mac, phy);
155 TEST_ESP_OK(phy->del(phy));
176 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); variable
177 esp_eth_config_t eth_config = ETH_DEFAULT_CONFIG(mac, phy);
200 TEST_ESP_OK(phy->del(phy));
223 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); variable
[all …]
/hal_espressif-3.5.0/examples/ethernet/eth2ap/main/
Dethernet_example_main.c165 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); in initialize_ethernet() local
167 esp_eth_phy_t *phy = esp_eth_phy_new_rtl8201(&phy_config); in initialize_ethernet() local
169 esp_eth_phy_t *phy = esp_eth_phy_new_lan87xx(&phy_config); in initialize_ethernet() local
171 esp_eth_phy_t *phy = esp_eth_phy_new_dp83848(&phy_config); in initialize_ethernet() local
173 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8041(&phy_config); in initialize_ethernet() local
175 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8081(&phy_config); in initialize_ethernet() local
201 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8851snl(&phy_config); in initialize_ethernet() local
216 esp_eth_phy_t *phy = esp_eth_phy_new_dm9051(&phy_config); in initialize_ethernet() local
231 esp_eth_phy_t *phy = esp_eth_phy_new_w5500(&phy_config); in initialize_ethernet() local
234 esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy); in initialize_ethernet()
/hal_espressif-3.5.0/examples/ethernet/iperf/main/
Dcmd_ethernet.c226 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); in register_ethernet() local
228 esp_eth_phy_t *phy = esp_eth_phy_new_rtl8201(&phy_config); in register_ethernet() local
230 esp_eth_phy_t *phy = esp_eth_phy_new_lan87xx(&phy_config); in register_ethernet() local
232 esp_eth_phy_t *phy = esp_eth_phy_new_dp83848(&phy_config); in register_ethernet() local
234 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8041(&phy_config); in register_ethernet() local
236 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8081(&phy_config); in register_ethernet() local
262 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8851snl(&phy_config); in register_ethernet() local
277 esp_eth_phy_t *phy = esp_eth_phy_new_dm9051(&phy_config); in register_ethernet() local
292 esp_eth_phy_t *phy = esp_eth_phy_new_w5500(&phy_config); in register_ethernet() local
315 esp_eth_phy_t *phy = esp_eth_phy_new_enc28j60(&phy_config); in register_ethernet() local
[all …]
/hal_espressif-3.5.0/examples/network/simple_sniffer/main/
Dsimple_sniffer_example_main.c142 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); in initialize_eth() local
144 esp_eth_phy_t *phy = esp_eth_phy_new_rtl8201(&phy_config); in initialize_eth() local
146 esp_eth_phy_t *phy = esp_eth_phy_new_lan87xx(&phy_config); in initialize_eth() local
148 esp_eth_phy_t *phy = esp_eth_phy_new_dp83848(&phy_config); in initialize_eth() local
150 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8041(&phy_config); in initialize_eth() local
152 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8081(&phy_config); in initialize_eth() local
178 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8851snl(&phy_config); in initialize_eth() local
193 esp_eth_phy_t *phy = esp_eth_phy_new_dm9051(&phy_config); in initialize_eth() local
208 esp_eth_phy_t *phy = esp_eth_phy_new_w5500(&phy_config); in initialize_eth() local
211 esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy); in initialize_eth()
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/ble_50/multi-adv/tutorial/
DMulit_Adv_Example_Walkthrough.md5 …iguration steps, such as defining extended advertising parameters with all phy 1M,2M and coded and…
88 // 1M phy extend adv, Connectable advertising
93 // 2M phy extend adv, Scannable advertising
98 // 1M phy legacy adv, ADV_IND
104 // coded phy extend adv, Connectable advertising
164 … types of extended advertisement types and legacy adv with 1M,2M and coded phy in esp_ble_gap_ext_…
180 esp_ble_gap_pri_phy_t primary_phy; /*!< ext adv primary phy */
182 esp_ble_gap_phy_t secondary_phy; /*!< ext adv secondary phy */
188 1M phy example->
207 Random addr for 1M phy:
[all …]
/hal_espressif-3.5.0/docs/zh_CN/api-guides/
Dpartition-tables.rst29 phy_init, data, phy, 0xf000, 0x1000,
41 phy_init, data, phy, 0xf000, 0x1000,
59 phy_init, data, phy, 0xf000, 0x1000
106 * 当 Type 定义为 ``data`` 时,SubType 字段可以指定为 ``ota`` (0x00)、``phy`` (0x01)、``nvs`` (0x02)、``nvs_keys`` (…
109 - ``phy`` (1) 分区用于存放 PHY 初始化数据,从而保证可以为每个设备单独配置 PHY,而非必须采用固件中的统一 PHY 初始化数据。
111 - 默认配置下,phy 分区并不启用,而是直接将 phy 初始化数据编译至应用程序中,从而节省分区表空间(直接将此分区删掉)。
112 …- 如果需要从此分区加载 phy 初始化数据,请打开项目配置菜单(``idf.py menuconfig``),并且使能 :ref:`CONFIG_ESP_PHY_INIT_DATA_IN_PA…
/hal_espressif-3.5.0/examples/ethernet/basic/main/
Dethernet_example_main.c108 esp_eth_phy_t *phy = esp_eth_phy_new_ip101(&phy_config); in app_main() local
110 esp_eth_phy_t *phy = esp_eth_phy_new_rtl8201(&phy_config); in app_main() local
112 esp_eth_phy_t *phy = esp_eth_phy_new_lan87xx(&phy_config); in app_main() local
114 esp_eth_phy_t *phy = esp_eth_phy_new_dp83848(&phy_config); in app_main() local
116 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8041(&phy_config); in app_main() local
118 esp_eth_phy_t *phy = esp_eth_phy_new_ksz8081(&phy_config); in app_main() local
120 esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy); in app_main()
/hal_espressif-3.5.0/components/esp_phy/
DKconfig4 bool "Store phy calibration data in NVS"
24 partition is included (type: 'data', subtype: 'phy').
61 bool "Support embedded multiple phy init data bin to app bin"
65 If enabled, multiple phy init data bin will embedded into app bin
66 …If not enabled, multiple phy init data bin will still leave alone, and need to be flashed by users.
108 bool "Enable USB when phy init"
DCMakeLists.txt46 target_link_libraries(${COMPONENT_LIB} PUBLIC phy)
70 …e_get_partition_info(phy_partition_offset "--partition-type data --partition-subtype phy" "offset")
99 set(phy_name "phy")
/hal_espressif-3.5.0/examples/ethernet/enc28j60/main/
Denc28j60_example_main.c111 esp_eth_phy_t *phy = esp_eth_phy_new_enc28j60(&phy_config); in app_main() local
113 esp_eth_config_t eth_config = ETH_DEFAULT_CONFIG(mac, phy); in app_main()
141 enc28j60_set_phy_duplex(phy, ETH_DUPLEX_FULL); in app_main()
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/ble_50/peroidic_adv/tutorial/
DPeriodic_adv_Example_Walkthrough.md88 // 2M phy extend adv, Connectable advertising
155 … types of extended advertisement types and legacy adv with 1M,2M and coded phy is esp_ble_gap_ext_…
171 esp_ble_gap_pri_phy_t primary_phy; /*!< ext adv primary phy */
173 esp_ble_gap_phy_t secondary_phy; /*!< ext adv secondary phy */
179 2M phy example->
293 2M phy with connectable mode of periodic adv.
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/
Dpartitions.csv3 phy_init, data, phy, 0xf000, 0x1000,

123456