1 /*---------------------------------------------------------------------------* 2 3 Copyright (C) 2012 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_AC_AC_TYPES_DEBUG_H_ 14 #define NN_AC_AC_TYPES_DEBUG_H_ 15 16 #include <cafe/net/nc_types.h> 17 18 //! @addtogroup nn_ac_devapi_c 19 //! @{ 20 21 /*! 22 @brief Enumerated type that represents the networks to configure. It is used by the API functions in configuration operations. 23 24 Note that the values start from 1. 25 (In the NC library, the values for the networks to configure started from 0.) 26 */ 27 typedef enum 28 { 29 AC_CONFIG_ID_1 = 1, //!< Network config connection 1. 30 AC_CONFIG_ID_2 = 2, //!< Network config connection 2. 31 AC_CONFIG_ID_3 = 3, //!< Network config connection 3. 32 AC_CONFIG_ID_4 = 4, //!< Network config connection 4. 33 AC_CONFIG_ID_5 = 5, //!< Network config connection 5. 34 AC_CONFIG_ID_6 = 6 //!< Network config connection 6. 35 } ACConfigId; 36 37 /*! 38 @brief This structure stores the network configuration. 39 */ 40 typedef netconf_profile_t ACConfig; 41 42 //! @} 43 44 #ifdef __cplusplus 45 46 namespace nn { 47 namespace ac { 48 49 //! @addtogroup nn_ac_devapi_cpp 50 //! @{ 51 52 /*! 53 @brief Enumerated type that represents the networks to configure. It is used by the API functions in configuration operations. 54 55 Note that the values start from 1. 56 (In the NC library, the values for the networks to configure started from 0.) 57 */ 58 enum ConfigIdNum 59 { 60 CONFIG_ID_1 = AC_CONFIG_ID_1, //!< Network config connection 1. 61 CONFIG_ID_2 = AC_CONFIG_ID_2, //!< Network config connection 2. 62 CONFIG_ID_3 = AC_CONFIG_ID_3, //!< Network config connection 3. 63 CONFIG_ID_4 = AC_CONFIG_ID_4, //!< Network config connection 4. 64 CONFIG_ID_5 = AC_CONFIG_ID_5, //!< Network config connection 5. 65 CONFIG_ID_6 = AC_CONFIG_ID_6 //!< Network config connection 6. 66 }; 67 68 /*! 69 @brief This structure stores the network configuration. 70 */ 71 typedef netconf_profile_t Config; 72 73 /*! 74 @brief Enumerated type representing the networks to configure. 75 76 This is the <tt>typedef</tt> for <tt>nn::ac::ConfigIdNum</tt>. 77 */ 78 typedef nn::ac::ConfigIdNum ConfigId; 79 80 //! @} 81 82 } // namespace ac 83 } // namespace nn 84 85 #define AC_CONVERT_NETCONF_PROFILE_TO_CONFIGID( net_id ) ( static_cast<nn::ac::ConfigId>((net_id)+1) ) 86 #define AC_CONVERT_CONFIGID_TO_NETCONF_PROFILE( ac_id ) ( (ac_id)-1 ) 87 88 #endif // __cplusplus 89 90 #endif // NN_AC_AC_TYPES_DEBUG_H_ 91