Definition Attributes
Data Definition Language (DDL) Reference Manual — 426798-002
6- 71
TYPE Clause
Bit Field Output for pTAL and TAL. The following examples show how DDL
translates definitions and descriptions of bit fields into TAL source code:
DDL Type
pTAL or TAL Type
DEF Bit-1 TYPE BIT 1.
DEF New-Bit-1 TYPE Bit-1.
DEF Bit-10 TYPE BIT 10 UNSIGNED.
INT BIT^1;
INT NEW^BIT^1;
INT BIT^10;
DEF Bit-Map.
2 Bits-8 TYPE BIT 8.
2 Bits-3 TYPE BIT 3 UNSIGNED.
2 Bits-10 TYPE BIT 10.
End.
STRUCT BIT^MAP^DEF (*) FIELDALIGN (SHARED2);
BEGIN
UNSIGNED(8) BITS^8;
UNSIGNED(3) BITS^3;
BIT_FILLER 5;
UNSIGNED(10) BITS^10;
BIT_FILLER 6;
END;
DEF Bit-Struct.
2 Bits-0 TYPE Bit-1.
2 Bits-1-To-10 TYPE Bit-10.
End.
STRUCT BIT^STRUCT^DEF (*) FIELDALIGN(SHARED2);
BEGIN
UNSIGNED(1) BITS^0;
UNSIGNED(10) BITS^1^TO^10;
BIT_FILLER 5;
END;
DEF Bit-Fillers.
2 Field-1 Type Character 3.
2 Filler Type Bit 4.
2 Bit-Field-1 Type Bit 5.
2 Filler Type Binary 16.
2 Field-2 Type Binary 32.
End.
STRUCT BIT^FILLERS^DEF (*) FIELDALIGN(SHARED2);
BEGIN
STRUCT FIELD^1;
BEGIN STRING BYTE[1:3]; END;
FILLER 1;
BIT_FILLER 4;
UNSIGNED(5) BIT^FIELD^1;
BIT_FILLER 7;
FILLER 2;
INT(32) FIELD^2;
END;
Содержание 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 ...