Interfacing with the PHY

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Interfacing with the PHY

ソリューションへジャンプ
744件の閲覧回数
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 解決策
415件の閲覧回数
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 返信
416件の閲覧回数
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 件の賞賛
返信