Owner manual
Table Of Contents
- REGISTERED TO ISO 9001:2000
- SECTION 1. OVERVIEW
- SECTION 2. SYSTEM REQUIREMENTS
- SECTION 3. INSTALLATION
- INSTALLING THE MCP DRIVER
- CHANGING THE MCP DRIVER:
- REMOVING THE MCP DRIVERS
- DEVICE INSTANCE MANAGEMENT
- Device Instance Overview
- MCPCFG Utility Overview
- MCPCFG Command Summary
- Adding a Device Instance from Command Line – RS-232
- Adding a Device Instance from Command Line – USB
- Adding a Device Instance from Windows Based Application (WINDOWS 2000, XP) – RS-232
- Adding a Device Instance from Windows Based Application (WINDOWS 2000, XP) – USB
- Modifying a Device Instance Properties from Windows Based Application (WINDOWS 2000, XP) – RS-232 and USB
- Removing a Device Instance from Windows Based Application (WINDOWS 2000, XP) – RS232
- Removing a Device Instance from Windows Based Application (WINDOWS 2000, XP) – USB
- Removing a Device Instance from a Command Line – RS-232
- Removing a Device Instance from a Command Line – USB
- Displaying the List of Device Instances from Command Line
- Displaying Device Instance Properties from Command Line
- Modifying Device Instance Properties from Command Line
- Modifying Device Instance Properties From Windows Based Application
- Restarting the MCP Driver
- Stopping the MCP Driver From Command Line
- Windows Configuration Utility
- DEVICE INSTANCE PROPERTIES
- SECTION 4. TRACE LOG
- SECTION 5. APPLICATION PROGRAMMABLE INTERFACE
- TYPICAL OPERATION
- DEVICE CHANNEL LIFE CYCLE
- PROPERTIES
- COMMANDS
- NOTIFICATIONS
- FUNCTIONS
- Summary
- MCPBUS Structure
- Members
- Remarks
- The MCPBUS is used as an input parameter to many of the MCP API functions. The MCP driver modifies only those members explicitedly defined by the individual functions. For example, the API will not modify the lpOutBuffer or dwOutBufferSize members (the buffer that lpOutBuffer points to will of course be modified); therefore, the caller may set these values once and not need to reset them prior to invoking subsequent MCP API functions. The only structure members modified by an MCP API function are those explicitly identified as output parameters.
- McpEnum
- McpOpen
- McpClose
- McpReset
- McpGet
- McpCall
- McpWait
- CONSTANT DEFINITIONS
- FUNCTION PROTOTYPES
- INDEX

MagTek Communications Protocol, Driver Reference Manual
70
CONSTANT DEFINITIONS
Operation Attributes
#define MCP_ATTR_NONE 0 // No attributes specified
#define MCP_ATTR_WAIT_NEW 1 // Discard any notifications that may
// have been queued before returning
// a response.
#define MCP_ATTR_PROP_DRIVER 2 // MCP Driver specific property
Property Types
#define MCP_TYPE_NONE 0 // No type.
#define MCP_TYPE_DWORD 1 // 32-bit unsigned integer
#define MCP_TYPE_STRING 2 // Null terminated string of 8-bit
// ANSI characters.
#define MCP_TYPE_BOOLEAN 3 // Boolean value (True=1 or False=0)
#define MCP_TYPE_BINARY 4 // Binary data
Function Return Values
#define MCP_ST_OK 0 // successful operation
// resource manipulation
#define MCP_ST_ALLOC 20 // can't alloc (for variable size alloc/pool)
#define MCP_ST_NO_ROOM 21 // can't alloc fixed sz entry in fixed sz pool
#define MCP_ST_OVERFLOW 22 // value, buffer, whatever may overflow
#define MCP_ST_UNDERFLOW 23 // value, buffer, counter, whatever may
// underflow
#define MCP_ST_EMPTY 24 // queue/smth is empty - no elements
#define MCP_ST_FULL 25 // queue/smth is full
#define MCP_ST_EOF 26 // end of file
// valchk
#define MCP_ST_INVALID 30 // value not valid in operation context
#define MCP_ST_BAD_VALUE 31 // value not valid in module's context
#define MCP_ST_OUT_OF_RANGE 32 // value out of range
#define MCP_ST_NULL_PTR 33 // NULL ptr is not valid in operation context
#define MCP_ST_BAD_SYNTAX 34 // text/formatted data syntax error
#define MCP_ST_BAD_NAME 35 // name invalid in module's context
// severe errors
#define MCP_ST_UNEXPECTED 40 // unexpected condition of parameter or
// external object