⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mdmport.h

📁 在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LEA_4S的驱动,位置速寻算法,语音芯片ISD4004的录放音驱动,LED页面管理等等.从启动代码到操作系统的移植以及到业
💻 H
字号:
/* mdmport.h

   Copyright 1997 by InterNiche Technologies, Inc. All rights reserved.
   Copyright 1995, 1996 by NetPort Software.

   Port dependant parts of NetPort/InterNiche modem support code. This code
is intended for use with NetPort's TCP/IP stack and either SLIP or PPP.

   7/3/96 - Modified for NAT router. John Bartas @ NetPort
   7/8/97 - Seperate directory for modem logic. -JB-
*/

#ifndef MDMPORT_H
#define MDMPORT_H 1

#include "ipport.h"
#include "q.h"
#include "netbuf.h"
#include "net.h"

#define MODEM_BUF_SIZE  128   /* size of modem IO buffers */
#define TELNUM_SIZE     32    /* size of telephone number storage */
#define MODEM_STRING_SIZE 64  /* size of configured AT init command */

#include "comline.h"

#ifdef USE_PPP
#include "ppp_port.h"
#include "../mppp/mppp.h"
#else
/* if no PPP, map PPP logger to debuf printf */
#define ConPrintf dprintf
#define PPPD_CONS 0  /* no PPP console */
#endif


#ifdef USE_SLIP
#include "slip.h"
#endif

#include "libport.h"
#include "in_utils.h"
#include "vfsfiles.h"
#include "nvparms.h"
#include "nvfsio.h"

#ifdef UART_INCLUDE
#include UART_INCLUDE
#endif  /* UART_INCLUDE */


#include "modem.h"

extern unsigned answer_rings;    /* number of rings before autoanswer */


/* externs from files we don't want to drag in: */
extern void pppclose(int unit);
extern char * nextarg(char*); /* get next arg in arg string */
extern void modem_clr_dtr(MODEMP);
extern void modem_set_dtr(MODEMP);

#ifdef USE_COMPORT
extern int comport;  /* in pc uart code */
#endif /* USE_COMPORT */

#ifdef PC_HARDWARE
#define ubase ((unshort)com_ports[comport].io_base)
#endif /* PC_HARDWARE */

/* Modem Dialer related non-volatile parameters. Please see nvparms.h 
 * and nvparms.c regarding the usage of the following structure.
 */
#ifdef INCLUDE_NVPARMS
struct modem_nvparam
{
   /* modem/dialer stuff */
   char     dial_phone[MAX_NVSTRING];  /* phone number to dial*/
   char     modem_init[MAX_NVSTRING];  /* initialization "AT" command */
};

extern struct modem_nvparam modem_nvparms;
#endif   /* INCLUDE_NVPARMS */

#endif /* MDMPORT_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -