Chapter 4. Data Structure
4.
Data Structure
The MR350MKII system control data structures are outlined in the following diagram. The
system kernel uses the File Allocation Table (FAT), File Handle Table (FHT),
Communication Control Table, Device Control Table and Key Alias Table. The following
sections will describe each one of these control tables. The description includes a "typedef"
part and the "default" values of the table.
Terminal Application
Terminal Control Table
File Allocation Table
4.1.
Device Control Table
The device control table contains the MR350MKII peripheral configuration
information including barcode scanner port, badge reader port, LCD display,
keyboard and buzzer output information. The barcode scanner is controlled by a
separate data structure and barcode control table, to be discussed later.
4.2.
Type Definition
typedef struct {
scanner:
badge
lcd_backlight: 'N'
Device Control Table
Kernel
File Handle Table
BYTE scanner;
BYTE badge;
BYTE lcd_backlight;
BYTE buzzer;
BYTE keylock;
BYTE buzzer_volume;
} DEV_CONFIG;
'N'
= enable scanner port
'F'
= disable scanner port (default)
'B'
= enable badge port for barcode slot reader (default)
'M'
= enable badge port for magnetic card reader
'D'
= disable badge port
= set LCD backlight ON
4-47
EXEC
Key Alias Table
Comm Control Table
RS232&RS454