1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: y2r_Result.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: 46347 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_Y2R_CTR_Y2R_RESULT_H_ 17 #define NN_Y2R_CTR_Y2R_RESULT_H_ 18 19 #include <nn/Result.h> 20 21 /* Please see man pages for details 22 23 */ 24 25 26 namespace nn { 27 namespace y2r { 28 namespace CTR { 29 30 /* 31 32 */ 33 enum Description 34 { 35 DESCRIPTION_Y2R_IS_SLEEPING = 1 36 }; 37 38 /* Please see man pages for details 39 40 41 */ 42 NN_DEFINE_RESULT_CONST( 43 ResultIsSleeping, 44 Result::LEVEL_STATUS, Result::SUMMARY_STATUS_CHANGED, Result::MODULE_NN_CAMERA, DESCRIPTION_Y2R_IS_SLEEPING 45 ); 46 47 // For internal use 48 // If sim layer's GetOutputFormatBytes function indicates that the specified format type is invalid, this error causes PANIC 49 NN_DEFINE_RESULT_CONST( 50 ResultInvalidEnumValue, 51 Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_INVALID_ENUM_VALUE 52 ); 53 54 // For internal use 55 // If the sim layer's GetOutputBlockSize function indicates that the calculation result is larger than the output buffer size, this error causes PANIC. 56 NN_DEFINE_RESULT_CONST( 57 ResultOutOfRange, 58 Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_OUT_OF_RANGE 59 ); 60 61 // For internal use 62 // Indicates that initialization was already performed in the process. 63 NN_DEFINE_RESULT_CONST( 64 ResultAlreadyInitialized, 65 Result::LEVEL_PERMANENT, Result::SUMMARY_NOTHING_HAPPENED, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_ALREADY_INITIALIZED 66 ); 67 68 // For internal use 69 // Indicates that it was not initialized in the process. 70 NN_DEFINE_RESULT_CONST( 71 ResultNotInitialized, 72 Result::LEVEL_PERMANENT, Result::SUMMARY_NOTHING_HAPPENED, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_NOT_INITIALIZED 73 ); 74 75 } 76 } 77 } 78 79 #endif /* NN_Y2R_CTR_Y2R_RESULT_H_ */ 80