1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     ptm_Api.h
4 
5   Copyright (C)2009-2012 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: 46687 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_PTM_CTR_PTM_API_H_
17 #define NN_PTM_CTR_PTM_API_H_
18 
19 #include <nn/Handle.h>
20 #include <nn/Result.h>
21 #include <nn/types.h>
22 #include <nn/fnd.h>
23 
24 namespace nn {
25 namespace ptm {
26 namespace CTR {
27 
28     /* Please see man pages for details
29 
30 
31 
32 
33 
34     */
35     Result Initialize();
36 
37     /* Please see man pages for details
38 
39 
40 
41     */
42     Result Finalize();
43 
44     /* Please see man pages for details
45 
46 
47     */
48 
49     /* Please see man pages for details
50 
51 
52 
53 
54     */
55     Result RegisterAlarmEvent(nn::os::Event &event);
56 
57     /* Please see man pages for details
58 
59 
60 
61 
62 
63 
64 
65 
66 
67     */
68     Result SetRtcAlarm(nn::fnd::DateTime datetime);
69 
70     /* Please see man pages for details
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81     */
82     Result GetRtcAlarm(nn::fnd::DateTime *pDatetime);
83 
84     /* Please see man pages for details
85 
86 
87 
88 
89 
90 
91     */
92     Result CancelRtcAlarm();
93 
94     /*
95 
96 */
97 
98     /* Please see man pages for details
99 
100 
101     */
102 
103     /* Please see man pages for details
104 
105     */
106     enum AdapterState
107     {
108         ADAPTERSTATE_NOCONNECTED,       //
109         ADAPTERSTATE_CONNECTED          //
110     };
111 
112     /* Please see man pages for details
113 
114     */
115     enum BatteryChargeState
116     {
117         BATTERYCHARGESTATE_NOCHARGING,   //
118         BATTERYCHARGESTATE_CHARGING      //
119     };
120 
121     /* Please see man pages for details
122 
123     */
124     enum BatteryLevel
125     {
126         BATTERYLEVEL_0,                 //
127         BATTERYLEVEL_1,                 //
128         BATTERYLEVEL_2,                 //
129         BATTERYLEVEL_3,                 //
130         BATTERYLEVEL_4,                 //
131         BATTERYLEVEL_5,                 //
132 
133         BATTERYLEVEL_MIN = BATTERYLEVEL_0,  //
134         BATTERYLEVEL_MAX = BATTERYLEVEL_5   //
135     };
136 
137     /* Please see man pages for details
138 
139 
140 
141     */
142     enum HardwareType
143     {
144         HARDWARE_TYPE_DEVICE,           //
145         HARDWARE_TYPE_BOARD,            //
146         HARDWARE_TYPE_DEBUGGER          //
147     };
148 
149     /* Please see man pages for details
150 
151 
152 
153     */
154     AdapterState    GetAdapterState();
155 
156     /* Please see man pages for details
157 
158 
159 
160     */
161     BatteryLevel    GetBatteryLevel();
162 
163     /* Please see man pages for details
164 
165 
166 
167     */
168     BatteryChargeState GetBatteryChargeState();
169 
170     /*
171 
172 */
173 } // end of namespace CTR
174 } // end of namespace ptm
175 } // end of namespace nn
176 
177 
178 #endif  // ifndef NN_PTM_CTR_PTM_API_H_
179