
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Foxlib v1.0 - <b>com4800</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
COM4800
Syntax: COM4800
Use: To initialize the communications line at 4800 baud.
Parameters: In order to initialize the communications line, the
baud rate, parity, stop bit, and data length
parameters have to be set. Use the table below to
initialize the communications lines 1, 2, 3, and 4.
If you wanted to initialize communications line 1
at 4800 baud, no parity, 1 stop bit, and 7 data
length, you would choose the letter "A" from the
table below and add a comma and the communications
line to initialize - in this case the number 0.
Remember, that communications line 1 is 0, line 2
is 1, line 3 is 2, and line 4 is 3.
4800, no parity, 1 stop bit, 7 data length = A
4800, no parity, 1 stop bit, 8 data length = B
4800, no parity, 2 stop bit, 7 data length = C
4800, no parity, 2 stop bit, 8 data length = D
4800, odd parity, 1 stop bit, 7 data length = E
4800, odd parity, 1 stop bit, 8 data length = F
4800, odd parity, 2 stop bit, 7 data length = G
4800, odd parity, 2 stop bit, 8 data length = H
4800, even parity, 1 stop bit, 7 data length = I
4800, even parity, 1 stop bit, 8 data length = J
4800, even parity, 2 stop bit, 7 data length = K
4800, even parity, 2 stop bit, 8 data length = L
Returns: Use the FOXLIB communications status commands
(i.e. COMSTAT, COMDR, COMOE, COMPE, COMFE, COMBID,
COMTHR, COMTSR, and COMTOE) to obtain the status of
the communications line if the return value is not
equal to 1 or 97. If the return value is not equal
to 1 or 97, load and call COM4800 again to see if
any errors disappear. If you did not pass the
parameter correctly (e.g. FOXLIB = "Z,0"), your
sending parameter will be unchanged.
Example: . load c:\FOXLIB\com4800
. FOXLIB = "A,0"
. call com4800 with FOXLIB
. ?substr(FOXLIB,1,1) = "A"
.F.
. ?asc(substr(FOXLIB,1,1)) = 97
.T.
. rele modu com4800
First test to see if you passed the parameter correctly. From this example,
the parameter was passed correctly since the first character is not equal to
"A".
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson