Rabbit 2000 Getting Started - page 29
24
Rabbit 2000 Development Kit
4.3.3 Non-Cofunction Blocking Output Functions
These are simple functions that do not use Dynamic C costatements. They immediately
begin to perform their task, not yielding to other tasks until all characters have been written.
int serXputc (char c);
Writes a character to the serial port.
Parameters
c
—Character to write
Return Value
1 for success, 0 if the character could not be written to the port.
int serXputs (char *s);
Calls
serXwrite (s, strlen (s))
.
Parameters
s
—Null-terminated character string source to write to the serial port.
Return Value
The number of characters written.
int serXwrite (void *data, int length);
Writes a block of
length
bytes to the serial port.
Parameters
data
—Destination data structure. The user must ensure data is allocated for at least length bytes.
length
—The number of bytes to read.
Return Value
The number of bytes written to the serial port.