lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /*********************************************************************************
|
| 2 | ** Copyright @ Fibocom Technologies Co., Ltd. 2023-2030. All rights reserved.
|
| 3 | ** File name: fibo_error.h
|
| 4 | ** Author: GaoZeng
|
| 5 | ** Version: V1.0.0
|
| 6 | ** Date: 2023.02.14
|
| 7 | ** Description: This file provides the definitions for error code.
|
| 8 | ** Others:
|
| 9 | ** History:
|
| 10 | ***********************************************************************************/
|
| 11 | #ifndef __FIBO_ERROR_H__
|
| 12 | #define __FIBO_ERROR_H__
|
| 13 |
|
| 14 | /****************************************************************************
|
| 15 | * Error Code Definition
|
| 16 | ***************************************************************************/
|
| 17 |
|
| 18 | typedef enum {
|
| 19 | E_FIBO_NO_ERR = 0,
|
| 20 | E_FIBO_ERR_GENERIC = -1, /*Generic error. */
|
| 21 | E_FIBO_ERR_NOT_SUPPORT = -2,
|
| 22 | E_FIBO_ERR_IO_ERROR = -3,
|
| 23 | E_FIBO_ERR_NOT_IMPLEMENTED = -4,
|
| 24 | E_FIBO_ERR_IP_INVALID = -5,
|
| 25 | E_FIBO_ERR_OS_INVALID = -6,
|
| 26 | E_FIBO_ERR_LOG_INIT_FIAL = -7,
|
| 27 | E_FIBO_ERR_OS_TIMEOUT = -8,
|
| 28 | E_FIBO_ERR_OS_ERROR = -9,
|
| 29 | E_FIBO_ERR_PARAM_INVALID = -10, /*Parameter is invalid.*/
|
| 30 | E_FIBO_ERR_CALLBACK_EXIST = -11,
|
| 31 | E_FIBO_ERR_SERVER_FD_PARAM_INVALID = -12,
|
| 32 | E_FIBO_ERR_DATA_CREATE_FIAL = -13,
|
| 33 | E_FIBO_ERR_DATA_INVALID_TECH_PREF = -14, /*Invalid technical preference. */
|
| 34 | E_FIBO_ERR_DATA_INVALID_APN_TYPE = -15,
|
| 35 | E_FIBO_ERR_DATA_INVALID_AUTH_TYPE = -16,
|
| 36 | E_FIBO_ERR_DATA_INVALID_IP_FAMILY_PREF = -17,
|
| 37 | E_FIBO_ERR_DATA_INVALID_CDMA_PROFILE_PREF = -18,
|
| 38 | E_FIBO_ERR_DATA_INVALID_UMTS_PROFILE_PREF = -19,
|
| 39 | E_FIBO_ERR_DATA_INVALID_USERNAM_PREF = -20,
|
| 40 | E_FIBO_ERR_DATA_INVALID_PASSWORD_PREF = -21,
|
| 41 | E_FIBO_ERR_DATA_CALL_FAILED = -22,
|
| 42 | E_FIBO_ERR_DATA_GET_IP_FAIL = -23,
|
| 43 | E_FIBO_ERR_DATA_GET_NAME_FAIL = -24,
|
| 44 | E_FIBO_ERR_DATA_GET_NO_IP = -25,
|
| 45 | E_FIBO_ERR_DATA_CALL_EXIST = -26,
|
| 46 | E_FIBO_ERR_RADIO_RESET = -27, /*SSR happen, device not in proper state. */
|
| 47 | E_FIBO_ERR_INSUFFICIENT_RESOURCES = -28, /*Insufficient resources. */
|
| 48 | E_FIBO_ERR_DATA_APN_BE_USED = -29,
|
| 49 | E_FIBO_ERR_DATA_EXIST_SAME_PROFILE = -30,
|
| 50 | E_FIBO_ERR_DATA_PROFILE_USED_CALLED = -31,
|
| 51 |
|
| 52 | }e_error_code_t;
|
| 53 |
|
| 54 | #define FIBO_NO_ERR E_FIBO_NO_ERR
|
| 55 | #define FIBO_ERR_GENERIC E_FIBO_ERR_GENERIC
|
| 56 | #define FIBO_ERR_NOT_SUPPORT E_FIBO_ERR_NOT_SUPPORT
|
| 57 | #define FIBO_ERR_IO_ERROR E_FIBO_ERR_IO_ERROR
|
| 58 | #define FIBO_ERR_NOT_IMPLEMENTED E_FIBO_ERR_NOT_IMPLEMENTED
|
| 59 | #define FIBO_ERR_IP_INVALID E_FIBO_ERR_IP_INVALID
|
| 60 | #define FIBO_ERR_OS_INVALID E_FIBO_ERR_OS_INVALID
|
| 61 | #define FIBO_ERR_LOG_INIT_FIAL E_FIBO_ERR_LOG_INIT_FIAL
|
| 62 | #define FIBO_ERR_OS_TIMEOUT E_FIBO_ERR_OS_TIMEOUT
|
| 63 | #define FIBO_ERR_OS_ERROR E_FIBO_ERR_OS_ERROR
|
| 64 | #define FIBO_ERR_PARAM_INVALID E_FIBO_ERR_PARAM_INVALID
|
| 65 | #define FIBO_ERR_CALLBACK_EXIST E_FIBO_ERR_CALLBACK_EXIST
|
| 66 | #define FIBO_ERR_SERVER_FD_PARAM_INVALID E_FIBO_ERR_SERVER_FD_PARAM_INVALID
|
| 67 | #define FIBO_ERR_DATA_CREATE_FIAL E_FIBO_ERR_DATA_CREATE_FIAL
|
| 68 | #define FIBO_ERR_DATA_INVALID_TECH_PREF E_FIBO_ERR_DATA_INVALID_TECH_PREF
|
| 69 | #define FIBO_ERR_DATA_INVALID_APN_TYPE E_FIBO_ERR_DATA_INVALID_APN_TYPE
|
| 70 | #define FIBO_ERR_DATA_INVALID_AUTH_TYPE E_FIBO_ERR_DATA_INVALID_AUTH_TYPE
|
| 71 | #define FIBO_ERR_DATA_INVALID_IP_FAMILY_PREF E_FIBO_ERR_DATA_INVALID_IP_FAMILY_PREF
|
| 72 | #define FIBO_ERR_DATA_INVALID_CDMA_PROFILE_PREF E_FIBO_ERR_DATA_INVALID_CDMA_PROFILE_PREF
|
| 73 | #define FIBO_ERR_DATA_INVALID_UMTS_PROFILE_PREF E_FIBO_ERR_DATA_INVALID_UMTS_PROFILE_PREF
|
| 74 | #define FIBO_ERR_DATA_INVALID_USERNAM_PREF E_FIBO_ERR_DATA_INVALID_USERNAM_PREF
|
| 75 | #define FIBO_ERR_DATA_INVALID_PASSWORD_PREF E_FIBO_ERR_DATA_INVALID_PASSWORD_PREF
|
| 76 | #define FIBO_ERR_DATA_CALL_FAILED E_FIBO_ERR_DATA_CALL_FAILED
|
| 77 | #define FIBO_ERR_DATA_GET_IP_FAIL E_FIBO_ERR_DATA_GET_IP_FAIL
|
| 78 | #define FIBO_ERR_DATA_GET_NAME_FAIL E_FIBO_ERR_DATA_GET_NAME_FAIL
|
| 79 | #define FIBO_ERR_DATA_GET_NO_IP E_FIBO_ERR_DATA_GET_NO_IP
|
| 80 | #define FIBO_ERR_DATA_CALL_EXIST E_FIBO_ERR_DATA_CALL_EXIST
|
| 81 | #define FIBO_ERR_RADIO_RESET E_FIBO_ERR_RADIO_RESET
|
| 82 | #define FIBO_ERR_INSUFFICIENT_RESOURCES E_FIBO_ERR_INSUFFICIENT_RESOURCES
|
| 83 | #define FIBO_ERR_DATA_APN_BE_USED E_FIBO_ERR_DATA_APN_BE_USED
|
| 84 | #define FIBO_ERR_DATA_EXIST_SAME_PROFILE E_FIBO_ERR_DATA_EXIST_SAME_PROFILE
|
| 85 | #define FIBO_ERR_DATA_PROFILE_USED_CALLED E_FIBO_ERR_DATA_PROFILE_USED_CALLED
|
| 86 |
|
| 87 |
|
| 88 | #endif //#ifndef __FIBO_ERROR_H__ |