To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 3363
3362  |  3364
Subject: 
GETCHAR
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 4 Mar 1998 21:00:17 GMT
Original-From: 
green cgi <green_cgi@hotmail.#NoSpam#com>
Viewed: 
1456 times
  
Hello,

  I am having trouble with the serial_getchar function in serialio.  I
would like to put a character into the received memory location directly
without hanging the program.  From what I understand (0x102f) is the
location, however I don't know how to put the character in there.

Can I poke a character in? If so, how?  I have tried and tried, but with
no success.

Could someone explain how the serial_getchar works?

int serial_getchar()
{
  while (!(peek(0x102e) & 0x20));
  return (peek(0x102f));
}

Thanks,
Happy Handy Boarding!



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR