From owner-freebsd-hardware Tue Jan 28 14:28:52 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 CE1D837B401 for ; Tue, 28 Jan 2003 14:28:51 -0800 (PST) Received: from gicco.homeip.net (dclient80-218-75-162.hispeed.ch [80.218.75.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7907343F43 for ; Tue, 28 Jan 2003 14:28:50 -0800 (PST) (envelope-from hampi@rootshell.be) Received: from localhost.here (idefix@gicco.homeip.net [127.0.0.1]) by gicco.homeip.net (8.12.6/8.12.6) with ESMTP id h0SMShou000895 for ; Tue, 28 Jan 2003 23:28:43 +0100 (CET) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by localhost.here (8.12.6/8.12.6/Submit) id h0SMSgGu000894 for freebsd-hardware@FreeBSD.ORG; Tue, 28 Jan 2003 23:28:42 +0100 (CET) X-Authentication-Warning: localhost.here: idefix set sender to hampi@rootshell.be using -f Date: Tue, 28 Jan 2003 23:28:42 +0100 From: Hanspeter Roth To: freebsd-hardware@FreeBSD.ORG Subject: Re: receiving via parallel port Message-ID: <20030128222842.GA858@gicco.homeip.net> Reply-To: freebsd-hardware@FreeBSD.ORG Mail-Followup-To: freebsd-hardware@FreeBSD.ORG References: <20030125202607.GA963@gicco.homeip.net> <20030128001601.A28820@armor.fastether> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030128001601.A28820@armor.fastether> User-Agent: Mutt/1.4i 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 Jan 28 at 00:16, Nicolas Souchu spoke: > On Sat, Jan 25, 2003 at 09:26:07PM +0100, Hanspeter Roth wrote: > > Hello, > > > > can I receive data via the parallel port? > > Are there some examples? > > ppi(4) for interacting with ppbus(4). Otherwise, you can i/o the port 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? -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message