EasyManua.ls Logo

Rabbit 2000 - Non-Cofunction Blocking Output Functions

Rabbit 2000
43 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
cCharacter 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
sNull-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
dataDestination data structure. The user must ensure data is allocated for at least length bytes.
lengthThe number of bytes to read.
Return Value
The number of bytes written to the serial port.

Other manuals for Rabbit 2000