//////////////////////////////////////////////////////////////////////
//
// PmcaErr.h: PMCA COM errors definitions
//
// This header file is a part of the PMCA COM package
//
// Amptek Inc, 2000
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PMCAERR_H__878A0E62_F60B_11D1_B630_9CFF0CC10000__INCLUDED_)
#define AFX_PMCAERR_H__878A0E62_F60B_11D1_B630_9CFF0CC10000__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#define PMCA_ERROR_SUCCESS                      0
#define PMCA_ERROR_SYSTEM_ERROR                 (- 9)
#define PMCA_ERROR_INVALID_DATA_POINTER         (-10)
#define PMCA_ERROR_INVALID_GROUP                (-11)
#define PMCA_ERROR_INVALID_BAUD_RATE            (-12)
#define PMCA_ERROR_INVALID_GAIN                 (-13)
#define PMCA_ERROR_INVALID_TIME_STAMP           (-14)
#define PMCA_ERROR_INVALID_ACQUISITION_TIME     (-15)
#define PMCA_ERROR_STARTING_COM_THREADS         (-16)
#define PMCA_ERROR_PMCA_DISCONNECTED            (-17)
#define PMCA_ERROR_INVALID_COM_PORT             (-18)
#define PMCA_ERROR_BAD_SERIAL_PORT              (-19)
#define PMCA_ERROR_SERIAL_PORT_CAPABILITIES     (-20)
#define PMCA_ERROR_INVALID_REQUEST              (-21)
#define PMCA_ERROR_INVALID_DEVICE               (-22)
#define PMCA_ERROR_INVALID_DATA_CHECK_SUM       (-23)
#define PMCA_ERROR_INVALID_STATUS_CHECK_SUM     (-24)
#define PMCA_ERROR_INVALID_CHECK_SUM            (-25)
#define PMCA_ERROR_LOST_CONNECTION              (-26)
#define PMCA_ERROR_READING_COM_PORT             (-27)
#define PMCA_ERROR_COM_PORT                     (-28)
#define PMCA_ERROR_REQUEST_NOT_FOUND            (-29)
#define PMCA_ERROR_WAIT_ALREADY_SET             (-30)
#define PMCA_ERROR_TERMINATION_FAILED           (-31)
#define PMCA_ERROR_INVALID_TIME                 (-32)
#define PMCA_ERROR_INVALID_DATE                 (-33)
#define PMCA_ERROR_INVALID_THRESHOLD            (-34)
#define PMCA_ERROR_REQUEST_CANCELLED            (-35)
#define PMCA_ERROR_REQUEST_EXCEPTION            (-36)
#define PMCA_ERROR_SET_PRIORITY_FAILED          (-37)
#define PMCA_ERROR_INVALID_CHANNEL              (-38)

#endif // !defined(AFX_PMCAERR_H__878A0E62_F60B_11D1_B630_9CFF0CC10000__INCLUDED_)
