blob: 107b5715bbd8a11056e84e61e63cc2277572411c [file] [log] [blame]
/**
* @file at_reg.h
* @brief Ìṩat_ctlÄ£¿é¿Í»§¶ËºÍ·þÎñ¶Ë×¢²á½Ó¿Ú
*
* Copyright (C) 2017 Sanechips Technology Co., Ltd.
* @author
*
* 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 __AT_REG_H__
#define __AT_REG_H__
/*******************************************************************************
* Type definitions *
******************************************************************************/
/**
* @brief ·¢ÍùPS,atÉÏÏÂÎĺÍatͨµÀµÄpositionΪNEAR_PS£¬Ô¶ÀëPS²àatÉÏÏÂÎĺÍatͨµÀµÄpositionΪFAR_PS
* ָʾCPUºËÄÚµÄATͨµÀµÄ·½Î»£¬ÒÔPSЭÒéÕ»µÄÔ¶½ü×÷Ϊ²ÎÕÕÎï¡£
* @param NEAR_PS ¿¿½üPSЭÒéÕ»²àµÄATͨµÀ£¬ÀýÈçAPºËÄÚ¹²ÏíDDRÐéÄâµÄATͨµÀ
* @param FAR_PS Ô¶ÀëPSЭÒéÕ»µÄATͨµÀ£¬ÀýÈçAPºËÄÚUSBö¾ÙµÄATͨµÀ,uartͨµÀ
* @param POSITION_VOLTE ÓëvolteÄ£¿éͨÐŵÄptyͨµÀλÖÃ
* @param POSITION_MAX ÉÏÏÞºê
*/
enum at_channel_site {
FAR_PS = 0, //Ô¶ÀëPSЭÒéÕ»µÄATͨµÀ£¬ÀýÈçAPºËÄÚUSBö¾ÙµÄATͨµÀ
NEAR_PS, //¿¿½üPSЭÒéÕ»²àµÄATͨµÀ£¬ÀýÈçAPºËÄÚ¹²ÏíDDRÐéÄâµÄATͨµÀ
POSITION_VOLTE, //ÓëvolteÄ£¿éͨÐŵÄptyͨµÀλÖÃ
POSITION_MAX, //ÉÏÏÞºê
};
/*******************************************************************************
* Global function declarations *
******************************************************************************/
/**
µçÐÅÖ÷¿Ø·¢ËÍÇëÇóµÄÓ¦´ð½á¹û¸øÍⲿ£¬µ±Ä¿±êÄ£¿éIDΪ¾ä±úʱ£¬×é×°Ó¦´ðATÃüÁîдATͨµÀ£»·ñÔò·¢ËÍÏûÏ¢¸øÄ¿±êÄ£¿é
*/
int send_rsp_msg(int dst_id, unsigned short req_cmd, unsigned short rsp_cmd, unsigned short datalen, unsigned char *pData);
#endif