b.liu | 68a94c9 | 2025-05-24 12:53:41 +0800 | [diff] [blame] | 1 | /** |
| 2 | * @file : gsw_hal_errcode.h |
| 3 | * @brief : common hal error code |
| 4 | * @date : 2022-07-05 |
| 5 | * @author : Wind |
| 6 | * @version : v1.0 |
| 7 | * @copyright Copyright(C) 2022,Geely |
| 8 | */ |
| 9 | #ifndef __GSW_HAL_ERRCODE__H__ |
| 10 | #define __GSW_HAL_ERRCODE__H__ |
| 11 | #include <stdint.h> |
| 12 | |
| 13 | #define GSW_HAL_SUCCESS (0x0000) |
| 14 | |
| 15 | //common error code |
| 16 | #define GSW_HAL_NORMAL_FAIL (-0x0001) |
| 17 | #define GSW_HAL_FUNC_UNSUPPORT (-0x0002) |
| 18 | |
| 19 | #define GSW_HAL_ARG_INVALID (-0x0011) |
| 20 | #define GSW_HAL_NO_MEMORY (-0x0012) |
hong.liu | d241707 | 2025-06-27 07:10:37 -0700 | [diff] [blame] | 21 | #define GSW_HAL_NO_SUPPROT (-0x0013) |
b.liu | 68a94c9 | 2025-05-24 12:53:41 +0800 | [diff] [blame] | 22 | |
| 23 | //GPIO |
| 24 | |
| 25 | //AT |
| 26 | |
| 27 | //GNSS |
| 28 | #define GSW_HAL_GNSS_SUCCESS GSW_HAL_SUCCESS |
| 29 | #define GSW_HAL_ERROR_GNSS_BASE (-0x0200) /**< Base value for GNSS errors. */ |
| 30 | #define GSW_HAL_ERROR_GNSS_FAIL (-0x0201) /**< Generic failure. */ |
| 31 | #define GSW_HAL_ERROR_GNSS_MCM_SERVICES_NOT_AVAILABLE (-0x0202) /**< MCM services not available. */ |
| 32 | #define GSW_HAL_ERROR_GNSS_GENERIC (-0x0203) /**< Generic error. */ |
| 33 | #define GSW_HAL_ERROR_GNSS_BADPARM (-0x0204) /**< Bad parameter. */ |
| 34 | #define GSW_HAL_ERROR_GNSS_MEMORY (-0x0205) /**< Memory error. */ |
| 35 | #define GSW_HAL_ERROR_GNSS_INVALID_STATE (-0x0206) /**< Invalid state. */ |
| 36 | #define GSW_HAL_ERROR_GNSS_MALFORMED_MSG (-0x0207) /**< Malformed message. */ |
| 37 | #define GSW_HAL_ERROR_GNSS_NO_MEMORY (-0x0208) /**< No memory. */ |
| 38 | #define GSW_HAL_ERROR_GNSS_INTERNAL (-0x0209) /**< Internal error. */ |
| 39 | #define GSW_HAL_ERROR_GNSS_ABORTED (-0x020a) /**< Action was aborted. */ |
| 40 | #define GSW_HAL_ERROR_GNSS_CLIENT_IDS_EXHAUSTED (-0x020b) /**< Client IDs have been exhausted. */ |
| 41 | #define GSW_HAL_ERROR_GNSS_UNABORTABLE_TRANSACTION (-0x020c) /**< Unabortable transaction. */ |
| 42 | #define GSW_HAL_ERROR_GNSS_INVALID_CLIENT_ID (-0x020d) /**< Invalid client ID. */ |
| 43 | #define GSW_HAL_ERROR_GNSS_NO_THRESHOLDS (-0x020e) /**< No thresholds. */ |
| 44 | #define GSW_HAL_ERROR_GNSS_INVALID_HANDLE (-0x020f) /**< Invalid handle. */ |
| 45 | #define GSW_HAL_ERROR_GNSS_INVALID_PROFILE (-0x0210) /**< Invalid profile. */ |
| 46 | #define GSW_HAL_ERROR_GNSS_INVALID_PINID (-0x0211) /**< Invalid PIN ID. */ |
| 47 | #define GSW_HAL_ERROR_GNSS_INCORRECT_PIN (-0x0212) /**< Incorrect PIN. */ |
| 48 | #define GSW_HAL_ERROR_GNSS_NO_NETWORK_FOUND (-0x0213) /**< No network found. */ |
| 49 | #define GSW_HAL_ERROR_GNSS_CALL_FAILED (-0x0214) /**< Call failed. */ |
| 50 | #define GSW_HAL_ERROR_GNSS_OUT_OF_CALL (-0x0215) /**< Out of call. */ |
| 51 | #define GSW_HAL_ERROR_GNSS_NOT_PROVISIONED (-0x0216) /**< Not provisioned. */ |
| 52 | #define GSW_HAL_ERROR_GNSS_MISSING_ARG (-0x0217) /**< Missing argument. */ |
| 53 | #define GSW_HAL_ERROR_GNSS_ARG_TOO_LONG (-0x0218) /**< Argument is too long. */ |
| 54 | #define GSW_HAL_ERROR_GNSS_INVALID_TX_ID (-0x0219) /**< Invalid Tx ID. */ |
| 55 | #define GSW_HAL_ERROR_GNSS_DEVICE_IN_USE (-0x021a) /**< Device is in use. */ |
| 56 | #define GSW_HAL_ERROR_GNSS_OP_NETWORK_UNSUPPORTED (-0x021b) /**< OP network is not supported. */ |
| 57 | #define GSW_HAL_ERROR_GNSS_OP_DEVICE_UNSUPPORTED (-0x021c) /**< OP device is not supported. */ |
| 58 | #define GSW_HAL_ERROR_GNSS_NO_EFFECT (-0x021d) /**< No effect. */ |
| 59 | #define GSW_HAL_ERROR_GNSS_NO_FREE_PROFILE (-0x021e) /**< No free profile. */ |
| 60 | #define GSW_HAL_ERROR_GNSS_INVALID_PDP_TYPE (-0x021f) /**< Invalid PDP type. */ |
| 61 | #define GSW_HAL_ERROR_GNSS_INVALID_TECH_PREF (-0x0220) /**< Invalid technical preference. */ |
| 62 | #define GSW_HAL_ERROR_GNSS_INVALID_PROFILE_TYPE (-0x0221) /**< Invalid profile type. */ |
| 63 | #define GSW_HAL_ERROR_GNSS_INVALID_SERVICE_TYPE (-0x0222) /**< Invalid service type. */ |
| 64 | #define GSW_HAL_ERROR_GNSS_INVALID_REGISTER_ACTION (-0x0223) /**< Invalid register action. */ |
| 65 | #define GSW_HAL_ERROR_GNSS_INVALID_PS_ATTACH_ACTION (-0x0224) /**< Invalid PS attach action. */ |
| 66 | #define GSW_HAL_ERROR_GNSS_AUTHENTICATION_FAILED (-0x0225) /**< Authentication failed. */ |
| 67 | #define GSW_HAL_ERROR_GNSS_PIN_BLOCKED (-0x0226) /**< PIN is blocked. */ |
| 68 | #define GSW_HAL_ERROR_GNSS_PIN_PERM_BLOCKED (-0x0227) /**< PIN is permanently blocked. */ |
| 69 | #define GSW_HAL_ERROR_GNSS_SIM_NOT_INITIALIZED (-0x0228) /**< SIM is not initialized. */ |
| 70 | #define GSW_HAL_ERROR_GNSS_MAX_QOS_REQUESTS_IN_USE (-0x0229) /**< Maximum QoS requests are in use. */ |
| 71 | #define GSW_HAL_ERROR_GNSS_INCORRECT_FLOW_FILTER (-0x022a) /**< Incorrect flow filter. */ |
| 72 | #define GSW_HAL_ERROR_GNSS_NETWORK_QOS_UNAWARE (-0x022b) /**< Network QoS is unaware. */ |
| 73 | #define GSW_HAL_ERROR_GNSS_INVALID_ID (-0x022c) /**< Invalid ID. */ |
| 74 | #define GSW_HAL_ERROR_GNSS_INVALID_QOS_ID (-0x022d) /**< Invalid QoS ID. */ |
| 75 | #define GSW_HAL_ERROR_GNSS_REQUESTED_NUM_UNSUPPORTED (-0x022e) /**< Requested number is not supported. */ |
| 76 | #define GSW_HAL_ERROR_GNSS_INTERFACE_NOT_FOUND (-0x022f) /**< Interface was not found. */ |
| 77 | #define GSW_HAL_ERROR_GNSS_FLOW_SUSPENDED (-0x0230) /**< Flow is suspended. */ |
| 78 | #define GSW_HAL_ERROR_GNSS_INVALID_DATA_FORMAT (-0x0231) /**< Invalid data format. */ |
| 79 | #define GSW_HAL_ERROR_GNSS_GENERAL (-0x0232) /**< General error. */ |
| 80 | #define GSW_HAL_ERROR_GNSS_UNKNOWN (-0x0233) /**< Unknown error. */ |
| 81 | #define GSW_HAL_ERROR_GNSS_INVALID_ARG (-0x0234) /**< Invalid argument. */ |
| 82 | #define GSW_HAL_ERROR_GNSS_INVALID_INDEX (-0x0235) /**< Invalid index. */ |
| 83 | #define GSW_HAL_ERROR_GNSS_GET_DIALED_INFO (-0x0236) /**< NO dialed. */ |
| 84 | #define GSW_HAL_ERROR_GNSS_GET_APN (-0x0237) /**< Get apn fail. */ |
| 85 | #define GSW_HAL_ERROR_GNSS_DATA_CALL_DISCONNECT (-0x0238) /**< Disconnect data-call. */ |
| 86 | #define GSW_HAL_ERROR_GNSS_DATA_CALL_DEINIT (-0x0239) /**< Deinit data-call. */ |
| 87 | #define GSW_HAL_ERROR_GNSS_REPEAT_DATA_CALL (-0x023a) /**< Repeat data-call. */ |
| 88 | #define GSW_HAL_ERROR_GNSS_API_UNSUPPORTED (-0x023b) /**< GNSS api interface unsupport. */ |
| 89 | #define GSW_HAL_ERROR_GNSS_NOT_INITIALIZED (-0x023c) /**< GNSS not inited. */ |
| 90 | #define GSW_HAL_ERROR_GNSS_INVALID_REQUEST (-0x023d) /**< Invalid request. */ |
| 91 | #define GSW_HAL_ERROR_GNSS_XTRA_TIME_UPFATE_FAIL (-0x023e) /**< xtra time update fail. */ |
| 92 | #define GSW_HAL_ERROR_GNSS_XTRA_FILE_DOWNLOAD_FAIL (-0x023f) /**< xtra file download fail. */ |
| 93 | #define GSW_HAL_ERROR_GNSS_XTRA_INJECT_DATA_FAIL (-0x0240) /**< xtra data inject fail. */ |
| 94 | #define GSW_HAL_ERROR_GNSS_XTRA_DATA_CALL_DISABLE_FAIL (-0x0241) /**< data call disable fail. */ |
| 95 | |
| 96 | //PIN |
| 97 | |
| 98 | //NW |
| 99 | |
| 100 | //OTA |
| 101 | #define GSW_HAL_ERROR_OTA_BASE (-0x0300) |
| 102 | #define GSW_HAL_ERROR_OTA_FAIL (-0x0301) |
| 103 | #define GSW_HAL_ERROR_OTA_TIMEOUT (-0x0302) /**< ota install timeout */ |
| 104 | #define GSW_HAL_ERROR_OTA_INPROCESS (-0x0303) /**< ota install in process */ |
| 105 | #define GSW_HAL_ERROR_OTA_NO_TASK (-0x0304) /**< ota install no task */ |
| 106 | |
| 107 | //PM |
| 108 | |
| 109 | //VOICE |
| 110 | |
| 111 | //WIFI |
| 112 | #define GSW_HAL_WIFI_API_SUCCESS GSW_HAL_SUCCESS /**< Success. */ |
| 113 | #define GSW_HAL_ERROR_WIFI_API_BASE (-0x0400) |
| 114 | #define GSW_HAL_ERROR_WIFI_API_FAIL (-0x0401) |
| 115 | #define GSW_HAL_ERROR_WIFI_API_ERROR_MCM_SERVICES_NOT_AVAILABLE (-0x0402) /**< MCM services not available. */ |
| 116 | #define GSW_HAL_ERROR_WIFI_API_ERROR_GENERIC (-0x0403) /**< Generic error. */ |
| 117 | #define GSW_HAL_ERROR_WIFI_API_ERROR_BADPARM (-0x0404) /**< Bad parameter. */ |
| 118 | #define GSW_HAL_ERROR_WIFI_API_ERROR_MEMORY (-0x0405) /**< Memory error. */ |
| 119 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_STATE (-0x0406) /**< Invalid state. */ |
| 120 | #define GSW_HAL_ERROR_WIFI_API_ERROR_MALFORMED_MSG (-0x0407) /**< Malformed message. */ |
| 121 | #define GSW_HAL_ERROR_WIFI_API_ERROR_NO_MEMORY (-0x0408) /**< No memory. */ |
| 122 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INTERNAL (-0x0409) /**< Internal error. */ |
| 123 | #define GSW_HAL_ERROR_WIFI_API_ERROR_ABORTED (-0x040a) /**< Action was aborted. */ |
| 124 | #define GSW_HAL_ERROR_WIFI_API_ERROR_CLIENT_IDS_EXHAUSTED (-0x040b) /**< Client IDs have been exhausted. */ |
| 125 | #define GSW_HAL_ERROR_WIFI_API_ERROR_UNABORTABLE_TRANSACTION (-0x040c) /**< Unabortable transaction. */ |
| 126 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_CLIENT_ID (-0x040d) /**< Invalid client ID. */ |
| 127 | #define GSW_HAL_ERROR_WIFI_API_ERROR_NO_THRESHOLDS (-0x040e) /**< No thresholds. */ |
| 128 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_HANDLE (-0x040f) /**< Invalid handle. */ |
| 129 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PROFILE (-0x0410) /**< Invalid profile. */ |
| 130 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PINID (-0x0411) /**< Invalid PIN ID. */ |
| 131 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INCORRECT_PIN (-0x0412) /**< Incorrect PIN. */ |
| 132 | #define GSW_HAL_ERROR_WIFI_API_ERROR_NO_NETWORK_FOUND (-0x0413) /**< No network found. */ |
| 133 | #define GSW_HAL_ERROR_WIFI_API_ERROR_CALL_FAILED (-0x0414) /**< Call failed. */ |
| 134 | #define GSW_HAL_ERROR_WIFI_API_ERROR_OUT_OF_CALL (-0x0415) /**< Out of call. */ |
| 135 | #define GSW_HAL_ERROR_WIFI_API_ERROR_NOT_PROVISIONED (-0x0416) /**< Not provisioned. */ |
| 136 | #define GSW_HAL_ERROR_WIFI_API_ERROR_MISSING_ARG (-0x0417) /**< Missing argument. */ |
| 137 | #define GSW_HAL_ERROR_WIFI_API_ERROR_ARG_TOO_LONG (-0x0418) /**< Argument is too long. */ |
| 138 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_TX_ID (-0x0419) /**< Invalid Tx ID. */ |
| 139 | #define GSW_HAL_ERROR_WIFI_API_ERROR_DEVICE_IN_USE (-0x041a) /**< Device is in use. */ |
| 140 | #define GSW_HAL_ERROR_WIFI_API_ERROR_OP_NETWORK_UNSUPPORTED (-0x041b) /**< OP network is not supported. */ |
| 141 | #define GSW_HAL_ERROR_WIFI_API_ERROR_OP_DEVICE_UNSUPPORTED (-0x041c) /**< OP device is not supported. */ |
| 142 | #define GSW_HAL_ERROR_WIFI_API_ERROR_NO_EFFECT (-0x041d) /**< No effect. */ |
| 143 | #define GSW_HAL_ERROR_WIFI_API_ERROR_NO_FREE_PROFILE (-0x041e) /**< No free profile. */ |
| 144 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PDP_TYPE (-0x041f) /**< Invalid PDP type. */ |
| 145 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_TECH_PREF (-0x0420) /**< Invalid technical preference. */ |
| 146 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PROFILE_TYPE (-0x0421) /**< Invalid profile type. */ |
| 147 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_SERVICE_TYPE (-0x0422) /**< Invalid service type. */ |
| 148 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_REGISTER_ACTION (-0x0423) /**< Invalid register action. */ |
| 149 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PS_ATTACH_ACTION (-0x0424) /**< Invalid PS attach action. */ |
| 150 | #define GSW_HAL_ERROR_WIFI_API_ERROR_AUTHENTICATION_FAILED (-0x0425) /**< Authentication failed. */ |
| 151 | #define GSW_HAL_ERROR_WIFI_API_ERROR_PIN_BLOCKED (-0x0426) /**< PIN is blocked. */ |
| 152 | #define GSW_HAL_ERROR_WIFI_API_ERROR_PIN_PERM_BLOCKED (-0x0427) /**< PIN is permanently blocked. */ |
| 153 | #define GSW_HAL_ERROR_WIFI_API_ERROR_SIM_NOT_INITIALIZED (-0x0428) /**< SIM is not initialized. */ |
| 154 | #define GSW_HAL_ERROR_WIFI_API_ERROR_MAX_QOS_REQUESTS_IN_USE (-0x0429) /**< Maximum QoS requests are in use. */ |
| 155 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INCORRECT_FLOW_FILTER (-0x042a) /**< Incorrect flow filter. */ |
| 156 | #define GSW_HAL_ERROR_WIFI_API_ERROR_NETWORK_QOS_UNAWARE (-0x042b) /**< Network QoS is unaware. */ |
| 157 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_ID (-0x042c) /**< Invalid ID. */ |
| 158 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_QOS_ID (-0x042d) /**< Invalid QoS ID. */ |
| 159 | #define GSW_HAL_ERROR_WIFI_API_ERROR_REQUESTED_NUM_UNSUPPORTED (-0x042e) /**< Requested number is not supported. */ |
| 160 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INTERFACE_NOT_FOUND (-0x042f) /**< Interface was not found. */ |
| 161 | #define GSW_HAL_ERROR_WIFI_API_ERROR_FLOW_SUSPENDED (-0x0430) /**< Flow is suspended. */ |
| 162 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_DATA_FORMAT (-0x0431) /**< Invalid data format. */ |
| 163 | #define GSW_HAL_ERROR_WIFI_API_ERROR_GENERAL (-0x0432) /**< General error. */ |
| 164 | #define GSW_HAL_ERROR_WIFI_API_ERROR_UNKNOWN (-0x0433) /**< Unknown error. */ |
| 165 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_ARG (-0x0434) /**< Invalid argument. */ |
| 166 | #define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_INDEX (-0x0435) /**< Invalid index. */ |
| 167 | |
| 168 | //Security |
| 169 | #define GSW_HAL_ERROR_TEE_SUCCESS (GSW_HAL_SUCCESS) /** SUCCESS */ |
| 170 | #define GSW_HAL_ERROR_TEE_INIT_FAILED (-0x00700) /** INIT FALIED */ |
| 171 | #define GSW_HAL_ERROR_TEE_FAILED (-0x00701) /** FAILED */ |
| 172 | #define GSW_HAL_ERROR_TEE_HANDLE (-0x00702) /** Input/output pointer is null */ |
| 173 | #define GSW_HAL_ERROR_TEE_DATATYPE (-0x00703) /** The specified data type does not exist */ |
| 174 | #define GSW_HAL_ERROR_TEE_DATASIZE (-0x00704) /** Input data size exceeds the limit */ |
| 175 | #define GSW_HAL_ERROR_TEE_FILENAMESIZE (-0x00705) /** Input filename size exceeds the limit */ |
| 176 | #define GSW_HAL_ERROR_TEE_NOTSUPPORT (-0x00706) /** function not support */ |
| 177 | #define GSW_HAL_ERROR_TEE_SFS_WRITE (-0x00707) /** An error occurred while writing data to the security file*/ |
| 178 | #define GSW_HAL_ERROR_TEE_SFS_WRITESIZE (-0x00708) /** The actual write was not equal expected */ |
| 179 | #define GSW_HAL_ERROR_TEE_SFS_WRITE_LIMIT (-0x00709) /** The total memory of Secure file exceeds the limit */ |
| 180 | #define GSW_HAL_ERROR_TEE_SFS_READ (-0x0070a) /** An error occurred while reading data to the security file */ |
| 181 | #define GSW_HAL_ERROR_TEE_SFS_READSIZE (-0x0070b) /** The actual read was larger than expected */ |
| 182 | #define GSW_HAL_ERROR_TEE_SFS_FILE_NOEXIST (-0x0070c) /** Not found the secure file */ |
| 183 | #define GSW_HAL_ERROR_TEE_SFS_FILE_DELETE (-0x0070d) /** Failed to delete the file */ |
| 184 | #define GSW_HAL_ERROR_TEE_AES_KEYSIZE (-0x0070e) /** The specified AES key size is incorrect */ |
| 185 | #define GSW_HAL_ERROR_TEE_AES_IVSIZE (-0x0070f) /** The specified AES IV size is incorrect */ |
| 186 | #define GSW_HAL_ERROR_TEE_AES_MODE (-0x00710) /** The specified AES mode is incorrect */ |
| 187 | #define GSW_HAL_ERROR_TEE_AES_PADDING (-0x00711) /** The specified AES padding is incorrect */ |
| 188 | #define GSW_HAL_ERROR_TEE_AES_ENC (-0x00712) /** The specified AES encryption is incorrect */ |
| 189 | #define GSW_HAL_ERROR_TEE_AES_DEC (-0x00713) /** The specified AES decryption is incorrect */ |
| 190 | #define GSW_HAL_ERROR_TEE_AES_CMAC (-0x00714) /** The specified AES cmac is incorrect */ |
| 191 | #define GSW_HAL_ERROR_TEE_AES_IMP (-0x00715) /** The specified AES import is incorrect */ |
| 192 | #define GSW_HAL_ERROR_TEE_RSA_KEYSIZE (-0x00716) /** The specified RSA key size is incorrect */ |
| 193 | #define GSW_HAL_ERROR_TEE_RSA_EXP (-0x00717) /** The specified RSA exp is incorrect */ |
| 194 | #define GSW_HAL_ERROR_TEE_RSA_SHAID (-0x00718) /** The specified RSA sha mode is incorrect */ |
| 195 | #define GSW_HAL_ERROR_TEE_RSA_PADDING (-0x00719) /** The specified RSA padding is incorrect */ |
| 196 | #define GSW_HAL_ERROR_TEE_RSA_ENC (-0x0071a) /** The specified RSA encryption is incorrect */ |
| 197 | #define GSW_HAL_ERROR_TEE_RSA_DEC (-0x0071b) /** The specified RSA decryption is incorrect */ |
| 198 | #define GSW_HAL_ERROR_TEE_RSA_SIGN (-0x0071c) /** The specified RSA sign is incorrect */ |
| 199 | #define GSW_HAL_ERROR_TEE_RSA_VERIFY (-0x0071d) /** The specified RSA verify is incorrect */ |
| 200 | #define GSW_HAL_ERROR_TEE_RSA_IMP (-0x0071e) /** The specified RSA import is incorrect */ |
| 201 | #define GSW_HAL_ERROR_TEE_ECC_KEYSIZE (-0x0071f) /** The specified ECC key size is incorrect */ |
| 202 | #define GSW_HAL_ERROR_TEE_ECC_SHAID (-0x00720) /** The specified ECC sha mode is incorrect */ |
| 203 | #define GSW_HAL_ERROR_TEE_ECC_SIGN (-0x00721) /** The specified ECC sign is incorrect */ |
| 204 | #define GSW_HAL_ERROR_TEE_ECC_VERIFY (-0x00722) /** The specified ECC verify is incorrect */ |
| 205 | #define GSW_HAL_ERROR_TEE_ECC_IMP (-0x00723) /** The specified ECC import is incorrect */ |
| 206 | #define GSW_HAL_ERROR_TEE_SHA_ID (-0x00724) /** The specified SHA mode is incorrect */ |
| 207 | #define GSW_HAL_ERROR_TEE_SHA (-0x00725) /** The specified SHA is incorrect */ |
| 208 | #define GSW_HAL_ERROR_TEE_RANDOM (-0x00726) /** The specified RANDOM is incorrect */ |
| 209 | |
| 210 | //file |
| 211 | #define GSW_HAL_ERROR_FILE_BASE (-0x0500) |
| 212 | #define GSW_HAL_ERROR_FILE_NONE (-0x0501) |
| 213 | #define GSW_HAL_ERROR_FILE_POPEN (-0x0502) |
| 214 | #define GSW_HAL_ERROR_FILE_OPEN (-0x0503) |
| 215 | #define GSW_HAL_ERROR_FILE_WRITE (-0x0504) |
| 216 | #define GSW_HAL_ERROR_FILE_READ (-0x0505) |
| 217 | |
| 218 | //uart |
| 219 | #define GSW_HAL_ERROR_UART_BASE (-0x0600) |
| 220 | #define GSW_HAL_ERROR_UART_ERROR (-0x0601) |
| 221 | #define GSW_HAL_ERROR_UART_TIMEOUT (-0x0602) |
| 222 | |
| 223 | #endif |