1 /*---------------------------------------------------------------------------*
2 
3 Copyright (C) 2013-2014 Nintendo. All rights reserved.
4 
5 These coded instructions, statements, and computer programs contain
6 proprietary information of Nintendo of America Inc. and/or Nintendo
7 Company Ltd., and are protected by Federal copyright law.  They may
8 not be disclosed to third parties or copied or duplicated in any form,
9 in whole or in part, without the prior written consent of Nintendo.
10 
11  *---------------------------------------------------------------------------*/
12 
13 #ifndef NN_EC_TYPES_APPLET_H_
14 #define NN_EC_TYPES_APPLET_H_
15 
16 #include <nn/ec/ec_Types.h>
17 
18 namespace nn { namespace ec { namespace applet {
19 
20 //! @addtogroup nn_ec_constant
21 //! @{
22 
23 /*!
24 @brief Enumerates the return codes of the EC applet.
25 */
26 enum ReturnCode
27 {
28     RETURN_CODE_SUCCESS      = 0,  //!< Success.
29     RETURN_CODE_CANCELED     = 1,  //!< Canceled.
30     RETURN_CODE_ERROR        = 2,  //!< Error.
31 
32     RETURN_CODE_NOT_EXECUTED = 99, //!< The EC applet is not running.
33 
34     RETURN_CODE_MAX,
35     RETURN_CODE_FORCE_S32 = 0x7FFFFFFF
36 };
37 
38 //! @}
39 
40 }}} // namespace nn::ec::applet
41 
42 #endif // NN_EC_TYPES_APPLET_H_
43