38
RabbitLink (EG2100)
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
.
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 con-
sole as well.
RETURN VALUE
0 if successful, -1 if not.
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
the 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.
PrintToConsole
SendToConsole
Содержание RabbitLink EG2100
Страница 1: ...RabbitLink EG2100 Network Programming Gateway User s Manual 019 0090 020222 B ...
Страница 8: ...4 RabbitLink EG2100 ...
Страница 32: ...28 RabbitLink EG2100 ...
Страница 44: ...40 RabbitLink EG2100 ...
Страница 46: ...42 RabbitLink EG2100 ...
Страница 48: ......