#ifndef MSC_CONFIG_INC
#define MSC_CONFIG_INC

#include	<msc_err_sys.h>
#include	<msc_err_isus.h>
#include 	<msc_err_dura.h>

//Possible Spectrometer Types
#define MMS_UV          		1
#define MMS_UV_VIS      		2
#define SPECTROMETER_TYPE		MMS_UV


//Possible DuraFET Sensor Types
#define DURA_III        		1
#define DURA_MBARI      		2
#define DURA_SENSOR_TYPE		DURA_MBARI


#define CLOCK_FREQ         		16000000   // CPU Frequency
#define CONSOLE_BAUD       		9600       // Console Port Baud Rate
#define USECS_PER_SECOND		1000000L		
#define USERIO_TIMEOUT     		30         // Seconds for user to respond in userio.c
#define GET_ACK_TIMEOUT    		3          //seconds
#define FIX                		0
#define ERRBUFSIZE      		256

// sensor type, as defined by sys_sensor_mode
#define UNSELECTED_MODE			0
#define ISUS_SENSOR_MODE		1
#define DURA_SENSOR_MODE		2

// safegets()
#define RECL                	30      
#define MAXINBUFF           	RECL+14
#define MAXREAD             	MAXINBUFF-2

// SyncNextSample()
#define SYNC_FROM_CURRENT_TIME 	1
#define SYNC_FROM_LAST_SAMPLE  	2

// OpenApfLogFile()
#define ISUS_DATA_FILE   		1
#define DURA_DATA_FILE   		2

// SendRecords() and CalcRecsPending()
#define DATSPOOL_FILE   		0
#define ERRORLOG_FILE   		1

#define FNULL              		((FILE *)NULL)

#define TRUE               		1
#define FALSE              		0

#define ENABLE             		1
#define DISABLE            		0

#define HIGH               		1
#define LOW                		0

#define OK                 		0
#define ERROR              		(-1)
#define TIMEOUT            		(-2)

#define CTRL_A             		0x01
#define CTRL_C             		0x03
#define CTRL_D             		0x04
#define CAPS_B             		0x42
#define CAPS_R             		0x52
#define CAPS_U             		0x55
#define CAPS_S             		0x53
#define CAPS_Q             		0x51
#define ACK                		0x06
#define NAK                		0x15

// Absolute Zero. 
#define TABS 					(-273.15)

#endif

