Hi,
I'm programming an interface that is connected to the parallel port of the pc. I know through which ports I can communicate with the interface (status = 379h and control = 37Ah). What I don't know is how it can be done from a C++ program under Linux.
Is it possible to use inline assembler (I only need the IN and OUT opcodes) in gcc 3.0? If so, what's the syntax to do this?
And last but not least, does Linux allow manual port toggling (I know M$ Windows doesn't)? If such direct communication with hardware is impossible, how can I achieve the same results?
The thing came with a DLL and special I/O executable for use under Windows but, since I need very accurate timing and speed, using Windows is entirely out of the question!
Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
Don't worry what people think about you. They're too busy wondering what you think about them.
I'm programming an interface that is connected to the parallel port of the pc. I know through which ports I can communicate with the interface (status = 379h and control = 37Ah). What I don't know is how it can be done from a C++ program under Linux.
Is it possible to use inline assembler (I only need the IN and OUT opcodes) in gcc 3.0? If so, what's the syntax to do this?
And last but not least, does Linux allow manual port toggling (I know M$ Windows doesn't)? If such direct communication with hardware is impossible, how can I achieve the same results?
The thing came with a DLL and special I/O executable for use under Windows but, since I need very accurate timing and speed, using Windows is entirely out of the question!
Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
Don't worry what people think about you. They're too busy wondering what you think about them.