<< Previous | Next >> | |
|
void cof_serXputc ( int c ); /* where X is A-F */
Description
- This single-user cofunction writes a character to serial port X, yielding to other tasks when the input buffer is locked. This function is non-reentrant.
- The functions
cof_serEputc()
andcof_serFputc()
may be used with the Rabbit 3000 or Rabbit 4000.Parameters
- c
- Character to write.
Library
- RS232.LIB
Example
// echoes characters
main() {
int c;
serAopen(19200);
loopinit();
while (1) {
loophead();
wfd c = cof_serAgetc();
wfd cof_serAputc(c);
}
serAclose();
}
Dynamic C Functions | << Previous | Next >> | rabbit.com |