home *** CD-ROM | disk | FTP | other *** search
- /*
- Copyright 1990 by John Wiley & Sons, Inc.
- All Rights Reserved.
- */
- /****************************************/
- /* Digitizer Header File */
- /* for inclusion into C programs */
- /* written in Turbo C 2.0 */
- /* by */
- /* Craig A. Lindley */
- /* */
- /* Vers: 1.0 Last Update: 12/07/89 */
- /****************************************/
-
- #ifndef __BYTE /* user defined type */
- #define __BYTE
- typedef unsigned char BYTE;
- #endif
-
- #define TRUE 1
- #define FALSE 0
-
- #define VIDEO 0x10
- #define LPT1 0x3BC /* LPT1 base address */
-
- typedef enum {BW,Color} CMode;
- typedef enum {GCAL,CGAH,EGAL,EGAH,VGAL,VGAM,VGAH} Display;
- typedef enum {PC477,AT6,AT8,PS210,PS216,PS220,PS225,PS233} Computer;
- typedef enum {LowRes,HighRes} HorizMode;
- typedef enum {NonInterlace,Interlace} VertMode;
-
- /* Image Request Structure passed between C and AL to control digitizer */
-
- struct ImageReq
- {
- enum Computer ComputerType;
- unsigned PrtBase;
- enum HorizMode HMode;
- enum VertMode VMode;
- unsigned NumberOfPasses;
- unsigned long Flags;
- char huge *PictBuf;
- unsigned FirstLine;
- unsigned FirstPixel;
- unsigned LastLine;
- unsigned LastPixel;
- };
-
- /* function declarations */
- unsigned InitializeDigitizer (struct ImageReq *);
- void SetPixelCount (unsigned short);
- unsigned short SyncsPerField (void);
- unsigned GetPicture (void);