Definition Attributes
Data Definition Language (DDL) Reference Manual — 426798-002
6- 68
TYPE Clause
DEF Bit-Map.
2 Bits-8 TYPE BIT 8.
2 Bits-3 TYPE BIT 3 UNSIGNED.
2 Bits-10 TYPE BIT 10.
End.
TYPE BIT_MAP_DEF = PACKED RECORD
BITS_8 : INT(8);
BITS_3 : UNSIGNED(3);
FILLER_1 : INT(5);
BITS_10 : INT(10);
FILLER_2 : INT(6);
END;
DEF Bit-Struct.
2 Bits-0 TYPE Bit-1.
2 Bits-1-To-10 TYPE Bit-10.
End.
TYPE BIT_STRUCT_DEF = PACKED RECORD
BITS_0 : BIT_1_DEF;
BITS_1_TO_10 : BIT_10_DEF;
FILLER_1 : INT(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.
TYPE BIT_FILLERS_DEF = PACKED RECORD
FIELD_1 : FSTRING(3);
{ the following is implicit }
FILLER_1 : CHAR;
FILLER_2 : INT(4);
BIT_FIELD_1 : INT(5);
{ the following is implicit }
FILLER_3 : INT(7);
FILLER_4 : INT16;
FIELD_2 : INT32;
END;
DDL Type
Pascal Type