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

Publication 1747-UM002A-US-P - June 2000
Header File C-5
/* ***** Module File Types ***** */
/* These values are passed to the OC_WriteModuleFile() and OC_ReadModuleFile() */
/* functions. */
/* */
#define FILTYP_G 0x05 /* Module G file */
#define FILTYP_M0 0x08 /* Module M0 file */
#define FILTYP_M1 0x09 /* Module M1 file */
/* ***** I/O Configuration Definitions ***** */
#define OCMAXSLOT 31
/* Maximum number of slots (slot 0 is reserved for PCIL) */
#define OCEMPTYTYPE 0xFF
/* Mix and type codes for empty slots and slot 0 */
#define OCEMPTYMIX 0xFF
#define OCWILDTYPE 0xFF
/* Wildcard type code - matches any module type */
#define OCSTSFILEWSIZE 25
/* Status file size in words */
#define OCRTCSRAMSIZE 0x1000
/* size of real-time clock SRAM */
#define OCSEGMENTSIZELIMIT 0x1A00
/* size of dual-port RAM available for I/O and host partitions */
/****** Message callback return values ***** */
#define OCNOQUEUE 1
#define OCQUEUE 0
/* **** Device Type Definitions **** */
/* Returned by OC_GetDeviceInfo(). */
#define OCDEVTYPE_OC 1 /* 1747-PCIL */
#define OCDEVTYPE_PCIS 2 /* 1747-PCIS */
/* ************************************ */
/* ** TYPE DEFINITIONS ** */
/* ************************************ */
typedef unsigned char BYTE; /* 8-bit unsigned value */
typedef unsigned short WORD; /* 16-bit unsigned value */
typedef unsigned long DWORD; /* 32-bit unsigned value */
typedef unsigned short HANDLE; /* access token for scanner */
/* ************************************ */
/* ** STRUCTURES ** */
/* ************************************ */
/* ensure structures are byte-aligned */
#ifdef __BORLANDC__
#pragma option -a1
#endif /* _BORLANDC */
#ifdef _MSC_VER
#pragma pack(1)
#endif /* _MSC_VER */
/************************************************************
* Structure Name: OCINIT
*
* Description:
*
* Passed to OC_InitScanner() function to specify