| /** |
| * @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 |
| |
| |