lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /**
|
| 2 | * @file at_other_msg.h
|
| 3 | * @brief ÌṩÁËAT_CTLÖзÇOPENCPUµÄÏûÏ¢¶ÔÓ¦µÄ½á¹¹Ì嶨Òå
|
| 4 | *
|
| 5 | * Copyright (C) 2017 Sanechips Technology Co., Ltd.
|
| 6 | * @author
|
| 7 | *
|
| 8 | * This program is free software; you can redistribute it and/or modify
|
| 9 | * it under the terms of the GNU General Public License version 2 as
|
| 10 | * published by the Free Software Foundation.
|
| 11 | *
|
| 12 | */
|
| 13 |
|
| 14 | #ifndef __AT_OTHER_API_H__
|
| 15 | #define __AT_OTHER_API_H__
|
| 16 |
|
| 17 |
|
| 18 | /*******************************************************************************
|
| 19 | * Include header files *
|
| 20 | ******************************************************************************/
|
| 21 | #include "max_macro.h"
|
| 22 | /*******************************************************************************
|
| 23 | * Macro definitions *
|
| 24 | ******************************************************************************/
|
| 25 | #define ZDIAL_NUM_MAX 48
|
| 26 |
|
| 27 | /*******************************************************************************
|
| 28 | * Type definitions *
|
| 29 | ******************************************************************************/
|
| 30 | typedef struct {
|
| 31 | unsigned char pduLen;
|
| 32 | char pdu[1024];
|
| 33 | unsigned char seq;
|
| 34 | } T_zAt_CsimRes;
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 | /**
|
| 39 | * @brief ¿¨²å°ÎÐÅÏ¢Éϱ¨£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_ZUSLOT_IND
|
| 40 | * @param slot£¬¿¨²Û ȡֵ·¶Î§ 0,1,2
|
| 41 | * @param slot_state, ¿¨×´Ì¬ 0 °Î¿¨ 1 ²å¿¨
|
| 42 | */
|
| 43 | typedef struct {
|
| 44 | long slot;
|
| 45 | long slot_state;
|
| 46 | } T_zAt_ZuslotRes;
|
| 47 |
|
| 48 |
|
| 49 | /**
|
| 50 | * @brief PINÂëÑéÖ¤ÏûÏ¢½á¹¹Ì壬¶ÔÓ¦ÏûÏ¢MSG_CMD_VERIFY_PIN_REQ/MSG_CMD_VERIFY_PUK_REQ
|
| 51 | * @param pin»òpin2£¬µ±Ç°ÃÜÂëÊäÈëÇëÇóΪPIN»òPIN2£¬ÔòÊäÈë+CPIN=<pin>½øÐÐУÑé
|
| 52 | * @param newpin, µ±Ç°ÃÜÂëÊäÈëÇëÇóΪPUK»òPUK2£¬ÔòÊäÈë+CPIN=<pin>,<newpin>½øÐнâËø£¬
|
| 53 | * µÚÒ»¸ö²ÎÊýpinΪSIM PUKÂë»òÕßSIM PUK2Â룬µÚ¶þ¸ö²ÎÊýnewpinΪеÄPINÂë»òPIN2Âë
|
| 54 | */
|
| 55 | typedef struct {
|
| 56 | char pin[10];
|
| 57 | char newpin[10];
|
| 58 | } T_zAt_CpinPukSet;
|
| 59 |
|
| 60 |
|
| 61 | /**
|
| 62 | * @brief PINÂë¹ÜÀíÏûÏ¢½á¹¹Ì壬¶ÔÓ¦ÏûÏ¢MSG_CMD_PIN_MANAGE_REQ
|
| 63 | * @param action£¬²Ù×÷ÀàÐÍ 0 ¹Ø±Õ 1 ´ò¿ª 2 ÐÞ¸Ä
|
| 64 | * @param oldPin, ¹Ø±Õ/´ò¿ªÊ±ÊäÈëµÄPINÂ룬ÐÞ¸ÄʱÊäÈëµÄ¾ÉPINÂë
|
| 65 | * @param newPin ÐÞ¸ÄʱÊäÈëµÄÐÂPINÂë
|
| 66 | */
|
| 67 | typedef struct {
|
| 68 | unsigned int action; /*¶¯×÷ÀàÐÍ£¬enable, disable, modify*/
|
| 69 | char oldPin[10];
|
| 70 | char newPin[10];
|
| 71 | } T_zAt_PinManage;
|
| 72 |
|
| 73 |
|
| 74 | /**
|
| 75 | * @brief ¿¨³õʼ»¯½á¹û£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_ZPBIC_IND
|
| 76 | * @param result£¬0 ʧ°Ü 1 ³É¹¦
|
| 77 | * @param opertype, ÒµÎñÀàÐÍ 0 ¶ÌÐÅ 1 µç»°±¾ 2 È«²¿
|
| 78 | */
|
| 79 | typedef struct {
|
| 80 | long result;
|
| 81 | long opertype;
|
| 82 | } T_zAt_ZpbicRes;
|
| 83 |
|
| 84 |
|
| 85 | /*****************¶ÌÐÅÏà¹ØÏûÏ¢¶ÔÓ¦½á¹¹Ìå begin*****************************/
|
| 86 |
|
| 87 | /**
|
| 88 | * @brief ·¢ËͶÌÐÅÏûÏ¢½á¹¹Ì壬¶ÔÓ¦ÏûÏ¢MSG_CMD_SENDSMS_REQ
|
| 89 | * @param length£¬¶ÌÐÅÄÚÈݳ¤¶È
|
| 90 | * @param pdu, pdu
|
| 91 | */
|
| 92 | typedef struct {
|
| 93 | int length;
|
| 94 | char pdu[ZSMS_PDU_SIZE];
|
| 95 | } T_zSms_SendSmsReq;
|
| 96 |
|
| 97 | /**
|
| 98 | * @brief ɾ³ý¶ÌÐÅÏûÏ¢½á¹¹Ì壬¶ÔÓ¦ÏûÏ¢MSG_CMD_DELSMS_REQ
|
| 99 | * @param index£¬´ýɾ¶ÌÐÅË÷Òý
|
| 100 | */
|
| 101 | typedef struct {
|
| 102 | int index;
|
| 103 | } T_zSms_DelSmsReq;
|
| 104 |
|
| 105 |
|
| 106 | /**
|
| 107 | * @brief ÉèÖÃÉϲã¿Õ¼ä±ä³É¿ÉÓûò²»¿ÉÓ㬶ÔÓ¦ÏûÏ¢MSG_CMD_STORAGE_CAP_REQ
|
| 108 | * @param type 0 ²»Âú 1 Âú
|
| 109 | */
|
| 110 | typedef struct {
|
| 111 | int type;
|
| 112 | } T_zSms_StroageReq;
|
| 113 |
|
| 114 |
|
| 115 | /**
|
| 116 | * @brief ½«¶ÌÐÅ´Óδ¶Á״̬±ä³ÉÒѶÁ£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_MODIFY_TAG_REQ
|
| 117 | * @param index£¬¶ÌÐÅË÷Òý
|
| 118 | */
|
| 119 | typedef struct {
|
| 120 | int index;
|
| 121 | } T_zSms_ModifyTagReq;
|
| 122 |
|
| 123 |
|
| 124 | /**
|
| 125 | * @brief ¶Á¶ÌÐÅÇëÇó½á¹¹Ì壬¶ÔÓ¦ÏûÏ¢MSG_CMD_READSMS_REQ
|
| 126 | * @param index£¬¶ÌÐÅË÷Òý
|
| 127 | */
|
| 128 | typedef struct {
|
| 129 | int index;
|
| 130 | } T_zSms_ReadSmsReq;
|
| 131 |
|
| 132 |
|
| 133 | /**
|
| 134 | * @brief ÉèÖöÌÐÅÖÐÐÄ£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_SCA_SET_REQ
|
| 135 | * @param sca£¬¶ÌÐÅÖÐÐĺÅÂë
|
| 136 | */
|
| 137 | typedef struct {
|
| 138 | char sca[22];
|
| 139 | } T_zSms_SetScaReq;
|
| 140 |
|
| 141 |
|
| 142 | /**
|
| 143 | * @brief жÌÐÅ֪ͨÉèÖ㬶ÔÓ¦ÏûÏ¢MSG_CMD_NOTIFY_SET_REQ
|
| 144 | * @param mt£¬Ö¸Ê¾Ð¶ÌÐŵ½´ïʱµÄָʾ·½Ê½
|
| 145 | */
|
| 146 | typedef struct {
|
| 147 | int mt;
|
| 148 | } T_zSms_NotifySetReq;
|
| 149 |
|
| 150 |
|
| 151 | /**
|
| 152 | * @brief жÌÐÅÈ·ÈÏ£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_SMSACK_REQ
|
| 153 | * @param ackmode£¬ÏìÓ¦·½Ê½
|
| 154 | * @param length£¬PDUµÄ³¤¶È
|
| 155 | * @param pdu£¬SMSCµØÖ·ºÍTPDUÊý¾Ý°ü
|
| 156 | */
|
| 157 | typedef struct {
|
| 158 | int ackmode;
|
| 159 | int length;
|
| 160 | char pdu[50];
|
| 161 | } T_zSms_SmsAckReq;
|
| 162 |
|
| 163 |
|
| 164 | /**
|
| 165 | * @brief ¶ÌÐŲÙ×÷½á¹û£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_SENDSMS_RSP
|
| 166 | * /MSG_CMD_DELSMS_RSP /MSG_CMD_STORAGE_CAP_RSP
|
| 167 | * /MSG_CMD_MODIFY_TAG_RSP/MSG_CMD_NOTIFY_SET_RSP/MSG_CMD_SCA_SET_RSP
|
| 168 | * /MSG_CMD_SMSACK_RSP/MSG_CMD_SMSINIT_RSP
|
| 169 | * @param result£¬1 ³É¹¦ ÆäËû ʧ°Ü
|
| 170 | */
|
| 171 | typedef struct {
|
| 172 | int result;
|
| 173 | } T_zSms_optRsp;
|
| 174 |
|
| 175 |
|
| 176 | /*¶ÔÓ¦ÏûÏ¢ MSG_CMD_NEWSMS_STATUS_IND MSG_CMD_ZMGR_IND MSG_CMD_READSMS_RSP*/
|
| 177 | /**
|
| 178 | * @brief жÌÐÅÉϱ¨£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_NEWSMS_STATUS_IND/MSG_CMD_ZMGR_IND
|
| 179 | * @param index£¬¶ÌÐÅÔÚ´æ´¢ÇøÖеÄË÷ÒýºÅ
|
| 180 | * @param stat£¬´æ´¢Æ÷ÖжÌÏûÏ¢µÄÐÅϢ״̬
|
| 181 | * @param alpha£¬²ÎÊýÄÚÈÝÊÜ+CSCSÃüÁî¿ØÖÆ
|
| 182 | * @param length£¬pdu³¤¶È
|
| 183 | * @param pdu£¬pdu
|
| 184 | */
|
| 185 | typedef struct {
|
| 186 | int index;
|
| 187 | int stat;
|
| 188 | char alpha[36];
|
| 189 | int length;
|
| 190 | char pdu[ZSMS_PDU_SIZE];
|
| 191 | } T_zSms_SmsInd;
|
| 192 |
|
| 193 |
|
| 194 | /**
|
| 195 | * @brief жÌÐÅindexÉϱ¨£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_NEWSMS_INDEX_IND/MSG_CMD_NEWSMS_STATUS_INDEX_IND
|
| 196 | * @param storetype£¬¶ÌÏûÏ¢½ÓÊÕµÄ´æ´¢Çø
|
| 197 | * @param index£¬´æ´¢Î»ÖÃÐòºÅ
|
| 198 | */
|
| 199 | typedef struct {
|
| 200 | char storetype[10];
|
| 201 | int index;
|
| 202 | } T_zSms_SmsIndexInd;
|
| 203 |
|
| 204 |
|
| 205 | /**
|
| 206 | * @brief ¶ÌÐÅÖÐÐÄÉϱ¨£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_CSCA_IND
|
| 207 | * @param sca£¬¶ÌÐÅÖÐÐĵØÖ·
|
| 208 | * @param tosca£¬<sca>µÄÀàÐÍ
|
| 209 | */
|
| 210 | typedef struct {
|
| 211 | char sca[22];
|
| 212 | char tosca[22];
|
| 213 | } T_zSms_CscaInd;
|
| 214 |
|
| 215 |
|
| 216 | /**
|
| 217 | * @brief ¶ÌÐÅ´æ´¢ÇøÐÅÏ¢£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_CPMS_IND
|
| 218 | * @param used£¬ÒÑÓÃÌõÊý
|
| 219 | * @param total£¬×ܹ²¿ÉÈÝÄÉÌõÊý
|
| 220 | */
|
| 221 | typedef struct {
|
| 222 | int used;
|
| 223 | int total;
|
| 224 | } T_zSms_CpmsInd;
|
| 225 | /*****************¶ÌÐÅÏà¹ØÏûÏ¢¶ÔÓ¦½á¹¹Ìå end*****************************/
|
| 226 |
|
| 227 |
|
| 228 | /************ÃûƬ¼ÐÏà¹ØÏûÏ¢¶ÔÓ¦µÄ½á¹¹Ìåbegin***********/
|
| 229 | /*µ¥ÌõcontactÐÅÏ¢£¬¶ÔÓ¦ÏûÏ¢MSG_CMD_READ_PB_RSP*/
|
| 230 | typedef struct {
|
| 231 | char number1[42];
|
| 232 | char number2[42];
|
| 233 | char number3[42];
|
| 234 | char number4[42];
|
| 235 | char text[182];
|
| 236 | char email[182];
|
| 237 | unsigned char coding;
|
| 238 | unsigned char num1Type;
|
| 239 | unsigned char num2Type;
|
| 240 | unsigned char num3Type;
|
| 241 | unsigned char num4Type;
|
| 242 | unsigned int index;
|
| 243 | } T_zPb_ScpbrSetRes;
|
| 244 |
|
| 245 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_READ_PB_REQ*/
|
| 246 | typedef struct {
|
| 247 | int minIndex;//ɾ³ýpb¿ªÊ¼Î»ÖÃ
|
| 248 | int maxIndex;//ɾ³ýpb½áÊøÎ»ÖÃ
|
| 249 | } T_zPb_ScpbrReadRes;
|
| 250 |
|
| 251 | typedef struct {
|
| 252 | int pbIndex;
|
| 253 | int coding;
|
| 254 | char name[185];
|
| 255 | char mobilNumber[42];
|
| 256 | char officeNumber[42];
|
| 257 | char homeNumber[42];
|
| 258 | char faxNumber[42];
|
| 259 | char email[182];
|
| 260 | } T_zPb_ScpbwParam;
|
| 261 |
|
| 262 | /*¶ÔÓ¦ÏûÏ¢ ²Ù×÷½á¹û*/
|
| 263 | typedef struct {
|
| 264 | int result;
|
| 265 | } T_zPb_optRsp;
|
| 266 |
|
| 267 | /*²éѯpbÐÅÏ¢µÄ×Ü´æ´¢Æ÷¸öÊý¡¢ÒÑÓô洢Æ÷¸öÊýÐÅÏ¢£¬Öмä½á¹ûÉϱ¨*/
|
| 268 | typedef struct {
|
| 269 | char locType[10];
|
| 270 | unsigned int usedEntries;
|
| 271 | unsigned int totalEntries;
|
| 272 | } T_zPb_AtCpbsReadRes;
|
| 273 | /*²éѯpbÐÅÏ¢µÄ×î´óË÷Òý¡¢³¤¶ÈµÈÐÅÏ¢£¬Öмä½á¹ûÉϱ¨*/
|
| 274 | typedef struct {
|
| 275 | int minIndex;
|
| 276 | int maxIndex;
|
| 277 | int maxNumberLen;
|
| 278 | int maxTextLen;
|
| 279 | int maxEmailLen;
|
| 280 | } T_zPb_AtScpbrTestRes;
|
| 281 | /************ÃûƬ¼ÐÏà¹ØÏûÏ¢¶ÔÓ¦µÄ½á¹¹Ìåend***********/
|
| 282 |
|
| 283 | /************ccappÏà¹ØÏûÏ¢¶ÔÓ¦µÄ½á¹¹Ìåbegin***********/
|
| 284 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_ATD_DIAL_REQ*/
|
| 285 | typedef struct {
|
| 286 | char number[ZDIAL_NUM_MAX];
|
| 287 | } T_zCcapp_CallMoReq;
|
| 288 |
|
| 289 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_VTS_REQ*/
|
| 290 | typedef struct {
|
| 291 | char dtmfchar;
|
| 292 | } T_zCcapp_VtsReq;
|
| 293 |
|
| 294 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_ZIMSPLUS_REQ*/
|
| 295 | typedef struct {
|
| 296 | unsigned int setfg;
|
| 297 | unsigned int act;
|
| 298 | } T_zCcapp_ImsplusReq;
|
| 299 |
|
| 300 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_CLCK_REQ*/
|
| 301 | typedef struct {
|
| 302 | unsigned int type;
|
| 303 | unsigned int act;
|
| 304 | char pw[5];
|
| 305 | } T_zCcapp_ClckReq;
|
| 306 |
|
| 307 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_CCFC_REQ*/
|
| 308 | typedef struct {
|
| 309 | unsigned int type;
|
| 310 | unsigned int act;
|
| 311 | char dn[ZDIAL_NUM_MAX];
|
| 312 | } T_zCcapp_CcfcReq;
|
| 313 |
|
| 314 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_CCFC_REQ*/
|
| 315 | typedef struct {
|
| 316 | unsigned int type;
|
| 317 | } T_zCcapp_ChldReq;
|
| 318 |
|
| 319 | /*¶ÔÓ¦ÏûÏ¢ ²Ù×÷½á¹û*/
|
| 320 | typedef struct {
|
| 321 | int result;
|
| 322 | } T_zCcapp_optRsp;
|
| 323 |
|
| 324 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_DSCI_IND*/
|
| 325 | typedef struct {
|
| 326 | unsigned int cid;
|
| 327 | unsigned int dir;
|
| 328 | unsigned int state;
|
| 329 | unsigned int inMpty;
|
| 330 | char num[ZDIAL_NUM_MAX];
|
| 331 | } T_zCcApp_DsciInd;
|
| 332 |
|
| 333 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_ZIMSPLUS_IND*/
|
| 334 | typedef struct {
|
| 335 | unsigned int act;
|
| 336 | unsigned int rate;
|
| 337 | } T_zCcApp_ImsplusInd;
|
| 338 |
|
| 339 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_ZCPI*/
|
| 340 | typedef struct {
|
| 341 | unsigned int cid;
|
| 342 | unsigned int state;
|
| 343 | unsigned int progdsp;
|
| 344 | } T_zCcApp_ZcpiInd;
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 | /*¶ÔÓ¦ÏûÏ¢MSG_CMD_ZVOICECHNL*/
|
| 351 | typedef struct {
|
| 352 | unsigned int op; //0-close,1-open
|
| 353 | unsigned int act; // 3-gsm, 5-w, 15-tds, 17-lte
|
| 354 | unsigned int codetype; //0-nb, 1-wb
|
| 355 | unsigned int amrpath; //0-teak, 1-softlib
|
| 356 | } T_zCcApp_VoiceChnl;
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 | /************ccappÏà¹ØÏûÏ¢¶ÔÓ¦µÄ½á¹¹Ìåend***********/
|
| 364 | #endif
|