SPC  Version 0.9.5
 All Files Functions Groups Pages
SerialInByte

The SerialInByte returns the character waiting in the input FIFO receive queue.

A program should wait for a character to become available before performing a read from SerialInByte. The result of reading from an empty FIFO receive queue is unpredictable.

while ( SerialInCount == 0 ) ; //wait for a character
kbchar = SerialInByte ; //get it