/*
	Copyright (C) MOXA Inc. All rights reserved.

	This software is distributed under the terms of the
	MOXA License.  See the file COPYING-MOXA for details.
*/
#pragma once
#include <iostream>
#include <string>
using namespace std;

#ifdef __cplusplus    // If used by C++ code, 
extern "C" {          // we need to export the C interface
#endif
	enum SIM_STATUS
	{
		SIM_SLOT1 = 1,
		SIM_SLOT0 = 0,
		LIB_INITIALIZE_FAIL = -1,
		PORT_OUTOF_INDEX = -2,
		SET_SLOT_ERR = -3
	};
	
	int InitMXSIM(void);
	int GetSIMSlot(int port);
	int SetSIMSlot(int port, int slot);

#ifdef __cplusplus    // If used by C++ code, 
}
#endif
