📄 wdbnetrompktdrv.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/wdbNetromPktDrv.html - generated by refgen from wdbNetromPktDrv.c --> <title> wdbNetromPktDrv </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>wdbNetromPktDrv</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>wdbNetromPktDrv</strong> - NETROM packet driver for the WDB agent </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./wdbNetromPktDrv.html#wdbNetromPktDevInit">wdbNetromPktDevInit</a></i>( )</b> - initialize a NETROM packet device for the WDB agent<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is a lightweight NETROM driver that interfaces with the WDB agent'sUDP/IP interpreter. It allows the WDB agent to communicate with the hostusing the NETROM ROM emulator. It uses the emulator's read-only protocolfor bi-directional communication.It requires that NetROM's udpsrcmode option is on.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wdbNetromPktDrv.html#top">wdbNetromPktDrv</a></b><hr><a name="wdbNetromPktDevInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>wdbNetromPktDevInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>wdbNetromPktDevInit</i>( )</strong> - initialize a NETROM packet device for the WDB agent</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void wdbNetromPktDevInit ( WDB_NETROM_PKT_DEV * pPktDev, /* packet device to initialize */ caddr_t dpBase, /* address of dualport memory */ int width, /* number of bytes in a ROM word */ int index, /* pod zero's index in a ROM word */ int numAccess, /* to pod zero per byte read */ void (* stackRcv)(), /* callback when packet arrives */ int pollDelay /* poll task delay */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes a NETROM packet device. It is typicallycalled from <b>usrWdb.c</b> when the WDB agents NETROM communication pathis selected.The <i>dpBase</i> parameter is the address of NetROM's dualport RAM.The <i>width</i> parameter is the width of a word in ROM space, and can be1, 2, or 4 to select 8-bit, 16-bit, or 32-bit widthrespectivly (use the macro <b>WDB_NETROM_WIDTH</b> in <b>configAll.h</b>for this parameter).The <i>index</i> parameter refers to which byte of the ROM contains pod zero.The <i>numAccess</i> parameter should be set to the number of accesses to PODzero that are required to read a byte. It is typically one, but some boardsactually read a word at a time.This routine spawns a task which polls the NetROM for incommingpackets every <i>pollDelay</i> clock ticks.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wdbNetromPktDrv.html#top">wdbNetromPktDrv</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -