2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide
2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide
2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
List of APIs API Call Reference<br />
RETURN<br />
OK On success.<br />
ERROR On failure to make the assignment.<br />
STATUS sdmaSendPackets (UINT32 protocolType,UINT32 priority,UINT32 portNumber,<br />
UINT32*cmdAddress)<br />
DESCRIPTION Sends packets from the CPU to any port in any MPSC protocol (or<br />
ethernet). Be<strong>for</strong>e calling this function, you must point to a valid<br />
buffer and set the byte count and packet description in the linked<br />
descriptors.<br />
INPUT<br />
UINT32<br />
ProtocolType<br />
UINT32 Priority 0 <strong>for</strong> low, 1 <strong>for</strong> high.<br />
UINT32<br />
PortNumber<br />
OUTPUT Packet sending.<br />
RETURN<br />
Note: Set the descriptors be<strong>for</strong>e calling this function.<br />
ETHERNET_PROTOCOL or MPSC_PROTOCOL.<br />
The number of the port, ETHERNET(0,1,2), MPSC(0-1).<br />
OK On success.<br />
STATUS sdma<strong>Rel</strong>easeRxDesc (RX_DESC* rxDescStruct)<br />
ERROR On failure to make the assignment.<br />
DESCRIPTION Called by the application after a packet is received and was processed.<br />
Return the used descriptor back to the descriptors chain<br />
and puts it at the end.<br />
5 - 68 VxWorks 5.5/Tornado <strong>2.2</strong> <strong>BSP</strong> <strong>Rel</strong>. <strong>1.0</strong> <strong>for</strong> <strong>PPMC</strong>-<strong>275</strong>