Remote, Setremotebaud, Getremotebaud – Argox PA-20 Programming Guide User Manual

Page 96

Advertising
background image

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;

Advertising