1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
/*
PsychSourceGL/Source/Common/Eyelink/PsychEyelink.h
PROJECTS: Eyelink
AUTHORS:
cburns@berkeley.edu cdb
E.Peters@ai.rug.nl emp
f.w.cornelissen@med.rug.nl fwc
PLATFORMS: All.
HISTORY:
11/21/05 cdb Created.
TARGET LOCATION:
Eyelink.mexmac resides in:
EyelinkToolbox
*/
#ifndef PSYCH_IS_INCLUDED_Eyelink
#define PSYCH_IS_INCLUDED_Eyelink
// PsychToolbox Includes
#include "Psych.h"
#if PSYCH_SYSTEM == PSYCH_OSX
// Eyelink Includes
#include "eyelink_core/eyelink.h"
#include "eyelink_core/core_expt.h"
#else
// Eyelink Includes
#include "eyelink.h"
// MK: core_expt.h must be included for M$-Windows build:
#include "core_expt.h"
#endif
// FIXME TODO:
// Even more weird: Except for UInt16, none of this integer
// datatypes is used at all in Eyelink! I have no clue why
// we ever defined these?!? Oh my, it may have made some sense
// at some time. Probably just preemptively defined for future
// use...
#if PSYCH_SYSTEM == PSYCH_WINDOWS
// These not defined on Windows systems:
// Except for Uint8 and Int8 on MK's R11 build machine??? WTF???
// Anyway, the definition of TARGET_BUILD_WIN32R11 takes care of it.
#ifndef TARGET_BUILD_WIN32R11
#ifndef PTBOCTAVE3MEX
typedef UINT8 UInt8;
typedef INT8 Int8;
#endif
#endif
typedef UINT16 UInt16;
typedef UINT32 UInt32;
typedef INT16 Int16;
typedef INT32 Int32;
#endif
#if PSYCH_SYSTEM == PSYCH_LINUX
typedef psych_uint8 UInt8;
typedef psych_uint16 UInt16;
typedef psych_uint32 UInt32;
#endif
/////////////////////////////////////////////////////////////////////////
// Global variables used throughout eyelink C files
extern int giSystemInitialized;
/////////////////////////////////////////////////////////////////////////
// Eyelink Function prototypes
// Defined in EyelinkCreateDataStructs.c
mxArray *CreateMXFSample(const FSAMPLE *fs);
mxArray *CreateMXFSampleRaw(const FSAMPLE_RAW *fs);
mxArray *CreateMXISample(const ISAMPLE *is);
mxArray *CreateMXFEvent(const FEVENT *fe);
mxArray *CreateMXIEvent(const IEVENT *ie);
// Defined in PsychEyelink.c
int Verbosity(void);
const char* PsychEyelinkParseToString(int startIdx);
PsychError EyelinkSystemIsConnected(void);
PsychError EyelinkSystemIsInitialized(void);
void PsychEyelink_init_core_graphics(const char* callback);
void PsychEyelink_uninit_core_graphics(void);
void PsychEyelink_TestEyeImage(void);
void PsychEyelink_dumpHookfunctions(void);
// Defined in EyelinkSynopsis.c
void InitializeSynopsis();
PsychError PsychDisplayEyelinkSynopsis(void);
// Defined in MODULEVersion.c
PsychError MODULEVersion(void);
// Defined in EyelinkShutdown.c
PsychError PsychEyelinkShutdown(void);
// Helpers
psych_bool TrackerOKForRawValues(void); //defined in EyelinkGetQueuedData.c
// Eyelink Target sub-commands
PsychError EyelinkButtonStates(void);
PsychError EyelinkCommand(void);
PsychError EyelinkCurrentMode(void);
PsychError EyelinkImageModeDisplay(void);
PsychError EyelinkInitialize(void);
PsychError EyelinkIsConnected(void);
PsychError EyelinkSetAddress(void);
PsychError EyelinkNewestFloatSample(void);
PsychError EyelinkSendKeyButton(void);
PsychError EyelinkShutdown(void);
PsychError EyelinkStartRecording(void);
PsychError EyelinkStartSetup(void);
PsychError EyelinkStopRecording(void);
PsychError EyelinkWaitForModeReady(void);
PsychError EyelinkTargetCheck(void);
PsychError EyelinkAcceptTrigger(void);
PsychError EyelinkCalResult(void);
PsychError EyelinkMessage(void);
PsychError EyelinkOpenFile(void);
PsychError EyelinkCloseFile(void);
PsychError EyelinkCheckRecording(void);
PsychError EyelinkNewFloatSampleAvailable(void);
PsychError EyelinkSetOfflineMode(void);
PsychError EyelinkDriftCorrStart(void);
PsychError EyelinkApplyDriftCorr(void);
PsychError EyelinkEyeAvailable(void);
PsychError EyelinkInitializeDummy(void);
PsychError EyelinkReadTime(void);
PsychError EyelinkRequestTime(void);
PsychError EyelinkReceiveFile(void);
PsychError EyelinkGetTrackerVersion(void);
PsychError EyelinkNewestFloatSampleRaw(void);
PsychError EyelinkGetNextDataType(void);
PsychError EyelinkGetFloatData(void);
PsychError EyelinkGetFloatDataRaw(void);
PsychError EyelinkGetQueuedData(void);
PsychError EyelinkTrackerTime(void);
PsychError EyelinkTimeOffset(void);
PsychError EyelinkVerbosity(void);
PsychError EyelinkTestSuite(void);
//NJ
PsychError EyelinkImageTransfer(void);
PsychError EyelinkTrackerMode(void);
PsychError EyelinkCalMessage(void);
PsychError EyelinkReadFromTracker(void);
// PSYCH_IS_INCLUDED_Eyelink
#endif
|