1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - WM - demos - dataShare-Model 3 File: main.h 4 5 Copyright 2006-2008 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:: 2008-09-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifndef __MAIN_H__ 19 #define __MAIN_H__ 20 21 enum 22 { 23 SYSMODE_SELECT_ROLE, // Role (whether to start as a parent or a child) selection screen 24 SYSMODE_OPTION, // Option screen 25 SYSMODE_SELECT_PARENT, // Parent selection screen (only for child) 26 SYSMODE_LOBBY, // Lobby screen (only for parent) 27 SYSMODE_LOBBYWAIT, // Lobby standby screen (only for child) 28 SYSMODE_SELECT_CHANNEL, // Channel selection screen 29 SYSMODE_SCAN_PARENT, // Parent search screen 30 SYSMODE_ERROR, // Error report screen 31 SYSMODE_PARENT, // Parent mode screen 32 SYSMODE_CHILD, // Child mode screen 33 SYSMODE_NUM 34 }; 35 36 enum 37 { 38 SHARECMD_NONE = 0, // Nothing specific (normal) 39 SHARECMD_EXITLOBBY, // Signal for ending the lobby screen 40 SHARECMD_NUM 41 }; 42 43 typedef struct ShareData_ 44 { 45 unsigned int command:3; // Instruction (used for switching the game states at once, etc.) 46 unsigned int level:2; // Signal reception strength 47 unsigned int data:3; // For graphing 48 unsigned int key:16; // Key data 49 unsigned int count:24; // Frame count 50 } 51 ShareData; 52 53 typedef struct MyGameInfo_ 54 { 55 u8 nickName[10 * 2]; 56 u8 nickNameLength; 57 u8 entryCount; 58 u16 periodicalCount; 59 } 60 MyGameInfo; 61 62 struct PRScreen_; 63 64 extern BOOL isDataReceived(int index); 65 extern ShareData *getRecvData(int index); 66 extern ShareData *getSendData(void); 67 extern void changeSysMode(int s); 68 extern struct PRScreen_ *getInfoScreen(void); 69 70 #endif 71