<< Previous | Next >>

serXputs

int serXputs( char * s ); /* where X is A-F */

Description

Calls serXwrite(s, strlen(s)); does not write null terminator. This function is non- reentrant.

The functions serEputs() and serFputs() may be used with the Rabbit 3000 and Rabbit 4000.

NOTE Alternatively you can use another form of this function that has been generalized for all serial ports. Instead of substituting for "X" in the function name, the prototype of the generalized function is: serXputs(int port, ...), where "port" is one of the macros SER_PORT_A through SER_PORT_F.

Parameters

s
Null terminated character string to write

Return value

The number of characters actually sent from serial port X.

Library

RS232.LIB

Example

// writes a null-terminated string of characters, repeatedly
main() {
const static char s[] = "Hello Rabbit";
serAopen(19200);
while (1) {
serAputs(s);
}
serAclose();
}


Dynamic C Functions << Previous | Next >> rabbit.com