4 * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
26 * @addtogroup CAPI_TELEPHONY_SERVICE_MODEM
38 * @brief Definition for the maximum length of version.
41 #define MAX_VERSION_LEN 32
44 * @brief Definition for the maximum length of serial number.
47 #define TAPI_MISC_ME_SN_LEN_MAX 32
50 * @brief Definition for the maximum length of product code.
53 #define TAPI_MISC_PRODUCT_CODE_LEN_MAX 32
56 * @brief Definition for the maximum length of model ID.
59 #define TAPI_MISC_MODEL_ID_LEN_MAX 17
62 * @brief Definition for the maximum length of PRL version.
65 #define TAPI_MISC_PRL_ERI_VER_LEN_MAX 17
68 * @brief Definition for the maximum length of CP chipset.
71 #define TAPI_MISC_CP_CHIPSET_LEN_MAX 16
74 * @brief Definition for the maximum length of device name.
77 #define TAPI_MISC_ME_DEVICE_NAME_LEN_MAX 32
80 * @brief The structure type for Mobile Equipment Version Information.
82 * @see tel_get_misc_me_version()
83 * @see tel_get_misc_me_version_sync()
86 unsigned char ver_mask; /**< Version mask - 0x01:SW_ver, 0x02:HW_ver, 0x04:RF_CAL_date, 0x08:Product_code, 0x10:Model_ID, 0x20:PRL, 0x04:ERI, 0xff:all */
87 unsigned char szSwVersion[MAX_VERSION_LEN]; /**< Software version, null termination */
88 unsigned char szHwVersion[MAX_VERSION_LEN]; /**< Hardware version, null termination */
89 unsigned char szRfCalDate[MAX_VERSION_LEN]; /**< Calculation Date, null termination */
90 unsigned char szProductCode[TAPI_MISC_PRODUCT_CODE_LEN_MAX]; /**< Product code, null termination */
91 unsigned char szModelId[TAPI_MISC_MODEL_ID_LEN_MAX]; /**< Model ID (only for CDMA), null termination */
92 unsigned char prl_nam_num; /**< Number of PRL NAM fields */
93 unsigned char szPrlVersion[TAPI_MISC_PRL_ERI_VER_LEN_MAX * 3];/**< PRL version (only for CDMA), null termination */
94 unsigned char eri_nam_num; /**< Number of PRL NAM fields */
95 unsigned char szEriVersion[TAPI_MISC_PRL_ERI_VER_LEN_MAX * 3];/**< ERI version (only for CDMA), null termination */
96 unsigned char szCpChipset[TAPI_MISC_CP_CHIPSET_LEN_MAX];/**< CP chipset, null termination */
97 } TelMiscVersionInformation;
100 * @brief The structure type for Mobile Equipment Serial Number Information.
102 * @see tel_get_misc_me_sn()
103 * @see tel_get_misc_me_sn_sync()
106 unsigned char szEsn[TAPI_MISC_ME_SN_LEN_MAX]; /**< Number */
107 unsigned char szMeid[TAPI_MISC_ME_SN_LEN_MAX]; /**< Number */
108 unsigned char szImei[TAPI_MISC_ME_SN_LEN_MAX]; /**< Number */
109 unsigned char szImeiSv[TAPI_MISC_ME_SN_LEN_MAX]; /**< Number */
110 } TelMiscSNInformation;
113 * @brief The structure type for device info of cellular dongle.
115 * @see tel_get_device_info()
118 unsigned char vendor_name[TAPI_MISC_ME_DEVICE_NAME_LEN_MAX + 1]; /**< Vendor name */
119 unsigned char device_name[TAPI_MISC_ME_DEVICE_NAME_LEN_MAX + 1]; /**< Device name */
120 } TelMiscDeviceInfo_t;
126 #endif /* _TEL_MISC_H_ */