/*---------------------------------------------------------------------------*
  Project:  NitroSDK - WM - demos - dataShare-1
  File:     wc.c

  Copyright 2003,2004 Nintendo.  All rights reserved.

  These coded instructions, statements, and computer programs contain
  proprietary information of Nintendo of America Inc. and/or Nintendo
  Company Ltd., and are protected by Federal copyright law.  They may
  not be disclosed to third parties or copied or duplicated in any form,
  in whole or in part, without the prior written consent of Nintendo.

  $Log: wc.c,v $
  Revision 1.29  2004/10/22 11:05:54  terui
  wc module has been cut to wireless shared region.

  Revision 1.28  2004/10/18 04:17:46  terui
  Added a specification to randomize the beacon interval and the scan interval.

  Revision 1.27  2004/10/05 09:45:29  terui
  Unified MAC addresses as array of u8.

  Revision 1.26  2004/10/04 13:40:25  terui
  Unified game group ID as u32.

  Revision 1.25  2004/09/30 08:45:09  seiki_masashi
  Set official value assigned to GGID.

  Revision 1.24  2004/09/28 09:08:04  terui
  Corrected the bug where there was no provision for
  when length comparison of WMBssDesc is in units of words.

  Revision 1.23  2004/09/27 13:32:48  terui
  Rectified the situation where GameInfo of the previous scan remained when scanning.

  Revision 1.22  2004/09/15 12:21:17  terui
  Changed functions and definitions related to debug output

  Revision 1.21  2004/09/10 12:08:10  seiki_masashi
  Changed so the number of bytes set for key sharing is hidden in the library

  Revision 1.20  2004/09/10 11:53:07  terui
  Support specifications that divide processes during initialization and termination into three stages

  Revision 1.19  2004/09/10 04:36:35  seiki_masashi
  Reduced the send/receive buffers to the minimum required size

  Revision 1.18  2004/09/10 02:48:25  seiki_masashi
  Small fix.

  Revision 1.17  2004/09/10 01:19:50  seiki_masashi
  Changed so that the maximum number of connected children is set with WC_MAX_NUM_CHILD

  Revision 1.16  2004/09/09 12:41:32  seiki_masashi
  Revised so that the maximum send data size for children is an appropriate size

  Revision 1.15  2004/09/03 04:42:13  seiki_masashi
  Changed the errcode for failed sends to WM_ERRCODE_SEND_FAILED

  Revision 1.14  2004/09/01 05:51:05  seiki_masashi
  Support added for WM_ERRCODE_INVALID_POLLBITMAP in MP.ind

  Revision 1.13  2004/09/01 05:17:11  seiki_masashi
  Supported WM_ERRCODE_INVALID_POLLBITMAP

  Revision 1.12  2004/08/30 01:57:30  seiki_masashi
  Changed WM_STATECODE_CHILD_CONNECTED to WM_STATECODE_CONNECTED

  Revision 1.11  2004/08/27 08:03:16  terui
  Changed the processes when beacon is lost and when connection ends.

  Revision 1.10  2004/08/23 04:41:01  ooe
  Support for changes to WM_StartConnect() specifications.

  Revision 1.9  2004/08/20 04:31:55  terui
  Added debugging output for when the maximum number or connected children is exceeded.

  Revision 1.8  2004/08/19 15:34:23  miya
  modified WMGameInfo structure.

  Revision 1.7  2004/08/19 02:55:17  terui
  Revised in accordance with the introduction of connection control method via entry.

  Revision 1.6  2004/08/18 00:28:35  seiki_masashi
  small fix

  Revision 1.5  2004/08/17 12:26:37  seiki_masashi
  Changed to specify send buffer in WM_StartMP argument.
  Revised in accordance with the removal of WM_ERRCODE_FRAME_GAP.

  Revision 1.4  2004/08/12 14:57:11  seiki_masashi
  Added support for the return value of WM_StepDataSharing: WM_ERRCODE_FRAME_GAP.

  Revision 1.3  2004/08/11 08:01:29  terui
  Added argument to WcInit and restructured to use with WM_StartDataSharing

  Revision 1.2  2004/08/10 06:38:24  terui
  Added WcGetAid.  Adjusted source, including revising comments and deleted unnecessary functions

  Revision 1.1  2004/08/10 00:41:54  terui
  Initial upload.

  $NoKeywords: $
 *---------------------------------------------------------------------------*/
