/** | |
* @file atreg_msg.h | |
* @brief ÌṩlibatregÏà¹ØÏûÏ¢¡¢½á¹¹Ìå | |
* | |
* Copyright (C) 2022 Sanechips Technology Co., Ltd. | |
* @author | |
* @ingroup | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
* | |
*/ | |
#ifndef _ATREG_MSG_H | |
#define _ATREG_MSG_H | |
/******************************************************************************* | |
* Include header files * | |
*******************************************************************************/ | |
#include "message.h" | |
/******************************************************************************* | |
* Macro definitions * | |
*******************************************************************************/ | |
/******************************************************************************* | |
* Type definitions * | |
*******************************************************************************/ | |
/** ÏûÏ¢id */ | |
enum MSG_CDM_RANGE_T | |
{ | |
MSG_CMD_AT_REG_BASE = MSG_CMD_EXTAT_BASE, | |
/* at×¢²áÏûÏ¢id¶¨Òå */ | |
MSG_CMD_AT_REG_REQ, | |
MSG_CMD_AT_REG_RSP, | |
/* at×¢ÏúÏûÏ¢id¶¨Òå */ | |
MSG_CMD_AT_UNREG_REQ, | |
MSG_CMD_AT_UNREG_RSP, | |
}; | |
/** AT×¢²áÖÁat_ctl */ | |
struct atreg_msg_t { | |
char at_cmd_prefix[AT_CMD_PREFIX]; | |
int req_msg_id; | |
int rsp_msg_id; | |
/* ATÀàÐÍ: 0-ser, 1-info */ | |
int type; | |
int res; | |
}; | |
/******************************************************************************* | |
* Global variable declarations * | |
*******************************************************************************/ | |
/******************************************************************************* | |
* Global function declarations * | |
*******************************************************************************/ | |
#endif | |