<< Previous | Next >> | |
|
int serXwrite( void * data, int length ); /* X is A-F */
Description
- Transmits
length
bytes to serial port X. This function is non-reentrant.
- The functions
serEwrite()
andserFwrite()
may be used with the Rabbit 3000 and Rabbit 4000.Parameters
- data
- Data structure to write to serial port X
- length
- Number of bytes to write
Return value
- The number of bytes successfully written to the serial port.
Library
- RS232.LIB
Example
// writes a block of characters, repeatedly
main() {
const char s[] = "Hello Rabbit";
serAopen(19200);
while (1) {
serAwrite(s, strlen(s));
}
serAclose();
}
Dynamic C Functions | << Previous | Next >> | rabbit.com |