User’s Manual
39
E.6 RabbitLink Console API (prior to Dynamic C 7.20)
The RabbitLink serial console may be accessed via the serial port using the
PROG IN
connector
on the RabbitLink, as was done in Chapter 2 to configure the RabbitLink.
If RabbitLink firmware version 1.00 is being used, the API functions described in this section will
be recognized by the RabbitLink. Prior to Dynamic C 7.20 these functions were in
STDIO.LIB
.
PrintToConsole
int PrintToConsole(char flag);
This function controls whether Stdio commands such as
printf
go to the RabbitLink
serial console in addition to the Dynamic C Stdio window.
PARAMETER
flag
0 –
printf()
and related commands work as normal
1 –
printf()
and related commands go to the RabbitLink serial
console as well.
RETURN VALUE
0 if successful, -1 if not.
SendToConsole
int SendToConsole(char *data, int length);
This function writes a binary buffer of a specified length to the serial console on a Rab-
bitLink. Any data are acceptable since the data will not show up in
t
he Dynamic C
STDIO
window.
PARAMETERS
data
A pointer to the data to be sent.
length
The length of the buffer passed in data
.
RETURN VALUE
The actual number of bytes written to the console.
Содержание EG2110
Страница 22: ...User s Manual 18 ...
Страница 26: ...22 RabbitLink EG2110 ...
Страница 36: ...32 RabbitLink EG2110 ...
Страница 46: ...42 RabbitLink EG2110 ...
Страница 48: ...44 RabbitLink EG2110 ...
Страница 50: ......