Nope... Not unless you use a 3rd party libary that provides these functions. Standard C does not. Most compilers have some sort of function to access IO ports. Usually something like outp() and inp() for readin' and writin' to IO ports. Using these you could write your own COM port handler.... <p> <br><a href=mailto:Kim_Christensen@telus.net>Kim_Christensen@telus.net</a><br><a href=
If you want to send data to the com ports using c you have to use the bios.h header file. It usually is specific to the compiler and i have only found it on the old dos or command line compilers. It might also be in a newer gui compiler but you would have to check. The function you want to use is usually called _bios_serialcom(). It interface directely to the bios and i think does not interface with the os, not positive though. I know for sure that it is included in the borland 3.x dos c/c++ compiler i have been using for class for some time now. Exactly how to use the function is in C: The complete reference by Hebert Schildt, its only a couple pages so you can go to the library and photocopy it, on page 390. Tells you baud rate, how to set the parity bit etc.. I think if you check borlands website the have a free command line base compiler which has this library. good luck, the hardest is modifing each bit,<br><br> <p>moses<br><a href=mailto:tmoses@iname.com>tmoses@iname.com</a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.