TOBI Interface A
0.1
|
00001 /* 00002 This file is part of the TOBI Interface A (TiA) library. 00003 00004 Commercial Usage 00005 Licensees holding valid Graz University of Technology Commercial 00006 licenses may use this file in accordance with the Graz University 00007 of Technology Commercial License Agreement provided with the 00008 Software or, alternatively, in accordance with the terms contained in 00009 a written agreement between you and Graz University of Technology. 00010 00011 -------------------------------------------------- 00012 00013 GNU Lesser General Public License Usage 00014 Alternatively, this file may be used under the terms of the GNU Lesser 00015 General Public License version 3.0 as published by the Free Software 00016 Foundation and appearing in the file lgpl.txt included in the 00017 packaging of this file. Please review the following information to 00018 ensure the GNU General Public License version 3.0 requirements will be 00019 met: http://www.gnu.org/copyleft/lgpl.html. 00020 00021 In case of GNU Lesser General Public License Usage ,the TiA library 00022 is distributed in the hope that it will be useful, 00023 but WITHOUT ANY WARRANTY; without even the implied warranty of 00024 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00025 GNU General Public License for more details. 00026 00027 You should have received a copy of the GNU Lesser General Public License 00028 along with the TiA library. If not, see <http://www.gnu.org/licenses/>. 00029 00030 Copyright 2010 Graz University of Technology 00031 Contact: TiA@tobi-project.org 00032 */ 00033 00045 #ifndef DEFINES_H 00046 #define DEFINES_H 00047 00060 // 4000000 ... first packetversion 00061 // 8000000 ... timestamp added 00062 #define PACKETVERSION 0x8000000 // --> 2^27 .... first PacketVersion Bit 00063 00064 #define PACKETCODE 0x2400000 // Bits 23 and 26 are 1 00065 #define BITS4PACKETVERSION 6 00066 #define BYTES4SIGNALFLAGS 3 00067 00068 #define SIG_EEG 0x01 00069 #define SIG_EMG 0x02 00070 #define SIG_EOG 0x04 00071 #define SIG_ECG 0x08 00072 #define SIG_HR 0x10 00073 #define SIG_BP 0x20 00074 #define SIG_BUTTON 0x40 00075 #define SIG_JOYSTICK 0x80 00076 #define SIG_SENSOR 0x100 00077 00078 #define SIG_NIRS 0x200 00079 #define SIG_FMRI 0x400 00080 00081 #define SIG_MOUSE 0x800 00082 #define SIG_MBUTTON 0x1000 00083 00084 #define SIG_USER_1 0x10000 00085 #define SIG_USER_2 0x20000 00086 #define SIG_USER_3 0x40000 00087 #define SIG_USER_4 0x80000 00088 #define SIG_UNDEFINED 0x100000 00089 #define SIG_EVENT 0x200000 00090 00099 //#define PI 3.141592653589793238 00100 #define BUFFER_SIZE 8388608 //in bytes 00101 #define EVENT_BUFFER_SIZE 8192 00102 00104 //----------------------------------------------------------------------------- 00105 00106 #endif // DEFINES_H 00107