#include <assert.h>

#ifndef RQCONSTANTS_H
#define RQCONSTANTS_H

#ifdef RQ_EXPORTS
	#define RQ_API __declspec(dllexport)
#else
	#define RQ_API __declspec(dllimport)
#endif
 
#ifdef STDCALL
	#define CALL_CONV __stdcall
#else
	#define CALL_CONV
#endif


#define RQ_MAXIMUM_NUMBER_OF_GATES_NON_SEQUENCED	8
#define RQ_MAXIMUM_NUMBER_OF_GATES_SEQUENCED		6
#define RQ_NUMBER_OF_ENCODERS						6

#define RQ_FRACTIONAL_BSCAN_CLICKS_UNITY_SHIFT		8

#define NUMBER_OF_DIAGNOSTIC_STRINGS				5
#define DIAGNOSTIC_STRING_SIZE						50

#define RQ_SRAM_MAXIMUM_START_DELAY					2097152  // 2^21 (16 + 5)
#define RQ_SRAM_MAXIMUM_NUMBER_OF_BSCANS			4096
#define RQ_SRAM_MAXIMUM_NUMBER_OF_ASCANS_PER_BSCAN	NDTS_MAXIMUM_NUMBER_OF_ELEMENTS
#define RQ_SRAM_BANK_SIZE							0x00400000
#define RQ_MAXIMUM_GENERATOR_PULSE_LENGTH			4095

#define RQ_MAXIMUM_NUMBER_OF_TCG_VALUES				32768  // latest FPGAs still have 32k limit on TCG

#define RQ_MAXIMUM_NUMBER_OF_SAMPLES_TO_DROP				15


#endif
