SPI Tokens
Data Definition Language (DDL) Reference Manual — 426798-002
7- 23
TOKEN-MAP Statement
02 bits-3 Type BIT 3.
02 FILLER Type BIT 10.
02 bits-2 Type BIT 2.
02 bits-5 Type BIT 5.
02 FILLER Type BIT 4.
02 bits-4 Type BIT 4.
02 bits-7 Type BIT 7.
END.
TOKEN-MAP bit-map-ex-c VALUE 111 DEF bit-ddl-ex-c.
VERSION "C00" FOR char-3 THRU bits-3.
VERSION "C10" FOR bits-2.
VERSION "C20" FOR bits-5 THRU bits-4.
NOVERSION FOR bits-7.
END.
DDL produces the following pTAL or TAL language output from the preceding
definitions and TOKEN-MAP statements for bit fields:
?SECTION BITS^LAYOUT^X
STRUCT BITS^LAYOUT^X^DEF (*);
BEGIN
UNSIGNED(5) X^1;
UNSIGNED(3) X^FILLER;
UNSIGNED(7) X^2;
BIT_FILLER 1;
END;
?SECTION MAP^BITS^X
DEFINE MAP^BITS^X = [ 2303, 1, 2, 17152, 767 ]#;
LITERAL MAP^BITS^X^WLN = 5;
?SECTION BITS^LAYOUT^Y
STRUCT BITS^LAYOUT^Y^DEF (*);
BEGIN
UNSIGNED(4) Y^1;
UNSIGNED(8) Y^2;
BIT_FILLER 4;
UNSIGNED(6) Y^3;
BIT_FILLER 10;
END;
?SECTION MAP^BITS^Y
DEFINE MAP^BITS^Y = [2303,32740,4,10000,767,1,15000,511,1,0,
511 ]#;
LITERAL MAP^BITS^Y^WLN = 11;
?SECTION BIT^DDL^EX^A
STRUCT BIT^DDL^EX^A^DEF (*);
BEGIN
UNSIGNED(8) BITS^8;
UNSIGNED(3) BITS^3;
UNSIGNED(2) BITS^2;
BIT_FILLER 3;
UNSIGNED(10) BITS^10;
UNSIGNED(1) BITS^1;
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...