DAS  3.1.6 - 18/09/2017
COMM.H
Go to the documentation of this file.
1 /********************************************************
2 ** **
3 ** Serial ToolKit from Anonimous Programmer, **
4 ** little modification typed by M.Turini in **
5 ** 23 September 1991 for PLANCC E. **
6 ** **
7 *********************************************************
8 
9 
10  COMMINIT initializes com ports
11  Parameter:
12 
13  port # 0 or 1 or 2 or 3
14  baud rate 0 - 1 - 2 - 110 3 - 134.5
15  4 - 150 5 - 300 6 - 600 7 - 1200
16  8 - 1800 9 - 2000 10 - 2400 11 -
17  12 - 4800 13 - 14 - 9600 15 - 19200
18  char size 7 or 8
19  parity config 0 - No parity 1 - Odd parity
20  2 - No parity 3 - Even parity
21  Return: void
22 */
23 void comminit(int portn, int baudr, int charsiz, int parity);
24 /*
25  COMMTERM Terminate use of communication port
26  Parameter:
27  port # 0 or 1
28  Return: void
29 */
30 void commterm(int portn);
31 /*
32  COMMCHK Check for presence of characther at communication port
33  returns non-zero in AX if character is present.
34  Parameter:
35  port # 0 or 1
36  Return: 0 = Null characters, 1 = Char present
37 */
38 int commchk(int portn);
39 /*
40  COMMRECV Get character from communications port wait until one
41  is present if necessary returns character in AX
42  Parameter:
43  port # 0 or 1
44  Return: -2 if communications error occurred else character
45 */
46 char commrecv(int);
47 /*
48  COMMSEND Send character to communications port
49  Parameter:
50  port # 0 or 1
51  char ASCII
52  Return: Void
53 */
54 void commsend(int portn, char ch);
55 /*
56  COMMBRK Send break to communications port
57  Parameter:
58  port # 0 or 1
59  Return: Void
60 */
61 void commbrk(int portn);
62 /*
63  COMMCLR Clear communications buffer of all characters
64  Parameter:
65  port # 0 or 1
66  Return: Void
67 */
68 void commclr(int portn);
69 /*
70  COMMDTR Set DTR to specified state is set high if 'DTR' is non-zero
71  otherwise is set low
72  Parameter:
73  port # 0 or 1
74  dtr 0 = DTR LOW else DTR HIGH
75  Return:
76 */
77 void commdtr(int portn, int dtr);
78 
79 #define COM1 0
80 #define COM2 1
81 #define COM3 2
82 #define COM4 3
83 #define NO_PARITY 0
84 #define EVEN_PARITY 3
85 #define ODD_PARITY 1
86 #define B_110 2
87 #define B_150 4
88 #define B_300 5
89 #define B_600 6
90 #define B_1200 7
91 #define B_2400 10
92 #define B_4800 12
93 #define B_9600 14
94 #define B_19200 15
95 #define B_38400 16
96 #define B_57600 17
97 #define B_115200 18
static double ch
Definition: SOLPOS.C:120
char commrecv(int)
void commclr(int portn)
int commchk(int portn)
void commsend(int portn, char ch)
void commterm(int portn)
void comminit(int portn, int baudr, int charsiz, int parity)
void commbrk(int portn)
void commdtr(int portn, int dtr)
______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:44:08 for DAS - Rel. 3.1.6 - 18/09/2017.