Karl Tipple (firstname.lastname@example.org)
Thu, 15 Jul 1999 09:08:58 -0700
Can anyone tell me which header files and/or libraries in the LINUX gcc C
compiler that I need to include so that I can use the 'inp' and 'outp'
to access my parallel port? In DOS, those functions are in my 'dos.h'
I want to port this to LINUX, and I don't think that 'dos.h' will help much
Here is a sample of a piece of code I wrote to test out reading the port:
/*This program displays the value present at the input lines of the parallel
printer port */
#include<dos.h> /*these are the header files needed for the functions
by this program */
char value; /*Declares variable 'value'*/
value=inp(0x379); /*Defines variable 'value', assigns it to inp function
reads data at parallel input). */
printf("The value at port 379 is %x\n", value); /*prints to screen HEX
retrieved from port*/
I've built a hardware interface so that I can read in data from sensors
STATUS lines and output signals through the DATA lines to control relays.
Thanks in advance for any help you can provide.
-- To unsubscribe, send mail to: email@example.com --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2.0b3 on Thu 15 Jul 1999 - 12:06:30 EDT