Rabbit 2000 Getting Started - page 31
26
Rabbit 2000 Development Kit
4.3.5 Single-User Cofunction Output Functions
These are Dynamic C cofunctions. If the output buffer they use is locked or becomes
empty during the course of their operation, they yield to other tasks, but do not return to
execute the next statement within their own costatement block until they have completed
their operation.
scofunc void cof_serXputc (char c);
Writes a single character to the serial port, yielding to other tasks when unsuccessful, and returning only
when the character is successfully written.
Parameters
c
—Character to write to the serial port.
Return Value
None
scofunc void cof_serXputs(char *s);
Writes a null-terminated character string to the serial port, yielding to other tasks when unsuccessful or
whenever the buffer is full, returning only when the string is successfully written.
Parameters
s
—Null-terminated character string written to the serial port.
Return Value
None
scofunc void cof_serXwrite (void *data, int length);
Writes a block of characters to the serial port, yielding to other tasks when unsuccessful or whenever the
buffer is full, returning only when all the data is successfully written.
Parameters
data
—Source data structure to write to the serial port.
length
—Number of characters in data to write.
Return Value
None