How do I control the parallel port

Hi all,

How do I control a parallel port. In other words: How do I set or read D0-D7
and the lines.

Freddy.

Buy/borrow a copy of ‘Parallel Port Complete’ by Jan Axelson, ISBN
0965081915

“fmartens-2000” <fmartens-2000@planet.nl> wrote in message
news:976i4f$1gc$1@inn.qnx.com

Hi all,

How do I control a parallel port. In other words: How do I set or read
D0-D7
and the lines.

Freddy.

inp8()
outp8()

You have to be root and you have to mmap_device_io() the ports before
accessing them. The port assignments are usually:

Data 378 278 3bc
Status 379 279 3bd
Ctrl 37a 27a 3be




Previously, fmartens-2000 wrote in qdn.public.qnxrtp.os:

Hi all,

How do I control a parallel port. In other words: How do I set or read D0-D7
and the lines.

Freddy.
\


Mitchell Schoenbrun --------- maschoen@pobox.com

Thanks Mitchell,

Mitchell Schoenbrun <maschoen@pobox.com> wrote in message
news:Voyager.010302184229.12497B@schoenbrun.com

inp8()
outp8()

You have to be root and you have to mmap_device_io() the ports before
accessing them. The port assignments are usually:

Data 378 278 3bc
Status 379 279 3bd
Ctrl 37a 27a 3be




Previously, fmartens-2000 wrote in qdn.public.qnxrtp.os:
Hi all,

How do I control a parallel port. In other words: How do I set or read
D0-D7
and the lines.

Freddy.



\

Mitchell Schoenbrun --------- > maschoen@pobox.com