Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 3 of 19

PDT 3200 Run-Time Library Reference Manual: Chapter 1 Library Cross-Reference, pages 13 to 20

Pages 13 to 20 of 168, from PDT 3200 Run-Time Library Reference Manual

The original document is the PDF (949 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol PDT-3200

Page 13

Chapter 1 Library Cross-Reference Chapter Contents Installing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 Library Cross-Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 Header Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 TypeDefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 Constant Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6 Routines by Category . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12

1-1

Page 14

PDT 3200 Run-Time Library Reference Manual

1-2

Page 15

Chapter 1: Library Cross-Reference

Installing To install the run-time library Þles, place the DeveloperÕs Toolkit disk in drive A, and run A:\SETUP.

1-3

Page 16

PDT 3200 Run-Time Library Reference Manual

Library Cross-Reference This section provides an overview of the routines, header Þles, typedefs, and constants included in the run-time library. It also outlines the compilation requirements for programs that will include this library.

Header Files Header File

Description filexfer.h

DeÞnes constants for SIO_FileTransfer().

p_bios.h

Declares BIOS interface functions and corresponding constants.

p_cfg.h

Declares conÞguration programming functions and corresponding constants.

p_supp.h

DeÞnes type declarations, constant deÞnitions, register data structures, and compatibility macros, and declares internal function for API.

sio.h

Declares serial communications functions and corresponding constants.

Library All of the routines in the run-time library are included in FALCS.LIB, FALCM.LIB, and FALCL.LIB. These libraries were created with the Borland C++ compiler, version 4.52. Modules in these libraries were compiled using the small-, medium-, and largememory models, respectively. These libraries can be linked into applications using a Borland C++ or Microsoft C++ compiler. You must compile and link the applications with the correct memory model. If your application is compiled using the smallmemory model, use FALCS.LIB. If your application is compiled using the mediummemory model, use FALCM.LIB. If your application is compiled using the largememory model, use FALCL.LIB. See Chapter 4: A Program Sample.

1-4

Page 17

Chapter 1: Library Cross-Reference

TypeDefs Variable Type

Equivalent C Type

BOOL unsigned char

BYTE unsigned char

DWORD unsigned long

FLAGS unsigned int

LPBYTE unsigned char far*

LPWORD unsigned long far*

PBYTE unsigned char near*

PWORD unsigned long near* ticks_t unsigned long

UCHAR unsigned char

UINT unsigned int

ULONG unsigned long

USHORT unsigned short

WORD unsigned short

The following structure is used by the serial transfer routines. Constants for setting its members are provided in Constant DeÞnitions. See Chapter 3: Serial Communications for detailed information about using the structure and its individual elements. typedef struct { WORD BYTE BYTE BYTE BYTE BYTE long BYTE BYTE BYTE BYTE baseaddr; portid; databits; stopbits; parity; breakbit; baudrate; DTR; RTS; GPO1; GPO2;

1-5

Page 18

PDT 3200 Run-Time Library Reference Manual

BYTE BYTE BYTE BYTE BYTE WORD BYTE void void

CTS; DSR; RI; DCD; protocol; commstatus; interrupts; (ShowRx)(void); (ShowTx)(void);

} PORT;

Constant Definitions Boolean Values FALSE TRUE

0 1

Video Service Constants

Video Modes The following constants indicate video modes for BIOS_SetVideoMode(): P_VMODE_GRAPHIC_320X200 P_VMODE_GRAPHIC_320X200_CB P_VMODE_GRAPHIC_640X200 P_VMODE_TEXT_40X25 P_VMODE_TEXT_40X25_CB P_VMODE_TEXT_80X25

0x04 0x05 0x06 0x00 0x01 0x02

P_VMODE_TEXT_80X25_CB P_VMODE_TEXT_80X25_MONO

0x03 0x07

Cursor Style The following constants indicate cursor styles for BIOS_SetCursorStyle(): P_CUR_FULL P_CUR_HALF P_CUR_HTOP P_CUR_NORM P_CUR_OFF

1-6

0x0007 0x0307 0x0003 0x0607 0x0100

Page 19

Chapter 1: Library Cross-Reference

Screen Attribute The following constants indicate the screen attribute for those functions receiving or returning the screen attribute: P_ATT_INVERSE P_ATT_NORM

0x70 0x07

Active Page Indicator The following constant speciÞes the active video page for those functions that require the video page to be speciÞed. If P_ACTIVE_PAGE is used instead of specifying the speciÞc video page, the active page is determined by calling BIOS_GetDisplayPage(). P_ACTIVE_PAGE

0xFF

Viewport Mode Setting The following constants indicate the mode of viewport panning for BIOS_GetViewportMode() and BIOS_SetViewportMode(). If the value sent to BIOS_SetViewportMode() or returned by BIOS_GetViewportMode() equals P_VIEWPT_HPAN + P_VIEWPT_VPAN (0x03), both horizontal and vertical panning are enabled. P_VIEWPT_HPAN P_VIEWPT_VPAN

0x01 0x02

Font Identifiers The following constants check the value returned by BIOS_GetFontInfo(): P_ACT_FONT P_6X8_FONT P_8X8_FONT P_8X16_FONT

0x01 0x08 0x03 0x06

1-7

Page 20

Keyboard Services Constants

Standard PC Keyboard Flags The following constants indicate the status of the CTRL, ALT, CAPS LOCK, and INSERT keys for BIOS_GetKeyFlags() and BIOS_GetKeyExtFlags(): P_KBDSHIFT_ALT P_KBDSHIFT_CAPS P_KBDSHIFT_CTRL P_KBDSHIFT_INS

0x08 0x40 0x04 0x80

Extended PC Keyboard Flags The following constants indicate the status of CTRL, ALT, and CAPS LOCK keys for BIOS_GetKeyExtFlags(): P_KBDSHIFT_ALT_DOWN P_KBDSHIFT_CAPS_DOWN P_KBDSHIFT_CTRL_DOWN

0x0200 0x4000 0x0100

Unit-Specific Keyboard Flags The following constants indicate the status of ÒspecialÓ keys for BIOS_GetKeyInputState() or BIOS_SetKeyInputState(). Each constant represents a bit in the variable indicating key status. Therefore, multiple constants may be used simultaneously. P_KBDSTATE_ALPHA P_KBDSTATE_ALPHA_DOWN P_KBDSTATE_ALT P_KBDSTATE_ALT_DOWN P_KBDSTATE_CAPS P_KBDSTATE_CAPS_DOWN P_KBDSTATE_CTRL P_KBDSTATE_CTRL_DOWN P_KBDSTATE_FUNC1 P_KBDSTATE_FUNC1_DOWN P_KBDSTATE_FUNC2 P_KBDSTATE_FUNC2_DOWN P_KBDSTATE_INTL P_KBDSTATE_PRGM

0x0020 0x2000 0x0008 0x0800 0x0010 0x1000 0x0004 0x0400 0x0001 0x0100 0x0002 0x0200 0x0080 0x0040