www.pudn.com > MOXA--DOS.rar > MODEMC.H
/*
* modem-c.h ver 1.00 10/30/1995
* Definitions for MOXA Serial I/O modem control functions
*/
#define SIOMC_BADPORT -1 /* no such port or port not open */
#define SIOMC_TIMEOUT -2 /* AT command timeout */
#define SIOMC_NOCARRIER -3 /* connect fail, no carrier */
#define SIOMC_NODIAL -4 /* connect fail, no dialtone */
#define SIOMC_BUSY -5 /* connect fail, busy */
#define SIOMC_NOANSWER -6 /* connect fail, no answer */
#define SIOMC_STR_CONNECT 0 /* connect string index */
#define SIOMC_STR_NOCARRY 1 /* no carry string index */
#define SIOMC_STR_NODIAL 2 /* no dial tone string index */
#define SIOMC_STR_NOANSWER 3 /* no answer string index */
#define SIOMC_STR_BUSY 4 /* busy string index */
#ifdef __cplusplus
extern "C" {
#endif
int cdecl sio_McReset(int port);
int cdecl sio_McCommandMode(int port);
int cdecl sio_McDataMode(int port);
int cdecl sio_McHangUp(int port);
int cdecl sio_McOffHook(int port);
int cdecl sio_McDial(int port, char *phone_number);
int cdecl sio_McIsConnect(int port, char *ret_code);
int cdecl sio_McWaitConnect(int port, int timeout, char *re_code);
int cdecl sio_McAutoAnswer(int port, int rings);
int cdecl sio_McRings(int port);
int cdecl sio_McAnswer(int port);
int cdecl sio_McGetSRegister(int port, int sreg);
int cdecl sio_McSetSRegister(int port, int sreg, int value);
int cdecl sio_McSetTimeout(int timeout);
int cdecl sio_McSetString(int str_index, char *str);
#ifdef __cplusplus
}
#endif