Data structures for the KL6xxx serial bus terminal in 3-byte mode

For data exchange by way of the I/O bus, every serial bus terminal needs variables of type KL6inDataBC and KL6outDataBC. These variables are located at fixed addresses in the bus controller’s memory map, corresponding to the serial bus terminal’s mapping.

KL6inDataBC

TYPE KL6inDataBC
STRUCT
    SerStatus : BYTE;
    D         : ARRAY[0..2] OF BYTE;
END_STRUCT
END_TYPE

KL6outDataBC

TYPE KL6outDataBC
STRUCT
    SerCtrl : BYTE;
    D       : ARRAY[0..2] OF BYTE;
END_STRUCT
END_TYPE