RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
314
10.1.7 Data Types
The following table defines the formats and ranges
of the different data types used by the
RTC6 commands:
Pointer to Locations in the PC Memory
Some RTC6 commands (for example,
get_transform/get_transform_offset, get_values,
get_waveform, transform or upload_transform)
have pointers to locations in the PC memory as
parameters. In C# and Pascal, appropriate pointer
data types are herefore used (see import
declarations). In C and C++, the data type
ULONG_PTR is used for this pointer parameters. The
ULONG_PTR data type is defined in the C and C++
import declarations as follows
(ULONG_PTR = unsigned 32-bit value
for Win32-user programs,
ULONG_PTR = unsigned 64-bit value
for Win64-user programs):
#if !defined(ULONG_PTR)
#if !defined(_WIN64)
#define ULONG_PTR UINT
#else
#define ULONG_PTR UINT64
#endif // !defined(_WIN64)
#endif // !defined(ULONG_PTR)
Usually, the data type ULONG_PTR is also
appropriately defined in the Windows header file
BaseTsd.h
.
Data Format Range Pascal C, C++ C#
unsigned 32-bit value [0; (2
32
–1)] longword unsigned long uint
signed 32-bit value [–2
31
; +(2
31
–1)] longint long int
64-bit IEEE floating point value double double double
pointer to a \0-terminated
ANSI string (1 byte per char)
4 Byte for Win32-
user programs
8 Byte for Win64-
user programs
pchar char* string