RabbitLink EG2110 Instrukcja Użytkownika Strona 52

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 58
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 51
48 RabbitLink (EG2110)
E.6 RabbitLink Console Function Call (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 function calls 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
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.
Przeglądanie stron 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 58

Komentarze do niniejszej Instrukcji

Brak uwag