Interfacing with the PHY

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Interfacing with the PHY

跳至解决方案
688 次查看
sjackson
Contributor I

I'd like to talk to my Ethernet PHY through MQX to set up some configuration options and have greater control over Ethernet communications in my application. For example, I'd like to do things like automatically grab the OUI from the PHY and query link status. From what I've seen, however, there is basically ZERO documentation on using the Ethernet driver to perform such tasks. I'm using the same Micrel PHY that is used on the K60 tower and notice that there is some source code in the MQX tree to support this PHY. Moreover, that source code provides access to some of the functionality I want but I have no idea how to access it.

Can anyone explain how I can read/write PHY registers through MQX?

Thanks!

标签 (1)
标记 (3)
0 项奖励
1 解答
359 次查看
MarkP_
Contributor V

Hi,

Have you studied the example projects:

C:\Freescale\Freescale MQX 3.8\demo\security_telnet\cw10\sectelnet_twrk60n512
C:\Freescale\Freescale MQX 3.8\demo\security_webserver\cw10\secwebserver_twrk60n512

C:\Freescale\Freescale MQX 3.8\rtcs\build\cw10\rtcs_twrk60n512

Import and build those. The code functionality can be quite easily studied in CW.

The link status is used in ipcfg.c: boolean ipcfg_get_link_active()

      return ENET_link_status (((IP_IF_PTR)(ipcfg_data[device].ihandle))->HANDLE);

~Mark

在原帖中查看解决方案

0 项奖励
1 回复
360 次查看
MarkP_
Contributor V

Hi,

Have you studied the example projects:

C:\Freescale\Freescale MQX 3.8\demo\security_telnet\cw10\sectelnet_twrk60n512
C:\Freescale\Freescale MQX 3.8\demo\security_webserver\cw10\secwebserver_twrk60n512

C:\Freescale\Freescale MQX 3.8\rtcs\build\cw10\rtcs_twrk60n512

Import and build those. The code functionality can be quite easily studied in CW.

The link status is used in ipcfg.c: boolean ipcfg_get_link_active()

      return ENET_link_status (((IP_IF_PTR)(ipcfg_data[device].ihandle))->HANDLE);

~Mark

0 项奖励