Argox PA-20 Programming Guide Instrukcja Użytkownika Strona 96

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 130
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 95
PT-20 Programming Guide
94
Remote
SetRemoteBaud
Purpose
Setting the RemoteLink baud rate.
Syntax
void SetRemoteBaud(int slBaud);
Example call
SetRemoteBaud (0);
Includes
#include “SDK.h ”
Description
This function can set RemoteLink baud rate(when use com port), the baud
rate setting as follows:
slBaud
Baud rate(bps)
0
115200
1
57600
2
38400
3
19200
4
9600
5
4800
Returns
None
GetRemoteBaud
Purpose
Getting the RemoteLink baud rate.
Syntax
int GetRemoteBaud(void);
Example call
Switch(GetRemoteBaud())
{
Case 0:
_printf_color(COLOR_RED, “RemoteLink baud rate=115200”);
Break;
Case 1:
_printf_color(COLOR_RED, “RemoteLink baud rate=57600”);
Break;
Case 2:
_printf_color(COLOR_RED, “RemoteLink baud rate=38400”);
Break;
Case 3:
_printf_color(COLOR_RED, “RemoteLink baud rate=19200”);
Break;
Case 4:
_printf_color(COLOR_RED, “RemoteLink baud rate=9600”);
Break;
Przeglądanie stron 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 129 130

Komentarze do niniejszej Instrukcji

Brak uwag