1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     ndm_Types.h
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  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   $Rev: 31100 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_NDM_CTR_TYPES_H_
17 #define NN_NDM_CTR_TYPES_H_
18 
19 #include <nn/types.h>
20 
21 #ifdef __cplusplus
22 
23 namespace nn {
24 namespace ndm {
25 namespace CTR {
26 
27 enum ExclusiveMode
28 {
29     EM_NONE,                // 排他モードではない。
30     EM_INFRA,               // インフラストラクチャ通信。
31     EM_LOCAL,               // ローカル通信。スケジューラの動作も停止します。
32     EM_CEC,                 // すれちがい通信。(すれちがいプロトコル限定)
33     EM_INTENT_CEC           // すれちがいデータの交換が行われる通信。(プロトコルを限定しない)
34 };
35 
36 enum DaemonName
37 {
38     DN_CEC,
39     DN_BOSS,
40     DN_NIM,
41     DN_FRIENDS,
42     NUM_OF_DAEMONS
43 };
44 
45 enum DaemonMask
46 {
47     DM_CEC      = 1 << DN_CEC,
48     DM_BOSS     = 1 << DN_BOSS,
49     DM_NIM      = 1 << DN_NIM,
50     DM_FRIENDS  = 1 << DN_FRIENDS
51 };
52 
53 const bit32 MASK_BACKGROUOND_DAEMONS    = DM_CEC | DM_BOSS | DM_NIM;
54 const bit32 MASK_ALL_DAEMONS            = DM_CEC | DM_BOSS | DM_NIM | DM_FRIENDS;
55 
56 } // namespace CTR
57 
58 using namespace CTR;
59 
60 const bit32 CONTROL_MASK_DEFAULT    = MASK_BACKGROUOND_DAEMONS;
61 const bit32 CONTROL_MASK_ALL        = MASK_ALL_DAEMONS;
62 
63 }
64 }
65 
66 #endif // __cplusplus
67 
68 #endif // NN_NDM_CTR_TYPES_H_
69