Rockwell Automation 1747-PCIS API Software - Open Controller User Manual

Page 165

Advertising
background image

Publication 1747-UM002A-US-P - June 2000

Header File C-17

WORD OCdriverRevision; /* Device driver revision */

} OCVERSIONINFO;

/************************************************************

* Structure Name: OCDEVICEINFO

*

* Description:

*

* Returned by OC_GetDeviceInfo().

* Information regarding the scanner device.

*

*************************************************************/

typedef struct tagOCDEVICEINFO

{

WORD ScannerType; /* OC, PCIS, etc */

WORD ScannerIrq; /* Interrupt */

DWORD ScannerMemory; /* Memory window physical address */

WORD ControlIo; /* PCIS Control registers I/O address */

DWORD SRAM_Size; /* Size of SRAM in bytes */

} OCDEVICEINFO;

/* return packing alignment to command-line option */

#ifdef _BORLANDC_

#pragma option -a.

#endif /* _BORLANDC */

#ifdef _MSC_VER

#pragma pack()

#endif /* _MSC_VER */

/* Define a convenient macro for library function declarations */

#if !defined(_DLLEXPORT_)

#if defined(__cplusplus)

#define DLLENTRY extern "C" __declspec(dllimport)

#else

#define DLLENTRY __declspec(dllimport)

#endif

#else /* _DLLEXPORT_ */

#if defined(__cplusplus)

#define DLLENTRY extern "C" __declspec(dllexport)

#else

#define DLLENTRY __declspec(dllexport)

#endif

#endif /* _DLLEXPORT_ */

/* Define api calling convention */

#define OCAPI __stdcall

/*************************************

** FUNCTION PROTOTYPES **

*************************************/

DLLENTRY int OCAPI OC_OpenScanner(HANDLE *);

DLLENTRY int OCAPI OC_CloseScanner(HANDLE);

DLLENTRY int OCAPI OC_InitScanner(HANDLE, OCINIT *);

DLLENTRY int OCAPI OC_GetScannerInitInfo(HANDLE, OCINIT *);

DLLENTRY int OCAPI OC_ResetScanner(HANDLE, int);

DLLENTRY int OCAPI OC_GetScannerStatus(HANDLE, BYTE *);

Advertising
This manual is related to the following products: