delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/15/03:39:30

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
Organization: Materials Science Centre
To: wilbert AT se-43 DOT wpa DOT wtb DOT tue DOT nl, djgpp AT delorie DOT com
Date: Tue, 15 Oct 1996 08:19:30 GMT
Subject: Re: reading the port
Message-ID: <1082AD76130@fs2.mt.umist.ac.uk>

  wilbert AT se-43 DOT wpa DOT wtb DOT tue DOT nl (W. Alberts) wrote:-
> Is there any package, source code, examples, documentation dealing with how
> to read the serial ports?

#include <pc.h>

see file djgpp\include\pc.h :-

#define uns unsigned
uns char  inportb(uns short port);
uns short inportw(uns short port);
uns long  inportl(uns short port);

void outportb(uns short port, uns char data);
void outportw(uns short port, uns short data);
void outportl(uns short port, uns long data);

uns char  inportsb(uns short port, uns char  *buf, uns len);
uns short inportsw(uns short port, uns short *buf, uns len);
uns long  inportsl(uns short port, uns long  *buf, uns len);

void outportsb(uns short port, uns char  *buf, uns len);
void outportsw(uns short port, uns short *buf, uns len);
void outportsl(uns short port, uns long  *buf, uns len);

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019