1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     gx_Lcd.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: 21091 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_GX_CTR_GX_LCD_H_
17 #define NN_GX_CTR_GX_LCD_H_
18 
19 #include <nn/types.h>
20 #include <nn/assert.h>
21 
22 /*--------------------------------------------------------------------------
23     C API
24  *-------------------------------------------------------------------------*/
25 /*!
26   @addtogroup  nn_gx    gx
27   @{
28 */
29 
30 #ifdef  __cplusplus
31 extern "C" {
32 #endif // __cplusplus
33 
34 #ifndef NN_GX_DISPLAY0_WIDTH
35 #define NN_GX_DISPLAY0_WIDTH    240
36 #endif // NN_GX_DISPLAY0_WIDTH
37 
38 #ifndef NN_GX_DISPLAY0_HEIGHT
39 #define NN_GX_DISPLAY0_HEIGHT   400
40 #endif // NN_GX_DISPLAY0_HEIGHT
41 
42 #ifndef NN_GX_DISPLAY1_WIDTH
43 #define NN_GX_DISPLAY1_WIDTH    240
44 #endif // NN_GX_DISPLAY1_WIDTH
45 
46 #ifndef NN_GX_DISPLAY1_HEIGHT
47 #define NN_GX_DISPLAY1_HEIGHT   320
48 #endif  // NN_GX_DISPLAY1_HEIGHT
49 
50 /*!--------------------------------------------------------------------------*
51   @brief        LCDの画像表示を開始します。
52 
53   @return       なし。
54  *---------------------------------------------------------------------------*/
55 void nngxStartLcdDisplay( void );
56 
57 #ifdef  __cplusplus
58 } // extern "C"
59 #endif // __cplusplus
60 
61 /*!
62   @}
63 */
64 
65 /*--------------------------------------------------------------------------
66     C++ API
67  *-------------------------------------------------------------------------*/
68 #ifdef  __cplusplus
69 namespace nn {
70 namespace gx {
71 namespace CTR {
72 
73 /*!--------------------------------------------------------------------------*
74   @brief        上下LCD の解像度です。
75  *---------------------------------------------------------------------------*/
76 enum DisplaySize
77 {
78     /*! @brief 上LCD の幅 */
79     DISPLAY0_WIDTH  = NN_GX_DISPLAY0_WIDTH,
80     /*! @brief 上LCD の高さ */
81     DISPLAY0_HEIGHT = NN_GX_DISPLAY0_HEIGHT,
82     /*! @brief 下LCD の幅 */
83     DISPLAY1_WIDTH  = NN_GX_DISPLAY1_WIDTH,
84     /*! @brief 下LCD の高さ */
85     DISPLAY1_HEIGHT = NN_GX_DISPLAY1_HEIGHT
86 };
87 
88 /*!--------------------------------------------------------------------------*
89   @brief        LCDの画像表示を開始します。
90 
91   @return       なし。
92  *---------------------------------------------------------------------------*/
StartLcdDisplay(void)93 inline void StartLcdDisplay( void )
94 {
95     nngxStartLcdDisplay();
96 }
97 
98 
99 }}} // namespace nn::gx::CTR
100 #endif // __cplusplus
101 
102 
103 #endif /* NN_GX_CTR_GX_LCD_H_ */
104