From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d0077c2a3f44fc09,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news.glorb.com!newspeer2.se.telia.net!se.telia.net!frankfurt2.telia.de!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Port LPT + ADA Date: Fri, 03 Dec 2004 15:40:21 +0100 Organization: None Message-ID: <2725430.ShOyuHW7BU@linux1.krischik.com> References: Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: news.t-online.com 1102085090 01 4626 Bs75XYNlKirXSyG+ 041203 14:44:50 X-Complaints-To: usenet-abuse@t-online.de X-ID: VrOZ5BZGZecMXbqelYBkk7gWfk7m+8yIsvJiX76eRoK7s7D3U13ogV User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:6738 Date: 2004-12-03T15:40:21+01:00 List-Id: S�awo - MIR wrote: > Hi ! > > I try to read data in ADA from input register (pins: 10,11,12,13,15) of > LPT port and I can't do this :-(, with using a handle and function > CreateFile(), and then ReadFile() from Win32.Winbase. > The connection is probably made, but register is located in memmory > address 379h, and I can't get there :-( type Byte is mod 256; Port : Byte; for Port'Address use 16#379#; > I know that way it can be read from COM port, but can I make it with the > LPT port too??? > I don't know if I can do it with this functions CreateFile and ReadFile > from library Win32.Winbase. Maybe someone help me with LPT ?!? ;-( maybe > someone help me and send me a few lines of code? ;-) > > PS Please, forgive me my English :/ > > S�awo - MIR With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com