HP DDL D40 Reference Manual page 215

Data definition language
Table of Contents

Advertisement

SPI Tokens
Table 7-2. Structure of a Bit Map
Value in Word
1
0
511
1
17162
511
1
17172
767
1
0
767
The next example shows incorrect use of the SPI-NULL value for bit fields:
DEF bits-layout-z.
02 z-1
02 z-2
02 z-3
02 z-4
END.
*** ERROR *** SPI-NULL value on a bit field must be 255 - Z-1
*** ERROR *** SPI-NULL value on a bit field must be 255 - Z-2
The next examples show incorrect use of version numbers for bit fields:
In the following example, NOVERSION is incorrect for field z-2 because DDL would put
z-2 in the same byte as field z-1, and bit fields in the same byte must have the same
version number.
DEF bits-layout-z.
02 z-1
02 z-2
02 z-3
02 z-4
END.
TOKEN-MAP map-bits-z VALUE is 20 DEF is bits-layout-z.
VERSION "C00" FOR z-1.
NOVERSION FOR z-2.
Data Definition Language (DDL) Reference Manual—426798-002
Byte 1
Byte 2
0
1
0
0
1
255
0
1
C
10
1
255
0
1
C
20
2
255
0
1
0
0
2
255
Type BIT 4 SPI-Null 0.
Type BIT 3 SPI-Null 1.
Type BIT 10.
Type BIT 4.
Type BIT 4 SPI-Null 255.
Type BIT 3 SPI-Null 255.
Type BIT 10.
Type BIT 4.
Meaning of Value
New version specification follows
NOVERSION
Null value for bit FILLER
New version specification follows
Version C10
Null value for bits-2
New version specification follows
Version C20
Null value for bits-5 and bits-4
New version specification follows
NOVERSION
Null value for bits-7 and bit FILLER
7- 25
TOKEN-MAP Statement

Advertisement

Table of Contents
loading

Table of Contents