<< Previous | Next >> | |
|
void cof_serXwrite( void * data, int length ); /* where X is A-F */
Description
- This single-user cofunction writes
length
bytes to port X. It yields to other tasks for as long as the input buffer is locked or whenever the buffer becomes full as characters are written. This function is non-reentrant.
- The functions
cof_serEwrite()
andcof_serFwrite()
may be used with the Rabbit 3000 or Rabbit 4000.Parameters
- data
- Data structure to write.
- length
- Number of bytes in
data
to write.
Library
- RS232.LIB
Example
// writes a block of characters, repeatedly
main() {
const char s[] = "Hello Rabbit";
serAopen(19200);
loopinit();
while (1) {
loophead();
costate {
wfd cof_serAwrite(s, strlen(s));
}
}
serAclose();
}
Dynamic C Functions | << Previous | Next >> | rabbit.com |