<< Previous | Next >> | |
|
void cof_serXputs( char * str ); /* where X is A-F */
Description
- This single-user cofunction writes a null terminated string to port X. It yields to other tasks for as long as the input buffer may be locked or whenever the buffer may become full as characters are written. This function is non-reentrant.
- The functions
cof_serEputs()
andcof_serFputs()
may be used with the Rabbit 3000 or Rabbit 4000.Parameters
- str
- Null terminated character string to write.
Library
- RS232.LIB
Example
// writes a null terminated character string, repeatedly
main() {
const char s[] = "Hello Rabbit";
serAopen(19200);
loopinit();
while (1) {
loophead();
costate {
wfd cof_serAputs(s);
}
}
serAclose();
}
Dynamic C Functions | << Previous | Next >> | rabbit.com |