Novatel MiLLennium OM-20000040 User Manual page 37

Glonass gpscard
Table of Contents

Advertisement

The following table describes the format types used in the description of binary logs.
Size
Size
Type
(bytes)
(bits)
char
1
8
int
4
32
double
8
64
float
4
32
Each byte within an int has its own address, and the smallest of the addresses is the address of the int. The byte at
this lowest address contains the eight least significant bits of the doubleword, while the byte at the highest address
contains the eight most significant bits. The following illustration shows the arrangement of bytes within words
and doublewords. Similarly the bits of a "double" type are stored least significant byte first. This is the same data
format used by IBM PC computers.
7
char
address n
31
int
n+3
62
Biased
double
S
Exponent
63
n+7
30
Biased
float
S
Exponent
31
n+3
GPS/GLONASS Receiver User Manual Rev 1
The char type is used to store the integer value of a member of the representable character
set. That integer value is the ASCII code corresponding to the specified character.
The size of a signed or unsigned int item is the standard size of an integer on a particular
machine. On a 32-bit processor (such as the NovAtel GPSCard), the int type is 32 bits, or 4
bytes. The int types all represent signed values unless specified otherwise. Signed integers
are represented in two's-complement form. The most-significant bit holds the sign: 1 for
negative, 0 for positive and zero.
The double type contains 64 bits: 1 for sign, 11 for the exponent, and 52 for the mantissa. Its
range is ±1.7E308 with at least 15 digits of precision.
The float type contains 32 bits: 1 for the sign, 8 for the exponent, and 23 for the mantissa. Its
range is ±3.4E38 with at least 7 digits of precision.
0
15
23
n+2
n+1
55
51
47
52
n+6
n+5
22
15
23-bits mantissa
23
n+2
n+1
Description
7
0
two's
complement
address n
39
31
23
52-bits mantissa
n+4
n+3
n+2
7
0
address n
4 Operation
0
15
7
0
n+1
address n
37

Advertisement

Table of Contents
loading

Table of Contents