xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 1 | /**
|
| 2 | * @file atreg_msg.h
|
| 3 | * @brief ÌṩlibatregÏà¹ØÏûÏ¢¡¢½á¹¹Ìå
|
| 4 | *
|
| 5 | * Copyright (C) 2022 Sanechips Technology Co., Ltd.
|
| 6 | * @author
|
| 7 | * @ingroup
|
| 8 | *
|
| 9 | * This program is free software; you can redistribute it and/or modify
|
| 10 | * it under the terms of the GNU General Public License version 2 as
|
| 11 | * published by the Free Software Foundation.
|
| 12 | *
|
| 13 | */
|
| 14 |
|
| 15 |
|
| 16 | #ifndef _ATREG_MSG_H
|
| 17 | #define _ATREG_MSG_H
|
| 18 |
|
| 19 |
|
| 20 | /*******************************************************************************
|
| 21 | * Include header files *
|
| 22 | *******************************************************************************/
|
| 23 | #include "message.h"
|
| 24 |
|
| 25 |
|
| 26 | /*******************************************************************************
|
| 27 | * Macro definitions *
|
| 28 | *******************************************************************************/
|
| 29 |
|
| 30 |
|
| 31 | /*******************************************************************************
|
| 32 | * Type definitions *
|
| 33 | *******************************************************************************/
|
| 34 | /** ÏûÏ¢id */
|
| 35 | enum MSG_CDM_RANGE_T
|
| 36 | {
|
| 37 | MSG_CMD_AT_REG_BASE = MSG_CMD_EXTAT_BASE,
|
| 38 |
|
| 39 | /* at×¢²áÏûÏ¢id¶¨Òå */
|
| 40 | MSG_CMD_AT_REG_REQ,
|
| 41 | MSG_CMD_AT_REG_RSP,
|
| 42 |
|
| 43 | /* at×¢ÏúÏûÏ¢id¶¨Òå */
|
| 44 | MSG_CMD_AT_UNREG_REQ,
|
| 45 | MSG_CMD_AT_UNREG_RSP,
|
| 46 | };
|
| 47 |
|
| 48 |
|
| 49 | /** AT×¢²áÖÁat_ctl */
|
| 50 | struct atreg_msg_t {
|
| 51 | char at_cmd_prefix[AT_CMD_PREFIX];
|
| 52 |
|
| 53 | int req_msg_id;
|
| 54 | int rsp_msg_id;
|
| 55 |
|
| 56 | /* ATÀàÐÍ: 0-ser, 1-info */
|
| 57 | int type;
|
| 58 |
|
| 59 | int res;
|
| 60 | };
|
| 61 |
|
| 62 |
|
| 63 | /*******************************************************************************
|
| 64 | * Global variable declarations *
|
| 65 | *******************************************************************************/
|
| 66 |
|
| 67 |
|
| 68 | /*******************************************************************************
|
| 69 | * Global function declarations *
|
| 70 | *******************************************************************************/
|
| 71 |
|
| 72 |
|
| 73 | #endif
|
| 74 |
|