SPI Programming Manual (G06.24+, H06.03+, J06.03+)

ZSPI Data Definitions
SPI Programming Manual427506-006
4-2
Fundamental Data Structures
ZSPI-DDL-BYTE
ZSPI-DDL-BYTE defines a single byte.
ZSPI-DDL-BYTE-PAIR
ZSPI-DDL-BYTE-PAIR defines a pair of bytes.
ZSPI-DDL-CHAR
ZSPI-DDL-CHAR defines a single ASCII character.
ZSPI-DDL-CHAR-PAIR
ZSPI-DDL-CHAR-PAIR defines a string of two ASCII characters, also addressable as a
single integer or two individual characters.
ZSPI-DDL-CHAR3
ZSPI-DDL-CHAR3 defines a string of three ASCII characters, also addressable as a
single integer or three individual characters.
def ZSPI-DDL-BYTE type binary 8 unsigned spi-null 0.
def ZSPI-DDL-BYTE-PAIR.
02 Z-BYTE type ZSPI-DDL-BYTE occurs 2 times.
end
def ZSPI-DDL-CHAR pic x spi-null " ".
def ZSPI-DDL-CHAR-PAIR.
02 Z-C pic x(2) spi-null " ".
02 Z-S redefines Z-C.
03 Z-I type binary 16.
02 Z-B redefines Z-C pic x occurs 2 times.
end
def ZSPI-DDL-CHAR3.
02 Z-C pic x(3) spi-null " ".
02 Z-S redefines Z-C.
03 Z-I type binary 16.
03 filler pic x.
02 Z-B redefines Z-C pic x occurs 3 times.
end