GeoCOM Reference Manual
Communication Settings
Leica TPS1200 / TS30 / TM30 – Version 1.50
21
5
C
OMMUNICATION
S
ETTINGS
5.1
USAGE
This subsystem provides functions which influences GeoCOM as a whole and functions, which relate to the client side
only. If a function influences the client side only then there is no ASCII request defined.
5.2
CONSTANTS AND TYPES
Serial Port Selector
This enumeration type denotes the hardware serial port.
enum COM_PORT
{
COM_1 =
0,
// port 1
COM_2 =
1,
// port 2
COM_3 =
2,
// port 3
COM_4 =
3
// port 4
};
Transmission Data Format
This value tells if the transmission takes place in a readable ASCII data format or in a data size optimised binary data
format.
enum COM_FORMAT
{
COM_ASCII = 0,
// Force ASCII comm.
COM_BINARY = 1
// Enable binary comm.
};
Baud Rate
enum COM_BAUD_RATE
{
COM_BAUD_38400 = 0,
COM_BAUD_19200 = 1,
// default baud rate
COM_BAUD_9600
= 2,
COM_BAUD_4800
= 3,
COM_BAUD_2400
= 4,
COM_BAUD_115200 = 5,
COM_BAUD_57600 = 6
};
MS-Windows Data Types
One of the described functions uses the predefined type
HWND
of MS-Windows. Please refer to the documentation of
MS-Windows development environment for this data type.
Note:
HWND
depends on whether the pre-processor symbol
STRICT
is defined. When MFC libraries are used,
STRICT
is automatically defined. Otherwise the user must
#define STRICT
or he will get unresolved externals.