|
|
1.1 root 1: #ifndef MODEM_DOT_H
2: #define MODEM_DOT_H
3:
4: /*
5: * MODEM.H 5.20A June 8, 1995
6: *
7: * The Greenleaf Comm Library
8: *
9: * Copyright (C) 1984-1995 Greenleaf Software Inc. All Rights Reserved.
10: *
11: * NOTES
12: *
13: * This file contains all the constants, prototypes, and definitions
14: * needed to use CommLib modem functions. Include this in any source
15: * module that needs to use modem functions.
16: *
17: * MODIFICATIONS
18: *
19: * December 12, 1992 4.00A : Initial release
20: *
21: */
22:
23: #include "commlib.h"
24: /*
25: * Define dialing methods for HMSetDialingMethod()
26: */
27:
28: #define TOUCH_TONE 0
29: #define PULSE 1
30: #define DEFAULT_DIALING_METHOD 2
31:
32: /*
33: * Define hookswitch states for HMSetHookSwitch()
34: */
35:
36: #define ONHOOK 0
37: #define OFFHOOK 1
38: #define SPECIAL_OFFHOOK 2
39: /*
40: * Define special speaker state for HMSetSpeaker()
41: */
42: #define ON_ALWAYS 2
43:
44: typedef void ( GF_CONV *CHAR_PRINTER)( char c );
45:
46: #ifdef __cplusplus
47: extern "C" {
48: #endif
49:
50: int GF_CONV HMReset( PORT GF_DLL_FAR *port );
51: int GF_CONV HMGetRegister( PORT GF_DLL_FAR *port,
52: int modem_register );
53: int GF_CONV HMSetRegister( PORT GF_DLL_FAR *port,
54: int modem_register, int value );
55: int GF_CONV HMSetAutoAnswerRingCount( PORT GF_DLL_FAR *port,
56: int count );
57: int GF_CONV HMGetIncomingRingCount( PORT GF_DLL_FAR *port );
58: int GF_CONV HMSetEscapeCode( PORT GF_DLL_FAR *port,
59: char escape_char );
60: int GF_CONV HMSetEndOfLineCharacter( PORT GF_DLL_FAR *port,
61: char end_of_line_char );
62: int GF_CONV HMSetLineFeedCharacter( PORT GF_DLL_FAR *port,
63: char line_feed_char );
64: int GF_CONV HMSetBackspaceCharacter( PORT GF_DLL_FAR *port,
65: char backspace_char );
66: int GF_CONV HMSetWaitForDialToneTime( PORT GF_DLL_FAR *port,
67: int wait_for_dt_time);
68: int GF_CONV HMSetWaitTimeForCarrier( PORT GF_DLL_FAR *port,
69: int wait_for_cd_time );
70: int GF_CONV HMSetPauseTimeForComma( PORT GF_DLL_FAR *port,
71: int pause_time_for_comma );
72: int GF_CONV HMSetCDResponseTime( PORT GF_DLL_FAR *port,
73: int carrier_detect_response );
74: int GF_CONV HMSetCarrierDisconnectTime( PORT GF_DLL_FAR *port,
75: int disc_timer );
76: int GF_CONV HMSetTouchToneDuration( PORT GF_DLL_FAR *port,
77: int dial_speed );
78: int GF_CONV HMSetEscapeCodeGuardTime( PORT GF_DLL_FAR *port,
79: int escape_guard_time );
80: int GF_CONV HMGetUARTStatus( PORT GF_DLL_FAR *port );
81: int GF_CONV HMGetOptionRegister( PORT GF_DLL_FAR *port );
82: int GF_CONV HMGetFlagRegister( PORT GF_DLL_FAR *port );
83: int GF_CONV HMGoOnline( PORT GF_DLL_FAR *port );
84: int GF_CONV HMSetDialingMethod( PORT GF_DLL_FAR *port,
85: int method );
86: int GF_CONV HMDial( PORT GF_DLL_FAR *port,
87: char GF_DLL_FAR *digit_string );
88: int GF_CONV HMRepeatLastCommand( PORT GF_DLL_FAR *port );
89: int GF_CONV HMDialInAnswerMode( PORT GF_DLL_FAR *port,
90: char GF_DLL_FAR *digits );
91: int GF_CONV HMDialAndReturnToCommandMode( PORT GF_DLL_FAR *port,
92: char GF_DLL_FAR *digit_string );
93: int GF_CONV HMAnswer( PORT GF_DLL_FAR *port );
94: int GF_CONV HMSetCarrier( PORT GF_DLL_FAR *port, int on_off );
95: int GF_CONV HMSetEchoMode( PORT GF_DLL_FAR *port, int on_off );
96: int GF_CONV HMSetFullDuplexMode( PORT GF_DLL_FAR *port,
97: int full_or_half );
98: int GF_CONV HMSetHookSwitch( PORT GF_DLL_FAR *port,
99: int on_or_off_hook );
100: int GF_CONV HMSetSpeaker( PORT GF_DLL_FAR *port,
101: int speaker_control );
102: int GF_CONV HMReturnNoResultCodes( PORT GF_DLL_FAR *port,
103: int on_or_off );
104: int GF_CONV HMSelectExtendedResultCodes( PORT GF_DLL_FAR *port,
105: int extended_codes );
106: int GF_CONV HMSetVerboseMode( PORT GF_DLL_FAR *port,
107: int on_of_off );
108: void GF_CONV HMSetUpEchoRoutine( CHAR_PRINTER character_printer );
109: /* void ( GF_CONV *character_printer)( char c ) );
110: */
111: void GF_CONV HMSetUpAbortKey( unsigned int key );
112: int GF_CONV HMSendString( PORT GF_DLL_FAR *port,
113: char GF_DLL_FAR *string );
114: int GF_CONV HMSendStringNoWait( PORT GF_DLL_FAR *port,
115: char GF_DLL_FAR *string,
116: int termination_sequence );
117:
118: void GF_CONV HMWaitForOK( long milliseconds,
119: char GF_DLL_FAR *match_string );
120: void GF_CONV HMFixedDelay( long milliseconds );
121:
122: long GF_CONV HMInputLine( PORT GF_DLL_FAR *port,
123: long milliseconds,
124: char GF_DLL_FAR *buffer,
125: int length );
126: #ifdef __cplusplus
127: }
128: #endif
129:
130: #endif /* #ifndef MODEM_DOT_H */
131:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.