1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.2.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>WM_SetDCFData</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">WM_SetDCFData <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></H1> 15<h2>Syntax</h2> 16<dl> 17 <dd><PRE><CODE>#include <nitro/wm.h> 18 19<A href="WMErrCode.html">WMErrCode</A> WM_SetDCFData( 20 <A href="WMCallbackFunc.html">WMCallbackFunc</A> callback , 21 const u8* destAdr , 22 const u16* sendData, 23 u16 sendDataSize 24); 25</CODE></PRE></dd> 26</dl> 27 28<h2>Arguments</h2> 29<TABLE width="100%"> 30 <tbody> 31 <TR> 32<TD width="200"><CODE>callback</CODE></TD> 33<TD width="800">Designates the callback function to call when the asynchronous process completes. This callback is called from within the interrupt handler.</TD> 34 </TR> 35 <TR> 36<TD width="200"><CODE>destAdr</CODE></TD> 37<TD width="800">Pointer to the 6-byte buffer that indicates the MAC address of the communicating partner.</TD> 38 </TR> 39 <TR> 40<TD width="200"><CODE>sendData</CODE></TD> 41<TD width="800">Pointer to the data to be send-reserved. Note that the send-reserve data is forcibly cached.</TD> 42 </TR> 43 <TR> 44<TD width="200"><CODE>sendDataSize</CODE></TD> 45<TD width="800">The size of the send-reserved data.</TD> 46 </TR> 47 </tbody> 48</table> 49 50<h2>Return Values</h2> 51<p>Returns the results of the <CODE><A href="WMErrCode.html">WMErrCode</A></CODE> enumerated type process.</p> 52 53<H2>Description</H2> 54<P>Reserves data to be sent when using infrastructure mode communications. This function is executable only when the WM is in the <code>DCF CHILD</code> state. If the return value is <CODE>WM_ERRCODE_OPERATING</CODE>, a callback is generated after the data transmission process is complete.</P> 55 56<H2>Notes</H2> 57<P>The <CODE>sendData</CODE> argument is forcibly stored in the internal cache. To avoid overwriting surrounding memory regions, be sure to pass data that is 32-byte aligned.<BR>See the Wireless Communication Library Manual (AboutWirelessManager.pdf) for additional details.</P> 58 59<h2>See Also</h2> 60<p><a href="WM_StartDCF.html"><code>WM_StartDCF</code></a><BR> <a href="WM_EndDCF.html"><code>WM_EndDCF</code></a></p> 61 62<H2>Revision History</H2> 63<P> 642008/12/17 Added a note about how data passed in arguments is forcibly cached internally.<BR>2005/06/08 Added the fact that the callback is called from the interrupt handler.<BR>2004/10/22 Changed the type of return values.<BR>2004/10/05 Changed the type of arguments.<BR>2005/08/02 Standardized structure names.<BR>2004/07/29 Added to Description.<BR>2004/07/23 Initial version.<BR> 65</P> 66<hr><p>CONFIDENTIAL</p></body> 67</html> 68