Help: how to output to a port such as a RS232?
John Gordon
gordon at osiris.cso.uiuc.edu
Wed Jun 12 09:31:06 AEST 1991
jli at udecc.engr.udayton.edu (Staff-Jinghong _ Li) writes:
>Help needed: would someone tell me how to send output
>to a port such as a RS232? Any sepcial commands?
>If the address of the port is known, hwo to declare
>it as a FILE pointer? ...
Well, if you are using Turbo C on a PC, there are some functions:
inport(), inportb(), outport(), outportb() (I think those are the names)
whose uses are to read and write from ports.
---
John Gordon
Internet: gordon at osiris.cso.uiuc.edu #include <disclaimer.h>
gordon at cerl.cecer.army.mil #include <clever_saying.h>
More information about the Comp.lang.c
mailing list