Re: Parallel Port: Settings PINs on?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-06-01 12:01:50 +0200, Nico Schottelius <[email protected]> wrote:
> Is it possible to select (in userspace) which pins
> should be enabled or do I have to write a kernel driver
> for that?

There's already a driver available for exactly this purpose: ppdev.

At http://lug-owl.de/~jbglaw/software/steckdose/steckdose.c is a program
I wrote for controlling a shift register (serial in, parallel out) with
relays attached (to switch on/off computers or to reset them). This
should help you for a start. (Basically, open/claim the port and set the
bits of the DATA port via an ioctl())

MfG, JBG

-- 
Jan-Benedict Glaw       [email protected]    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux