<< Previous | Next >> | |
|
int cof_serXgetc( void ); /* where X is A-F */
Description
- This single-user cofunction yields to other tasks until a character is read from port X. This function only returns when a character is successfully written. It is non-reentrant.
- The functions
cof_serEgetc()
andcof_serFgetc()
may be used with the Rabbit 3000 or Rabbit 4000.Return value
- An integer with the character read into the low byte.
Library
- RS232.LIB
Example
// echoes characters
main() {
int c;
serXopen(19200);
loopinit();
while (1) {
loophead();
wfd c = cof_serAgetc();
wfd cof_serAputc(c);
}
serAclose();
}
Dynamic C Functions | << Previous | Next >> | rabbit.com |