From owner-freebsd-hardware Sun Feb 16 13:59:15 2003 Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADD4337B401 for ; Sun, 16 Feb 2003 13:59:14 -0800 (PST) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FC4A43F3F for ; Sun, 16 Feb 2003 13:59:14 -0800 (PST) (envelope-from nsouch@free.fr) Received: from armor.fastether (nas-cbv-8-62-147-157-7.dial.proxad.net [62.147.157.7]) by postfix3-1.free.fr (Postfix) with SMTP id DD1FDC0A3 for ; Sun, 16 Feb 2003 22:59:12 +0100 (CET) Received: (qmail 19285 invoked by uid 1001); 16 Feb 2003 22:15:07 -0000 Date: Sun, 16 Feb 2003 23:15:07 +0100 From: Nicolas Souchu To: freebsd-hardware@FreeBSD.ORG Subject: Re: receiving via parallel port Message-ID: <20030216231507.B19156@armor.fastether> References: <20030125202607.GA963@gicco.homeip.net> <20030128001601.A28820@armor.fastether> <20030128222842.GA858@gicco.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030128222842.GA858@gicco.homeip.net>; from hampi@rootshell.be on Tue, Jan 28, 2003 at 11:28:42PM +0100 Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jan 28, 2003 at 11:28:42PM +0100, Hanspeter Roth wrote: > man ppi(4) just shows an example of output. > Is there also an example of input? > Or is it just as simple as > ioctl(fd, PPIGDATA, &val); > ? > How can I know which pins are output and which ones are input? You must read parallel port specification. ppi gives you access to pport registers. -- Nicholas Souchu - nsouch@free.fr - nsouch@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message