1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: hio_Api.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: 35168 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_MIDI_CTR_MIDI_API_H_ 17 #define NN_MIDI_CTR_MIDI_API_H_ 18 19 /* Please see man pages for details 20 21 22 */ 23 24 #include <nn/types.h> 25 #include <nn/Result.h> 26 #include <nn/midi/CTR/midi_Types.h> 27 28 namespace nn { 29 namespace midi { 30 namespace CTR { 31 32 /* Please see man pages for details 33 34 35 36 */ 37 38 /* Please see man pages for details 39 40 41 42 */ 43 void Initialize(); 44 45 46 /* Please see man pages for details 47 48 49 */ 50 void Finalize(); 51 52 /* 53 54 */ 55 56 /* Please see man pages for details 57 58 59 60 61 62 63 64 65 66 67 */ 68 Result Open(); 69 70 /* Please see man pages for details 71 72 73 74 75 76 77 78 */ 79 Result Close(); 80 81 /* Please see man pages for details 82 83 84 85 86 87 88 89 90 91 92 93 94 */ 95 Result Reset(); 96 97 /* Please see man pages for details 98 99 100 101 102 103 104 105 106 107 108 */ 109 Result GetDeviceInfo(DeviceInfo* pInfo); 110 111 /* Please see man pages for details 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 */ 127 Result GetReadableLength(s32* pSize); 128 129 /* Please see man pages for details 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 */ 145 Result Read(void* pBuf, s32* pReadSize, s32 bufferSize); 146 147 148 149 150 151 } 152 } 153 } 154 155 156 #endif // ifndef NN_MIDI_CTR_MIDI_API_H_ 157