/*Copyright (c) 1994 by Matthew Belmonte. Rights and restrictions noted in the accompanying file scanepl.c apply to this file, too.*/ #define EP_LEN 512 /*length of an epoch (ticks) - a power of 2*/ #define EP_INC 1 /*DON'T CHANGE THIS!*/ /*sampling decimation (ticks)*/ #define EP_OUTLEN 358 /*length of an epoch in the output (<=EP_LEN)*/ #define CA_PULSES 256 /*EPL maximum number of calibration pulses*/ #define CA_LATENCY 900 /*EPL latency of pulse after event code (ms)*/ #define CA_LENGTH 100 /*EPL duration of calibration pulse (ms)*/ #define CA_AMPLITUDE 20.0 /*EPL amplitude of calibration pulses (uV)*/ #define CA_SCALE 10.0 /*EPL digital steps per microvolt (/uV)*/ #define CH_MAX 13 /*maximum number of non-eye channels*/ #define CH_EYE 3 /*number of eye channels*/ #define CH_CANTHUS -3 /*Disk accesses are optimised*/ #define CH_LOWER_EYE -2 /*for these eye channel*/ #define CH_UPPER_EYE -1 /*assignments. (Add 4 to get usual numbers.)*/ #define EV_CALIBRATE 199 /*EPL event code for calibration pulse*/ #define EV_STIMULUS 127 /*highest event code assigned to any stimulus*/ #define EV_LOW_STIMULUS 1 /*lowest event code assigned to any stimulus*/ #define EV_RESPONSE 201 /*event code for response*/ #define RS_BEGIN 200 /*beginning of response window (ms)*/ #define RS_END 1400 /*end of response window (ms)*/ #define RE_THRESHOLD 100.0 /*peak-to-peak rejection threshold (uV)*/ #define RE_EYE_THRESHOLD 100.0 /*VEOG threshold for eye movements (uV)*/ #define RE_BRAIN_THRESHOLD 0.0 /*VEOG upper limit for brain activity (uV) - put this up to about 20.0 to enable Wiener filtering - for long epochs, set it even higher, in order to get enough data - to be conservative about EOG contamination of EEG, leave it disabled*/ #define RE_PRESAMPLE 200 /*presampling for rejection & baseline (ms)*/ #define RE_PSLEN 102 /*>= msecs_to_ticks(RE_PRESAMPLE)*/ #define RE_WINSIZE 21 /*window size for amp. saturation test (ms)*/ #define AMPLITUDE_SCALE 0.05 /*multiplier s.t. FFT amplitudes fit in short ints*/ #define PHASE_SCALE 10.0 /*multiplier to make FFT phases in (-pi, pi] discernible on plots*/ #define VOLTAGE_MULTIPLIER 204.8 /*see page Headers-5 of the Scan 3.0 manual*/