CSIM: globaldefinitions.h Source File

globaldefinitions.h

Go to the documentation of this file.
00001 
00006 #ifndef _GLOBALVARIABLES_H_
00007 #define _GLOBALVARIABLES_H_
00008 
00009 // maximal synaptic delay in seconds
00010 #define MAX_SYNDELAY 0.1f
00011 
00013 typedef unsigned long uint32;
00014 
00016 typedef unsigned short uint16;
00017 
00019 double simTime(void);
00020 
00022 double simDT(void);
00023 
00025 class Network;
00026 Network *TheCurrentNetwork(void);
00027 
00029 #define SimulationTime (simTime())
00030 
00032 #define DT (simDT())
00033 
00035 #define PSR_MULTIPLE_TAU 5
00036 
00037 
00039 extern int MAXINTEGER;
00040 
00042 // currently, these are defined in analogneuron.cpp
00043 
00045 extern int nSharedMemUse; 
00046 
00048 extern double* sharedData;
00049 
00051 extern int memID;
00052 
00054 extern const char* rtMemFile;
00055 
00057 #define nMaxExtIO 1000 // (needed to avoid dynamic shMem allocation; change when no. of neurons is known
00058 
00059 
00060 #ifdef MATLAB_MEX_FILE
00061 #include <mex.h>
00062 #define csimPrintf mexPrintf
00063 #else
00064 #include <stdio.h>
00065 #define csimPrintf printf
00066 #endif
00067 
00068 #endif
00069 
00070 
00071 

 
(C) 2003, Thomas Natschläger last modified 07/10/2006