1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - WXC - demos - relayStation-2
3   File:     user.h
4 
5   Copyright 2005-2009 Nintendo. All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law. They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Date:: 2007-11-15#$
14   $Rev: 2414 $
15   $Author: hatamoto_minoru $
16  *---------------------------------------------------------------------------*/
17 
18 #ifndef NITRO_BUILD_DEMOS_INCLUDE_USER_H_
19 #define NITRO_BUILD_DEMOS_INCLUDE_USER_H_
20 
21 
22 /*****************************************************************************/
23 /* Constants */
24 
25 /*
26  * GGID used for testing.
27  * This sample functions as a relay station for simple-1.
28  */
29 #define SDK_MAKEGGID_SYSTEM(num)              (0x003FFF00 | (num))
30 #define GGID_ORG_1                            SDK_MAKEGGID_SYSTEM(0x51)
31 
32 /* Send/receive data size for testing */
33 #define DATA_SIZE (1024 * 20)
34 
35 
36 /*****************************************************************************/
37 /* Variables */
38 
39 /* If the relay station is in relay mode: TRUE */
40 extern BOOL station_is_relay;
41 
42 /* Currently registered send data */
43 extern u8 send_data[DATA_SIZE];
44 
45 /* The original owner of the above send data */
46 extern u8 send_data_owner[6];
47 
48 
49 /*****************************************************************************/
50 /* Functions */
51 
52 /*---------------------------------------------------------------------------*
53   Name:         User_Init
54 
55   Description:  User-side initialization operation for WXC library.
56 
57   Arguments:    None.
58 
59   Returns:      None.
60  *---------------------------------------------------------------------------*/
61 void    User_Init(void);
62 
63 
64 
65 #endif /* NITRO_BUILD_DEMOS_INCLUDE_USER_H_ */
66