Home

ØVariable Data Format

TGUS screen data use integer (double-byte), unsigned integer (double-byte), long integer (4 bytes), very long integer (8 bytes) data format, etc. The data range like the following table:

Data Format

Minimum Value

Maximum Value

Integer

-32768(0x8000)

+32767(0x7FFF)

Unsigned Integer

0(0x0000)

65535(0xFFFF)

Very Integer

-2147483648(0x80000000)

+2147483647(0x7FFFFFFF)

Super Long Integer

-9223372036854775808

9223372036854775807

Decimal expresses with fixed-point decimal, the user customizes decimal number, such as 0x04D2 (1234), when specifying a decimal as 2 digits, represents 12.34 .


ØColor Format

TGUS use 16-bit RGB565 color format, occupies two bytes, can have 65K colors.

The color definition as follows:

D15

D14

D13

D12

D11

D10

D9

D8

D7

D6

D5

D4

D3

D2

D1

D0

R4

R3

R2

R1

R0

G5

G4

G3

G2

G1

G0

B4

B3

B2

B1

B0

Red

Green

Blue

Eg: Red 0xF800,Green 0x07E0,Blue 0x001F,White 0xFFFF,Black 0x0000