/*---------------------------------------------------------------------------*
  Project:  NitroSDK - FS - demos - overlay
  File:     common.h

  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: common.h,v $
  Revision 1.2  2004/10/28 13:05:01  yosizaki
  move some parameters.

  Revision 1.1  2004/10/25 10:18:47  yosizaki
  (none)

  $NoKeywords: $
 *---------------------------------------------------------------------------*/
#ifndef __NITROSDK_DEMO_WBT_WBT_FS_COMMON_H
#define __NITROSDK_DEMO_WBT_WBT_FS_COMMON_H

#include <nitro.h>


/******************************************************************************/
/* constant */

/* Wireless communication parameters */

#define		WC_PARENT_DATA_SIZE_MAX		128
#define		WC_CHILD_DATA_SIZE_MAX		256

#if	!defined(SDK_MAKEGGID_SYSTEM)
#define SDK_MAKEGGID_SYSTEM(num)    (0x003FFF00 | (num))
#endif
#define GGID_WBT_FS                 SDK_MAKEGGID_SYSTEM(0x31)

/* Port number for WFS */
#define	port_wbt            WM_PORT_BT

/* The maximum parent device send value for WFS */
#define	parent_packet_max   WC_PARENT_DATA_SIZE_MAX


/******************************************************************************/
/* function */

#if	defined(__cplusplus)
extern "C" {
#endif

/* Functions for each of the sample demo screen transitions */
void	ModeSelect(const KeyInfo *p_key);       /* Parent device/Child device selection screen */
void	ModeError(const KeyInfo *p_key);        /* Error display screen */
void	ModeWorking(const KeyInfo *p_key);      /* Busy screen */
void	ModeParent(const KeyInfo *p_key);       /* Parent device communications screen */
void	ModeChild(const KeyInfo *p_key);        /* Child device communications screen */

#if	defined(__cplusplus)
} /* extern "C" */
#endif


/******************************************************************************/


#endif  /* __NITROSDK_DEMO_WBT_WBT_FS_COMMON_H */
