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=utf-8"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<TITLE>WXC_RegisterCommonData</TITLE> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">WXC_RegisterCommonData <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/wxc.h></CODE><BR> <BR> <CODE>void WXC_RegisterCommonData(u32 ggid, WXCCallback callback, u8 *send_ptr, u32 send_size, u8 *recv_ptr, u32 recv_size);</CODE><br> <br> 20 </dd> 21</dl> 22<h2>Arguments</h2> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26<TD width="13%"><EM><STRONG>ggid</STRONG></EM></TD> 27<TD width="87%">GGID of the data to register.</TD> 28 </TR> 29 <TR> 30<TD width="13%"><EM><STRONG>callback</STRONG></EM></TD> 31<TD width="87%">User callback function. It is invoked when the data exchange is complete. 32 </TD> 33 </TR> 34 <TR> 35<TD width="13%"><EM><STRONG>send_ptr</STRONG></EM></TD> 36<TD width="87%">Pointer to the data to register.</TD> 37 </TR> 38 <TR> 39<TD width="13%"><EM><STRONG>send_size</STRONG></EM></TD> 40<TD width="87%">Size of the data to register.</TD> 41 </TR> 42 <TR> 43<TD width="13%"><EM><STRONG>recv_ptr</STRONG></EM></TD> 44<TD width="87%">Pointer to the receive buffer.</TD> 45 </TR> 46 <TR> 47<TD width="13%"><EM><STRONG>recv_size</STRONG></EM></TD> 48<TD width="87%">Size of the receive buffer.</TD> 49 </TR> 50 </TBODY> 51</TABLE> 52 53<h2>Return Values</h2> 54<p>None.</p> 55 56<H2>Description</H2> 57<p> 58This function registers a GGID to search for other units executing chance encounter communications, and sets data to be exchanged.<br />The WXC library uses the GGID registered using this function to search for other units executing chance encounter communications and automatically exchanges data.<br />You can use the <code><a href="WXC_SetInitialData.html">WXC_SetInitialData</a></code> function to reconfigure the data set by this function. 59</p> 60 61<H2>Note</H2> 62<p> 63The WXC library does not use the beacon's GGID value that is assigned by the MP communication parent. The value used has special bits (WXC_GGID_COMMON_BIT: 0x80000000) added to the GGID that indicate common chance encounter communications.<a href="../../romfiles/wmtesttool.html">Note this point when monitoring actual radio wave status using <CODE><a href="../../romfiles/wmtesttool.html">WmTestTool</a></CODE>.</p> 64 65<h2>See Also</h2> 66<p><CODE><a href="WXC_SetInitialData.html">WXC_SetInitialData</a></CODE></P> 67 68<H2>Revision History</H2> 69<P> 702009/09/29 Added <B>Note</B> about special bits that are added to the beacon's GGID.<br />2009/04/21 Initial version. 71</P> 72<hr><p>CONFIDENTIAL</p></body> 73</html> 74