[comp.sys.amiga] serial device question

jack@stevie.cs.unlv.edu (The Nevada Crusher) (07/07/89)

Once again I will post this question in hopes of soliciting a response...

I understand that there is a way to query the serial device for the
number of bytes available for reading, but have been unable to find
out about it via documentation.  Anyone know how? 

				Thanks in advance

papa@pollux.usc.edu (Marco Papa) (07/07/89)

In article <1167@jimi.cs.unlv.edu> jack@jimi.cs.unlv.edu (The Nevada Crusher) writes:
|Once again I will post this question in hopes of soliciting a response...
|I understand that there is a way to query the serial device for the
|number of bytes available for reading, but have been unable to find
|out about it via documentation.  Anyone know how? 

CMD_QUERY. Then read io_Actual.

-- Marco Papa 'Doc'

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa       BIX:papa       ARPAnet:pollux!papa@oberon.usc.edu
"There's Alpha, Beta, Gamma, Diga and Caligari!" -- Rick Unland
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

ckp@grebyn.com (Checkpoint Technologies) (07/10/89)

In article <1167@jimi.cs.unlv.edu> jack@jimi.cs.unlv.edu (The Nevada Crusher) writes:
>
>Once again I will post this question in hopes of soliciting a response...
>
>I understand that there is a way to query the serial device for the
>number of bytes available for reading, but have been unable to find
>out about it via documentation.  Anyone know how? 
>
>				Thanks in advance

You use the SDCMD_QUERY command. When it returns, the number of bytes
available for reading are in the IO_ACTUAL field.

-- 
First comes the logo: C H E C K P O I N T  T E C H N O L O G I E S      / /  
                                                                    \\ / /    
Then, the disclaimer:  All expressed opinions are, indeed, factual.  \  / o
Now for the witty part:    I'm pink, therefore, I'm spam!             \/