| 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 |
#ifndef INC_ABFHEADR_H |
| 72 |
#define INC_ABFHEADR_H |
| 73 |
|
| 74 |
#include <stdio.h> |
| 75 |
#include <string.h> |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
#ifdef __cplusplus |
| 81 |
extern "C" { |
| 82 |
#endif |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
#define ABF_ADCCOUNT 16 // number of ADC channels supported. |
| 89 |
#define ABF_DACCOUNT 4 // number of DAC channels supported. |
| 90 |
#define ABF_WAVEFORMCOUNT 2 // number of DAC channels which support waveforms. |
| 91 |
#define ABF_EPOCHCOUNT 10 // number of waveform epochs supported. |
| 92 |
#define ABF_BELLCOUNT 2 // Number of auditory signals supported. |
| 93 |
#define ABF_ADCUNITLEN 8 // length of ADC units strings |
| 94 |
#define ABF_ADCNAMELEN 10 // length of ADC channel name strings |
| 95 |
#define ABF_DACUNITLEN 8 // length of DAC units strings |
| 96 |
#define ABF_DACNAMELEN 10 // length of DAC channel name strings |
| 97 |
#define ABF_VARPARAMLISTLEN 80 // length of conditioning string |
| 98 |
#define ABF_USERLISTLEN 256 // length of the user list (V1.6) |
| 99 |
#define ABF_USERLISTCOUNT 4 // number of independent user lists (V1.6) |
| 100 |
#define ABF_OLDFILECOMMENTLEN 56 // length of file comment string (pre V1.6) |
| 101 |
#define ABF_FILECOMMENTLEN 128 // length of file comment string (V1.6) |
| 102 |
|
| 103 |
#define ABF_CREATORINFOLEN 16 // length of file creator info string |
| 104 |
#define ABF_OLDDACFILENAMELEN 12 // old length of the DACFile name string |
| 105 |
#define ABF_OLDDACFILEPATHLEN 60 // old length of the DACFile path string |
| 106 |
#define ABF_DACFILEPATHLEN 84 // length of full path for DACFile |
| 107 |
#define ABF_PATHLEN 256 // length of full path, used for DACFile and Protocol name. |
| 108 |
#define ABF_ARITHMETICOPLEN 2 // length of the Arithmetic operator field |
| 109 |
#define ABF_ARITHMETICUNITSLEN 8 // length of arithmetic units string |
| 110 |
#define ABF_TAGCOMMENTLEN 56 // length of tag comment string |
| 111 |
#define ABF_LONGDESCRIPTIONLEN 56 // length of long description entry |
| 112 |
#define ABF_NOTENAMELEN 10 // length of the name component of a note |
| 113 |
#define ABF_NOTEVALUELEN 8 // length of the value component of a note |
| 114 |
#define ABF_NOTEUNITSLEN 8 // length of the units component of a note |
| 115 |
#define ABF_BLOCKSIZE 512 // Size of block alignment in ABF files. |
| 116 |
#define ABF_MACRONAMELEN 64 // Size of a Clampfit macro name. |
| 117 |
|
| 118 |
#define ABF_CURRENTVERSION ABF_V183 // Current file format version number |
| 119 |
#define ABF_PREVIOUSVERSION 1.5F // Previous file format version number (for old header size) |
| 120 |
#define ABF_V16 1.6F // Version number when the header size changed. |
| 121 |
#define ABF_HEADERSIZE 6144 // Size of a Version 1.6 or later header |
| 122 |
#define ABF_OLDHEADERSIZE 2048 // Size of a Version 1.5 or earlier header |
| 123 |
#define ABF_NATIVESIGNATURE 0x20464241 // PC="ABF ", MAC=" FBA" |
| 124 |
#define ABF_REVERSESIGNATURE 0x41424620 // PC=" FBA", MAC="ABF " |
| 125 |
|
| 126 |
#define PCLAMP6_MAXSWEEPLENGTH 16384 // Maximum multiplexed sweep length supported by pCLAMP6 apps. |
| 127 |
#define PCLAMP7_MAXSWEEPLEN_PERCHAN 1032258 // Maximum per channel sweep length supported by pCLAMP7 apps. |
| 128 |
|
| 129 |
#define ABF_MAX_TRIAL_SAMPLES 0x7FFFFFFF // Maximum length of acquisition supported (samples) |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
#define ABF_MAX_SWEEPS_PER_AVERAGE 65500 // The maximum number of sweeps that can be combined into a |
| 134 |
|
| 135 |
|
| 136 |
#define ABF_STATS_REGIONS 8 // The number of independent statistics regions. |
| 137 |
#define ABF_BASELINE_REGIONS 1 // The number of independent baseline regions. |
| 138 |
|
| 139 |
#ifdef _MAC |
| 140 |
#define ABF_OLDPCLAMP ABF_REVERSESIGNATURE |
| 141 |
#else |
| 142 |
#define ABF_OLDPCLAMP ABF_NATIVESIGNATURE |
| 143 |
#endif |
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
#define ABF_ABFFILE 1 |
| 149 |
#define ABF_FETCHEX 2 |
| 150 |
#define ABF_CLAMPEX 3 |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
#define ABF_INTEGERDATA 0 |
| 156 |
#define ABF_FLOATDATA 1 |
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
#define ABF_VARLENEVENTS 1 |
| 162 |
#define ABF_FIXLENEVENTS 2 // (ABF_FIXLENEVENTS == ABF_LOSSFREEOSC) |
| 163 |
#define ABF_LOSSFREEOSC 2 |
| 164 |
#define ABF_GAPFREEFILE 3 |
| 165 |
#define ABF_HIGHSPEEDOSC 4 |
| 166 |
#define ABF_WAVEFORMFILE 5 |
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
#define ABF_CONDITNUMPULSES 0 |
| 172 |
#define ABF_CONDITBASELINEDURATION 1 |
| 173 |
#define ABF_CONDITBASELINELEVEL 2 |
| 174 |
#define ABF_CONDITSTEPDURATION 3 |
| 175 |
#define ABF_CONDITSTEPLEVEL 4 |
| 176 |
#define ABF_CONDITPOSTTRAINDURATION 5 |
| 177 |
#define ABF_CONDITPOSTTRAINLEVEL 6 |
| 178 |
#define ABF_EPISODESTARTTOSTART 7 |
| 179 |
#define ABF_INACTIVEHOLDING 8 |
| 180 |
#define ABF_DIGITALHOLDING 9 |
| 181 |
#define ABF_PNNUMPULSES 10 |
| 182 |
#define ABF_PARALLELVALUE 11 |
| 183 |
#define ABF_EPOCHINITLEVEL (ABF_PARALLELVALUE + ABF_EPOCHCOUNT) |
| 184 |
#define ABF_EPOCHINITDURATION (ABF_EPOCHINITLEVEL + ABF_EPOCHCOUNT) |
| 185 |
#define ABF_EPOCHTRAINPERIOD (ABF_EPOCHINITDURATION + ABF_EPOCHCOUNT) |
| 186 |
#define ABF_EPOCHTRAINPULSEWIDTH (ABF_EPOCHTRAINPERIOD + ABF_EPOCHCOUNT) |
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
#define ABF_NOAVERAGING 0 |
| 193 |
#define ABF_SAVEAVERAGEONLY 1 |
| 194 |
#define ABF_AVERAGESAVEALL 2 |
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
#define ABF_INFINITEAVERAGE 0 |
| 200 |
#define ABF_SLIDINGAVERAGE 1 |
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
#define ABF_EPOCHDISABLED 0 // disabled epoch |
| 206 |
#define ABF_EPOCHSTEPPED 1 // stepped waveform |
| 207 |
#define ABF_EPOCHRAMPED 2 // ramp waveform |
| 208 |
#define ABF_EPOCH_TYPE_RECTANGLE 3 // rectangular pulse train |
| 209 |
#define ABF_EPOCH_TYPE_TRIANGLE 4 // triangular waveform |
| 210 |
#define ABF_EPOCH_TYPE_COSINE 5 // cosinusoidal waveform |
| 211 |
#define ABF_EPOCH_TYPE_RESISTANCE 6 // resistance waveform |
| 212 |
#define ABF_EPOCH_TYPE_BIPHASIC 7 // biphasic pulse train |
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
#define ABF_MIN_EPOCH_RESISTANCE_DURATION 8 |
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
#define ABF_WAVEFORMDISABLED 0 // disabled waveform |
| 223 |
#define ABF_EPOCHTABLEWAVEFORM 1 |
| 224 |
#define ABF_DACFILEWAVEFORM 2 |
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
#define ABF_INTEREPI_USEHOLDING 0 |
| 230 |
#define ABF_INTEREPI_USELASTEPOCH 1 |
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
#define ABF_VOLTAGECLAMP 0 |
| 236 |
#define ABF_CURRENTCLAMP 1 |
| 237 |
#define ABF_SIMPLEACQUISITION 2 |
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
#define ABF_AUTOSAMPLEDISABLED 0 |
| 243 |
#define ABF_AUTOSAMPLEAUTOMATIC 1 |
| 244 |
#define ABF_AUTOSAMPLEMANUAL 2 |
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
#define ABF_INST_UNKNOWN 0 // Unknown instrument (manual or user defined telegraph table). |
| 250 |
#define ABF_INST_AXOPATCH1 1 // Axopatch-1 with CV-4-1/100 |
| 251 |
#define ABF_INST_AXOPATCH1_1 2 // Axopatch-1 with CV-4-0.1/100 |
| 252 |
#define ABF_INST_AXOPATCH1B 3 // Axopatch-1B(inv.) CV-4-1/100 |
| 253 |
#define ABF_INST_AXOPATCH1B_1 4 // Axopatch-1B(inv) CV-4-0.1/100 |
| 254 |
#define ABF_INST_AXOPATCH201 5 // Axopatch 200 with CV 201 |
| 255 |
#define ABF_INST_AXOPATCH202 6 // Axopatch 200 with CV 202 |
| 256 |
#define ABF_INST_GENECLAMP 7 // GeneClamp |
| 257 |
#define ABF_INST_DAGAN3900 8 // Dagan 3900 |
| 258 |
#define ABF_INST_DAGAN3900A 9 // Dagan 3900A |
| 259 |
#define ABF_INST_DAGANCA1_1 10 // Dagan CA-1 Im=0.1 |
| 260 |
#define ABF_INST_DAGANCA1 11 // Dagan CA-1 Im=1.0 |
| 261 |
#define ABF_INST_DAGANCA10 12 // Dagan CA-1 Im=10 |
| 262 |
#define ABF_INST_WARNER_OC725 13 // Warner OC-725 |
| 263 |
#define ABF_INST_WARNER_OC725C 14 // Warner OC-725 |
| 264 |
#define ABF_INST_AXOPATCH200B 15 // Axopatch 200B |
| 265 |
#define ABF_INST_DAGANPCONE0_1 16 // Dagan PC-ONE Im=0.1 |
| 266 |
#define ABF_INST_DAGANPCONE1 17 // Dagan PC-ONE Im=1.0 |
| 267 |
#define ABF_INST_DAGANPCONE10 18 // Dagan PC-ONE Im=10 |
| 268 |
#define ABF_INST_DAGANPCONE100 19 // Dagan PC-ONE Im=100 |
| 269 |
#define ABF_INST_WARNER_BC525C 20 // Warner BC-525C |
| 270 |
#define ABF_INST_WARNER_PC505 21 // Warner PC-505 |
| 271 |
#define ABF_INST_WARNER_PC501 22 // Warner PC-501 |
| 272 |
#define ABF_INST_DAGANCA1_05 23 // Dagan CA-1 Im=0.05 |
| 273 |
#define ABF_INST_MULTICLAMP700 24 // MultiClamp 700 |
| 274 |
#define ABF_INST_TURBO_TEC 25 // Turbo Tec |
| 275 |
#define ABF_INST_OPUSXPRESS6000 26 // OpusXpress 6000A |
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
#define ABF_ENV_DONOTWRITE 0 |
| 281 |
#define ABF_ENV_WRITEEACHTRIAL 1 |
| 282 |
#define ABF_ENV_PROMPTEACHTRIAL 2 |
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
#define ABF_TRIGGERLINEINPUT -5 // Start on line trigger (DD1320 only) |
| 288 |
#define ABF_TRIGGERTAGINPUT -4 |
| 289 |
#define ABF_TRIGGERFIRSTCHANNEL -3 |
| 290 |
#define ABF_TRIGGEREXTERNAL -2 |
| 291 |
#define ABF_TRIGGERSPACEBAR -1 |
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
#define ABF_TRIALTRIGGER_SWSTARTONLY -6 // Start on software message, end when protocol ends. |
| 298 |
#define ABF_TRIALTRIGGER_SWSTARTSTOP -5 // Start and end on software messages. |
| 299 |
#define ABF_TRIALTRIGGER_LINEINPUT -4 // Start on line trigger (DD1320 only) |
| 300 |
#define ABF_TRIALTRIGGER_SPACEBAR -3 // Start on spacebar press. |
| 301 |
#define ABF_TRIALTRIGGER_EXTERNAL -2 // Start on external trigger high |
| 302 |
#define ABF_TRIALTRIGGER_NONE -1 // Start immediately (default). |
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
#define ABF_TRIGGER_RISINGEDGE 0 |
| 309 |
#define ABF_TRIGGER_FALLINGEDGE 1 |
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
#define ABF_TRIGGER_STARTEPISODE 0 |
| 315 |
#define ABF_TRIGGER_STARTRUN 1 |
| 316 |
#define ABF_TRIGGER_STARTTRIAL 2 // N.B. Discontinued in favor of nTrialTriggerSource |
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
#define ABF_DRAW_NONE 0 |
| 322 |
#define ABF_DRAW_REALTIME 1 |
| 323 |
#define ABF_DRAW_FULLSCREEN 2 |
| 324 |
#define ABF_DRAW_ENDOFRUN 3 |
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
#define ABF_DISPLAY_SUPERIMPOSED 0 |
| 330 |
#define ABF_DISPLAY_TILED 1 |
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
#define ABF_DRAW_POINTS 0 |
| 336 |
#define ABF_DRAW_LINES 1 |
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
#define ABF_SIMPLE_EXPRESSION 0 |
| 342 |
#define ABF_RATIO_EXPRESSION 1 |
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
#define ABF_FILTER_NONE 0 |
| 348 |
#define ABF_FILTER_EXTERNAL 1 |
| 349 |
#define ABF_FILTER_SIMPLE_RC 2 |
| 350 |
#define ABF_FILTER_BESSEL 3 |
| 351 |
#define ABF_FILTER_BUTTERWORTH 4 |
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
|
| 356 |
#define ABF_PN_BEFORE_EPISODE 0 |
| 357 |
#define ABF_PN_AFTER_EPISODE 1 |
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
#define ABF_PN_OPPOSITE_POLARITY -1 |
| 363 |
#define ABF_PN_SAME_POLARITY 1 |
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
#define ABF_PEAK_NEGATIVE -1 |
| 369 |
#define ABF_PEAK_ABSOLUTE 0 |
| 370 |
#define ABF_PEAK_POSITIVE 1 |
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
#define ABF_PEAK_SEARCH_SPECIFIED -2 |
| 376 |
#define ABF_PEAK_SEARCH_ALL -1 |
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
#define ABF_PEAK_BASELINE_SPECIFIED -3 |
| 384 |
#define ABF_PEAK_BASELINE_NONE -2 |
| 385 |
#define ABF_PEAK_BASELINE_FIRSTHOLDING -1 |
| 386 |
#define ABF_PEAK_BASELINE_LASTHOLDING -4 |
| 387 |
|
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
#define ABF_PEAK_MEASURE_PEAK 0x00000001 |
| 392 |
#define ABF_PEAK_MEASURE_PEAKTIME 0x00000002 |
| 393 |
#define ABF_PEAK_MEASURE_ANTIPEAK 0x00000004 |
| 394 |
#define ABF_PEAK_MEASURE_ANTIPEAKTIME 0x00000008 |
| 395 |
#define ABF_PEAK_MEASURE_MEAN 0x00000010 |
| 396 |
#define ABF_PEAK_MEASURE_STDDEV 0x00000020 |
| 397 |
#define ABF_PEAK_MEASURE_INTEGRAL 0x00000040 |
| 398 |
#define ABF_PEAK_MEASURE_MAXRISESLOPE 0x00000080 |
| 399 |
#define ABF_PEAK_MEASURE_MAXRISESLOPETIME 0x00000100 |
| 400 |
#define ABF_PEAK_MEASURE_MAXDECAYSLOPE 0x00000200 |
| 401 |
#define ABF_PEAK_MEASURE_MAXDECAYSLOPETIME 0x00000400 |
| 402 |
#define ABF_PEAK_MEASURE_RISETIME 0x00000800 |
| 403 |
#define ABF_PEAK_MEASURE_DECAYTIME 0x00001000 |
| 404 |
#define ABF_PEAK_MEASURE_HALFWIDTH 0x00002000 |
| 405 |
#define ABF_PEAK_MEASURE_BASELINE 0x00004000 |
| 406 |
#define ABF_PEAK_MEASURE_RISESLOPE 0x00008000 |
| 407 |
#define ABF_PEAK_MEASURE_DECAYSLOPE 0x00010000 |
| 408 |
#define ABF_PEAK_MEASURE_REGIONSLOPE 0x00020000 |
| 409 |
#define ABF_PEAK_MEASURE_ALL 0x0002FFFF // All of the above OR'd together. |
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
#define ABF_PEAK_SEARCH_CHANNEL0 0x0001 |
| 415 |
#define ABF_PEAK_SEARCH_CHANNEL1 0x0002 |
| 416 |
#define ABF_PEAK_SEARCH_CHANNEL2 0x0004 |
| 417 |
#define ABF_PEAK_SEARCH_CHANNEL3 0x0008 |
| 418 |
#define ABF_PEAK_SEARCH_CHANNEL4 0x0010 |
| 419 |
#define ABF_PEAK_SEARCH_CHANNEL5 0x0020 |
| 420 |
#define ABF_PEAK_SEARCH_CHANNEL6 0x0040 |
| 421 |
#define ABF_PEAK_SEARCH_CHANNEL7 0x0080 |
| 422 |
#define ABF_PEAK_SEARCH_CHANNEL8 0x0100 |
| 423 |
#define ABF_PEAK_SEARCH_CHANNEL9 0x0200 |
| 424 |
#define ABF_PEAK_SEARCH_CHANNEL10 0x0400 |
| 425 |
#define ABF_PEAK_SEARCH_CHANNEL11 0x0800 |
| 426 |
#define ABF_PEAK_SEARCH_CHANNEL12 0x1000 |
| 427 |
#define ABF_PEAK_SEARCH_CHANNEL13 0x2000 |
| 428 |
#define ABF_PEAK_SEARCH_CHANNEL14 0x4000 |
| 429 |
#define ABF_PEAK_SEARCH_CHANNEL15 0x8000 |
| 430 |
#define ABF_PEAK_SEARCH_CHANNELSALL 0xFFFF // All of the above OR'd together. |
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
#define ABF_PEAK_SEARCH_REGION0 0x01 |
| 435 |
#define ABF_PEAK_SEARCH_REGION1 0x02 |
| 436 |
#define ABF_PEAK_SEARCH_REGION2 0x04 |
| 437 |
#define ABF_PEAK_SEARCH_REGION3 0x08 |
| 438 |
#define ABF_PEAK_SEARCH_REGION4 0x10 |
| 439 |
#define ABF_PEAK_SEARCH_REGION5 0x20 |
| 440 |
#define ABF_PEAK_SEARCH_REGION6 0x40 |
| 441 |
#define ABF_PEAK_SEARCH_REGION7 0x80 |
| 442 |
#define ABF_PEAK_SEARCH_REGIONALL 0xFF // All of the above OR'd together. |
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
#define ABF_STATISTICS_ABOVETHRESHOLD 0x00000001 |
| 448 |
#define ABF_STATISTICS_EVENTFREQUENCY 0x00000002 |
| 449 |
#define ABF_STATISTICS_MEANOPENTIME 0x00000004 |
| 450 |
#define ABF_STATISTICS_MEANCLOSEDTIME 0x00000008 |
| 451 |
#define ABF_STATISTICS_ALL 0x0000000F // All the above OR'd together. |
| 452 |
|
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
#define ABF_STATISTICS_NOAUTOSAVE 0 |
| 457 |
#define ABF_STATISTICS_AUTOSAVE 1 |
| 458 |
#define ABF_STATISTICS_AUTOSAVE_AUTOCLEAR 2 |
| 459 |
|
| 460 |
|
| 461 |
|
| 462 |
|
| 463 |
#define ABF_STATISTICS_DISPLAY 0 |
| 464 |
#define ABF_STATISTICS_NODISPLAY 1 |
| 465 |
|
| 466 |
|
| 467 |
|
| 468 |
|
| 469 |
|
| 470 |
#define ABF_STATISTICS_NOCLEAR 0 |
| 471 |
#define ABF_STATISTICS_CLEAR 1 |
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
#define ABF_DACFILE_SKIPFIRSTSWEEP -1 |
| 477 |
#define ABF_DACFILE_USEALLSWEEPS 0 |
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
#define ABF_UNDOPROMPT_ONABORT 0 |
| 484 |
#define ABF_UNDOPROMPT_ALWAYS 1 |
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
#define ABF_AUTOANALYSE_DISABLED 0 |
| 490 |
#define ABF_AUTOANALYSE_DEFAULT 1 |
| 491 |
#define ABF_AUTOANALYSE_RUNMACRO 2 |
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
#define ABF_POSTPROCESS_FILTER_NONE 0 |
| 497 |
#define ABF_POSTPROCESS_FILTER_ADAPTIVE 1 |
| 498 |
#define ABF_POSTPROCESS_FILTER_BESSEL 2 |
| 499 |
#define ABF_POSTPROCESS_FILTER_BOXCAR 3 |
| 500 |
#define ABF_POSTPROCESS_FILTER_BUTTERWORTH 4 |
| 501 |
#define ABF_POSTPROCESS_FILTER_CHEBYSHEV 5 |
| 502 |
#define ABF_POSTPROCESS_FILTER_GAUSSIAN 6 |
| 503 |
#define ABF_POSTPROCESS_FILTER_RC 7 |
| 504 |
#define ABF_POSTPROCESS_FILTER_RC8 8 |
| 505 |
#define ABF_POSTPROCESS_FILTER_NOTCH 9 |
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
#define ABF_FILTERDISABLED 100000.0F // Large frequency to disable lowpass filters |
| 512 |
#define ABF_UNUSED_CHANNEL -1 // Unused ADC and DAC channels. |
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
#define ABF_DIGITAL_OUT_CHANNEL -1 |
| 518 |
#define ABF_PADDING_OUT_CHANNEL -2 |
| 519 |
|
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
#define ABF_CTPULSECOUNT_MAX 10000 |
| 524 |
#define ABF_CTBASELINEDURATION_MAX 100000.0F |
| 525 |
#define ABF_CTSTEPDURATION_MAX 100000.0F |
| 526 |
#define ABF_CTPOSTTRAINDURATION_MAX 100000.0F |
| 527 |
#define ABF_SWEEPSTARTTOSTARTTIME_MAX 100000.0F |
| 528 |
#define ABF_PNPULSECOUNT_MAX 8 |
| 529 |
#define ABF_DIGITALVALUE_MAX 0xFF |
| 530 |
#define ABF_EPOCHDIGITALVALUE_MAX 0x0F |
| 531 |
|
| 532 |
|
| 533 |
|
| 534 |
|
| 535 |
#define ABF_LTP_TYPE_NONE 0 |
| 536 |
#define ABF_LTP_TYPE_BASELINE 1 |
| 537 |
#define ABF_LTP_TYPE_INDUCTION 2 |
| 538 |
|
| 539 |
|
| 540 |
|
| 541 |
|
| 542 |
#define ABF_LTP_DAC_USAGE_NONE 0 |
| 543 |
#define ABF_LTP_DAC_USAGE_PRESYNAPTIC 1 |
| 544 |
#define ABF_LTP_DAC_USAGE_POSTSYNAPTIC 2 |
| 545 |
|
| 546 |
|
| 547 |
|
| 548 |
|
| 549 |
#define ABF_V166 1.66F |
| 550 |
#define ABF_V167 1.67F |
| 551 |
#define ABF_V168 1.68F |
| 552 |
#define ABF_V169 1.69F |
| 553 |
#define ABF_V170 1.70F |
| 554 |
#define ABF_V171 1.71F |
| 555 |
#define ABF_V172 1.72F |
| 556 |
#define ABF_V173 1.73F |
| 557 |
#define ABF_V174 1.74F |
| 558 |
#define ABF_V175 1.75F |
| 559 |
#define ABF_V176 1.76F |
| 560 |
#define ABF_V177 1.77F |
| 561 |
#define ABF_V178 1.78F |
| 562 |
#define ABF_V179 1.79F |
| 563 |
#define ABF_V180 1.80F |
| 564 |
#define ABF_V181 1.81F |
| 565 |
#define ABF_V182 1.82F |
| 566 |
#define ABF_V183 1.83F |
| 567 |
|
| 568 |
|
| 569 |
|
| 570 |
|
| 571 |
|
| 572 |
|
| 573 |
#ifndef RC_INVOKED |
| 574 |
#pragma pack(push, 1) |
| 575 |
#endif |
| 576 |
|
| 577 |
|
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
struct ABFFileHeader |
| 582 |
{ |
| 583 |
|
| 584 |
ABFLONG lFileSignature; |
| 585 |
float fFileVersionNumber; |
| 586 |
short nOperationMode; |
| 587 |
ABFLONG lActualAcqLength; |
| 588 |
short nNumPointsIgnored; |
| 589 |
ABFLONG lActualEpisodes; |
| 590 |
ABFLONG lFileStartDate; |
| 591 |
ABFLONG lFileStartTime; |
| 592 |
ABFLONG lStopwatchTime; |
| 593 |
float fHeaderVersionNumber; |
| 594 |
short nFileType; |
| 595 |
short nMSBinFormat; |
| 596 |
|
| 597 |
|
| 598 |
ABFLONG lDataSectionPtr; |
| 599 |
ABFLONG lTagSectionPtr; |
| 600 |
ABFLONG lNumTagEntries; |
| 601 |
ABFLONG lScopeConfigPtr; |
| 602 |
ABFLONG lNumScopes; |
| 603 |
ABFLONG _lDACFilePtr; |
| 604 |
ABFLONG _lDACFileNumEpisodes; |
| 605 |
char sUnused001[4]; |
| 606 |
ABFLONG lDeltaArrayPtr; |
| 607 |
ABFLONG lNumDeltas; |
| 608 |
ABFLONG lVoiceTagPtr; |
| 609 |
ABFLONG lVoiceTagEntries; |
| 610 |
ABFLONG lUnused002; |
| 611 |
ABFLONG lSynchArrayPtr; |
| 612 |
ABFLONG lSynchArraySize; |
| 613 |
short nDataFormat; |
| 614 |
short nSimultaneousScan; |
| 615 |
ABFLONG lStatisticsConfigPtr; |
| 616 |
ABFLONG lAnnotationSectionPtr; |
| 617 |
ABFLONG lNumAnnotations; |
| 618 |
char sUnused003[2]; |
| 619 |
|
| 620 |
|
| 621 |
|
| 622 |
|
| 623 |
|
| 624 |
|
| 625 |
short channel_count_acquired; |
| 626 |
|
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
short nADCNumChannels; |
| 632 |
float fADCSampleInterval; |
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
float fADCSecondSampleInterval; |
| 639 |
|
| 640 |
|
| 641 |
|
| 642 |
|
| 643 |
|
| 644 |
|
| 645 |
|
| 646 |
float fSynchTimeUnit; |
| 647 |
float fSecondsPerRun; |
| 648 |
|
| 649 |
|
| 650 |
|
| 651 |
|
| 652 |
|
| 653 |
|
| 654 |
|
| 655 |
|
| 656 |
|
| 657 |
ABFLONG lNumSamplesPerEpisode; |
| 658 |
ABFLONG lPreTriggerSamples; |
| 659 |
ABFLONG lEpisodesPerRun; |
| 660 |
ABFLONG lRunsPerTrial; |
| 661 |
ABFLONG lNumberOfTrials; |
| 662 |
short nAveragingMode; |
| 663 |
short nUndoRunCount; |
| 664 |
short nFirstEpisodeInRun; |
| 665 |
float fTriggerThreshold; |
| 666 |
short nTriggerSource; |
| 667 |
short nTriggerAction; |
| 668 |
short nTriggerPolarity; |
| 669 |
float fScopeOutputInterval; |
| 670 |
float fEpisodeStartToStart; |
| 671 |
float fRunStartToStart; |
| 672 |
float fTrialStartToStart; |
| 673 |
ABFLONG lAverageCount; |
| 674 |
ABFLONG lClockChange; |
| 675 |
short nAutoTriggerStrategy; |
| 676 |
|
| 677 |
|
| 678 |
short nDrawingStrategy; |
| 679 |
short nTiledDisplay; |
| 680 |
short nEraseStrategy; |
| 681 |
short nDataDisplayMode; |
| 682 |
ABFLONG lDisplayAverageUpdate; |
| 683 |
short nChannelStatsStrategy; |
| 684 |
ABFLONG lCalculationPeriod; |
| 685 |
ABFLONG lSamplesPerTrace; |
| 686 |
ABFLONG lStartDisplayNum; |
| 687 |
ABFLONG lFinishDisplayNum; |
| 688 |
short nMultiColor; |
| 689 |
short nShowPNRawData; |
| 690 |
float fStatisticsPeriod; |
| 691 |
ABFLONG lStatisticsMeasurements; |
| 692 |
short nStatisticsSaveStrategy; |
| 693 |
|
| 694 |
|
| 695 |
float fADCRange; |
| 696 |
float fDACRange; |
| 697 |
ABFLONG lADCResolution; |
| 698 |
ABFLONG lDACResolution; |
| 699 |
|
| 700 |
|
| 701 |
short nExperimentType; |
| 702 |
short _nAutosampleEnable; |
| 703 |
short _nAutosampleADCNum; |
| 704 |
short _nAutosampleInstrument; |
| 705 |
float _fAutosampleAdditGain; |
| 706 |
float _fAutosampleFilter; |
| 707 |
float _fAutosampleMembraneCap; |
| 708 |
short nManualInfoStrategy; |
| 709 |
float fCellID1; |
| 710 |
float fCellID2; |
| 711 |
float fCellID3; |
| 712 |
char sCreatorInfo[ABF_CREATORINFOLEN]; |
| 713 |
char _sFileComment[ABF_OLDFILECOMMENTLEN]; |
| 714 |
short nFileStartMillisecs; |
| 715 |
short nCommentsEnable; |
| 716 |
char sUnused003a[8]; |
| 717 |
|
| 718 |
|
| 719 |
short nADCPtoLChannelMap[ABF_ADCCOUNT]; |
| 720 |
short nADCSamplingSeq[ABF_ADCCOUNT]; |
| 721 |
char sADCChannelName[ABF_ADCCOUNT][ABF_ADCNAMELEN]; |
| 722 |
char sADCUnits[ABF_ADCCOUNT][ABF_ADCUNITLEN]; |
| 723 |
float fADCProgrammableGain[ABF_ADCCOUNT]; |
| 724 |
float fADCDisplayAmplification[ABF_ADCCOUNT]; |
| 725 |
float fADCDisplayOffset[ABF_ADCCOUNT]; |
| 726 |
float fInstrumentScaleFactor[ABF_ADCCOUNT]; |
| 727 |
float fInstrumentOffset[ABF_ADCCOUNT]; |
| 728 |
float fSignalGain[ABF_ADCCOUNT]; |
| 729 |
float fSignalOffset[ABF_ADCCOUNT]; |
| 730 |
float fSignalLowpassFilter[ABF_ADCCOUNT]; |
| 731 |
float fSignalHighpassFilter[ABF_ADCCOUNT]; |
| 732 |
char sDACChannelName[ABF_DACCOUNT][ABF_DACNAMELEN]; |
| 733 |
char sDACChannelUnits[ABF_DACCOUNT][ABF_DACUNITLEN]; |
| 734 |
float fDACScaleFactor[ABF_DACCOUNT]; |
| 735 |
float fDACHoldingLevel[ABF_DACCOUNT]; |
| 736 |
short nSignalType; |
| 737 |
char sUnused004[10]; |
| 738 |
|
| 739 |
|
| 740 |
short nOUTEnable; |
| 741 |
short nSampleNumberOUT1; |
| 742 |
short nSampleNumberOUT2; |
| 743 |
short nFirstEpisodeOUT; |
| 744 |
short nLastEpisodeOUT; |
| 745 |
short nPulseSamplesOUT1; |
| 746 |
short nPulseSamplesOUT2; |
| 747 |
|
| 748 |
|
| 749 |
short nDigitalEnable; |
| 750 |
short _nWaveformSource; |
| 751 |
short nActiveDACChannel; |
| 752 |
short _nInterEpisodeLevel; |
| 753 |
short _nEpochType[ABF_EPOCHCOUNT]; |
| 754 |
float _fEpochInitLevel[ABF_EPOCHCOUNT]; |
| 755 |
float _fEpochLevelInc[ABF_EPOCHCOUNT]; |
| 756 |
short _nEpochInitDuration[ABF_EPOCHCOUNT]; |
| 757 |
short _nEpochDurationInc[ABF_EPOCHCOUNT]; |
| 758 |
short nDigitalHolding; |
| 759 |
short nDigitalInterEpisode; |
| 760 |
short nDigitalValue[ABF_EPOCHCOUNT]; |
| 761 |
char sUnavailable1608[4]; |
| 762 |
short nDigitalDACChannel; |
| 763 |
char sUnused005[6]; |
| 764 |
|
| 765 |
|
| 766 |
float _fDACFileScale; |
| 767 |
float _fDACFileOffset; |
| 768 |
char sUnused006[2]; |
| 769 |
short _nDACFileEpisodeNum; |
| 770 |
short _nDACFileADCNum; |
| 771 |
char _sDACFilePath[ABF_DACFILEPATHLEN]; |
| 772 |
|
| 773 |
|
| 774 |
short _nConditEnable; |
| 775 |
short _nConditChannel; |
| 776 |
ABFLONG _lConditNumPulses; |
| 777 |
float _fBaselineDuration; |
| 778 |
float _fBaselineLevel; |
| 779 |
float _fStepDuration; |
| 780 |
float _fStepLevel; |
| 781 |
float _fPostTrainPeriod; |
| 782 |
float _fPostTrainLevel; |
| 783 |
char sUnused007[12]; |
| 784 |
|
| 785 |
|
| 786 |
short _nParamToVary; |
| 787 |
char _sParamValueList[ABF_VARPARAMLISTLEN]; |
| 788 |
|
| 789 |
|
| 790 |
short _nAutopeakEnable; |
| 791 |
short _nAutopeakPolarity; |
| 792 |
short _nAutopeakADCNum; |
| 793 |
short _nAutopeakSearchMode; |
| 794 |
ABFLONG _lAutopeakStart; |
| 795 |
ABFLONG _lAutopeakEnd; |
| 796 |
short _nAutopeakSmoothing; |
| 797 |
short _nAutopeakBaseline; |
| 798 |
short _nAutopeakAverage; |
| 799 |
char sUnavailable1866[2]; |
| 800 |
ABFLONG _lAutopeakBaselineStart; |
| 801 |
ABFLONG _lAutopeakBaselineEnd; |
| 802 |
ABFLONG _lAutopeakMeasurements; |
| 803 |
|
| 804 |
|
| 805 |
short nArithmeticEnable; |
| 806 |
float fArithmeticUpperLimit; |
| 807 |
float fArithmeticLowerLimit; |
| 808 |
short nArithmeticADCNumA; |
| 809 |
short nArithmeticADCNumB; |
| 810 |
float fArithmeticK1; |
| 811 |
float fArithmeticK2; |
| 812 |
float fArithmeticK3; |
| 813 |
float fArithmeticK4; |
| 814 |
char sArithmeticOperator[ABF_ARITHMETICOPLEN]; |
| 815 |
char sArithmeticUnits[ABF_ARITHMETICUNITSLEN]; |
| 816 |
float fArithmeticK5; |
| 817 |
float fArithmeticK6; |
| 818 |
short nArithmeticExpression; |
| 819 |
char sUnused008[2]; |
| 820 |
|
| 821 |
|
| 822 |
short _nPNEnable; |
| 823 |
short nPNPosition; |
| 824 |
short _nPNPolarity; |
| 825 |
short nPNNumPulses; |
| 826 |
short _nPNADCNum; |
| 827 |
float _fPNHoldingLevel; |
| 828 |
float fPNSettlingTime; |
| 829 |
float fPNInterpulse; |
| 830 |
char sUnused009[12]; |
| 831 |
|
| 832 |
|
| 833 |
short _nListEnable; |
| 834 |
|
| 835 |
short nBellEnable[ABF_BELLCOUNT]; |
| 836 |
short nBellLocation[ABF_BELLCOUNT]; |
| 837 |
short nBellRepetitions[ABF_BELLCOUNT]; |
| 838 |
|
| 839 |
short nLevelHysteresis; |
| 840 |
ABFLONG lTimeHysteresis; |
| 841 |
short nAllowExternalTags; |
| 842 |
|
| 843 |
char nLowpassFilterType[ABF_ADCCOUNT]; |
| 844 |
char nHighpassFilterType[ABF_ADCCOUNT]; |
| 845 |
short nAverageAlgorithm; |
| 846 |
float fAverageWeighting; |
| 847 |
short nUndoPromptStrategy; |
| 848 |
short nTrialTriggerSource; |
| 849 |
short nStatisticsDisplayStrategy; |
| 850 |
short nExternalTagType; |
| 851 |
ABFLONG lHeaderSize; |
| 852 |
double dFileDuration; |
| 853 |
short nStatisticsClearStrategy; |
| 854 |
|
| 855 |
|
| 856 |
|
| 857 |
|
| 858 |
ABFLONG lDACFilePtr[ABF_WAVEFORMCOUNT]; |
| 859 |
ABFLONG lDACFileNumEpisodes[ABF_WAVEFORMCOUNT]; |
| 860 |
|
| 861 |
|
| 862 |
float fFirstRunDelay; |
| 863 |
char sUnused010[6]; |
| 864 |
|
| 865 |
|
| 866 |
float fDACCalibrationFactor[ABF_DACCOUNT]; |
| 867 |
float fDACCalibrationOffset[ABF_DACCOUNT]; |
| 868 |
char sUnused011[30]; |
| 869 |
|
| 870 |
|
| 871 |
ABFLONG lEpochPulsePeriod[ABF_WAVEFORMCOUNT][ABF_EPOCHCOUNT]; |
| 872 |
ABFLONG lEpochPulseWidth [ABF_WAVEFORMCOUNT][ABF_EPOCHCOUNT]; |
| 873 |
|
| 874 |
|
| 875 |
short nWaveformEnable[ABF_WAVEFORMCOUNT]; |
| 876 |
short nWaveformSource[ABF_WAVEFORMCOUNT]; |
| 877 |
short nInterEpisodeLevel[ABF_WAVEFORMCOUNT]; |
| 878 |
short nEpochType[ABF_WAVEFORMCOUNT][ABF_EPOCHCOUNT]; |
| 879 |
float fEpochInitLevel[ABF_WAVEFORMCOUNT][ABF_EPOCHCOUNT]; |
| 880 |
float fEpochLevelInc[ABF_WAVEFORMCOUNT][ABF_EPOCHCOUNT]; |
| 881 |
ABFLONG lEpochInitDuration[ABF_WAVEFORMCOUNT][ABF_EPOCHCOUNT]; |
| 882 |
ABFLONG lEpochDurationInc[ABF_WAVEFORMCOUNT][ABF_EPOCHCOUNT]; |
| 883 |
short nDigitalTrainValue[ABF_EPOCHCOUNT]; |
| 884 |
short nDigitalTrainActiveLogic; |
| 885 |
char sUnused012[18]; |
| 886 |
|
| 887 |
|
| 888 |
float fDACFileScale[ABF_WAVEFORMCOUNT]; |
| 889 |
float fDACFileOffset[ABF_WAVEFORMCOUNT]; |
| 890 |
ABFLONG lDACFileEpisodeNum[ABF_WAVEFORMCOUNT]; |
| 891 |
short nDACFileADCNum[ABF_WAVEFORMCOUNT]; |
| 892 |
char sDACFilePath[ABF_WAVEFORMCOUNT][ABF_PATHLEN]; |
| 893 |
char sUnused013[12]; |
| 894 |
|
| 895 |
|
| 896 |
short nConditEnable[ABF_WAVEFORMCOUNT]; |
| 897 |
ABFLONG lConditNumPulses[ABF_WAVEFORMCOUNT]; |
| 898 |
float fBaselineDuration[ABF_WAVEFORMCOUNT]; |
| 899 |
float fBaselineLevel[ABF_WAVEFORMCOUNT]; |
| 900 |
float fStepDuration[ABF_WAVEFORMCOUNT]; |
| 901 |
float fStepLevel[ABF_WAVEFORMCOUNT]; |
| 902 |
float fPostTrainPeriod[ABF_WAVEFORMCOUNT]; |
| 903 |
float fPostTrainLevel[ABF_WAVEFORMCOUNT]; |
| 904 |
char sUnused014[40]; |
| 905 |
|
| 906 |
|
| 907 |
short nULEnable[ABF_USERLISTCOUNT]; |
| 908 |
short nULParamToVary[ABF_USERLISTCOUNT]; |
| 909 |
char sULParamValueList[ABF_USERLISTCOUNT][ABF_USERLISTLEN]; |
| 910 |
short nULRepeat[ABF_USERLISTCOUNT]; |
| 911 |
char sUnused015[48]; |
| 912 |
|
| 913 |
|
| 914 |
short nPNEnable[ABF_WAVEFORMCOUNT]; |
| 915 |
short nPNPolarity[ABF_WAVEFORMCOUNT]; |
| 916 |
short __nPNADCNum[ABF_WAVEFORMCOUNT]; |
| 917 |
float fPNHoldingLevel[ABF_WAVEFORMCOUNT]; |
| 918 |
short nPNNumADCChannels[ABF_WAVEFORMCOUNT]; |
| 919 |
char nPNADCSamplingSeq[ABF_WAVEFORMCOUNT][ABF_ADCCOUNT]; |
| 920 |
|
| 921 |
|
| 922 |
short nTelegraphEnable[ABF_ADCCOUNT]; |
| 923 |
short nTelegraphInstrument[ABF_ADCCOUNT]; |
| 924 |
float fTelegraphAdditGain[ABF_ADCCOUNT]; |
| 925 |
float fTelegraphFilter[ABF_ADCCOUNT]; |
| 926 |
float fTelegraphMembraneCap[ABF_ADCCOUNT]; |
| 927 |
short nTelegraphMode[ABF_ADCCOUNT]; |
| 928 |
short nTelegraphDACScaleFactorEnable[ABF_DACCOUNT]; |
| 929 |
char sUnused016a[24]; |
| 930 |
|
| 931 |
short nAutoAnalyseEnable; |
| 932 |
char sAutoAnalysisMacroName[ABF_MACRONAMELEN]; |
| 933 |
char sProtocolPath[ABF_PATHLEN]; |
| 934 |
|
| 935 |
char sFileComment[ABF_FILECOMMENTLEN]; |
| 936 |
struct GUID FileGUID; |
| 937 |
float fInstrumentHoldingLevel[ABF_DACCOUNT]; |
| 938 |
uint32_t ulFileCRC; |
| 939 |
char sModifierInfo[ABF_CREATORINFOLEN]; |
| 940 |
char sUnused017[76]; |
| 941 |
|
| 942 |
|
| 943 |
short nStatsEnable; |
| 944 |
unsigned short nStatsActiveChannels; |
| 945 |
unsigned short nStatsSearchRegionFlags; |
| 946 |
short nStatsSelectedRegion; |
| 947 |
short _nStatsSearchMode; |
| 948 |
short nStatsSmoothing; |
| 949 |
short nStatsSmoothingEnable; |
| 950 |
short nStatsBaseline; |
| 951 |
ABFLONG lStatsBaselineStart; |
| 952 |
ABFLONG lStatsBaselineEnd; |
| 953 |
ABFLONG lStatsMeasurements[ABF_STATS_REGIONS]; |
| 954 |
ABFLONG lStatsStart[ABF_STATS_REGIONS]; |
| 955 |
ABFLONG lStatsEnd[ABF_STATS_REGIONS]; |
| 956 |
short nRiseBottomPercentile[ABF_STATS_REGIONS]; |
| 957 |
short nRiseTopPercentile[ABF_STATS_REGIONS]; |
| 958 |
short nDecayBottomPercentile[ABF_STATS_REGIONS]; |
| 959 |
short nDecayTopPercentile[ABF_STATS_REGIONS]; |
| 960 |
short nStatsChannelPolarity[ABF_ADCCOUNT]; |
| 961 |
short nStatsSearchMode[ABF_STATS_REGIONS]; |
| 962 |
char sUnused018[156]; |
| 963 |
|
| 964 |
|
| 965 |
short nCreatorMajorVersion; |
| 966 |
short nCreatorMinorVersion; |
| 967 |
short nCreatorBugfixVersion; |
| 968 |
short nCreatorBuildVersion; |
| 969 |
short nModifierMajorVersion; |
| 970 |
short nModifierMinorVersion; |
| 971 |
short nModifierBugfixVersion; |
| 972 |
short nModifierBuildVersion; |
| 973 |
|
| 974 |
|
| 975 |
short nLTPType; |
| 976 |
short nLTPUsageOfDAC[ABF_WAVEFORMCOUNT]; |
| 977 |
short nLTPPresynapticPulses[ABF_WAVEFORMCOUNT]; |
| 978 |
char sUnused020[4]; |
| 979 |
|
| 980 |
|
| 981 |
short nDD132xTriggerOut; |
| 982 |
char sUnused021[6]; |
| 983 |
|
| 984 |
|
| 985 |
char sEpochResistanceSignalName[ABF_WAVEFORMCOUNT][ABF_ADCNAMELEN]; |
| 986 |
short nEpochResistanceState[ABF_WAVEFORMCOUNT]; |
| 987 |
char sUnused022[16]; |
| 988 |
|
| 989 |
|
| 990 |
short nAlternateDACOutputState; |
| 991 |
short nAlternateDigitalValue[ABF_EPOCHCOUNT]; |
| 992 |
short nAlternateDigitalTrainValue[ABF_EPOCHCOUNT]; |
| 993 |
short nAlternateDigitalOutputState; |
| 994 |
char sUnused023[14]; |
| 995 |
|
| 996 |
|
| 997 |
float fPostProcessLowpassFilter[ABF_ADCCOUNT]; |
| 998 |
char nPostProcessLowpassFilterType[ABF_ADCCOUNT]; |
| 999 |
|
| 1000 |
|
| 1001 |
|
| 1002 |
char sUnused2048[130]; |
| 1003 |
|
| 1004 |
}; |
| 1005 |
|
| 1006 |
|
| 1007 |
#if !defined(_WINDOWS) || defined(__MINGW32__) |
| 1008 |
#define C_ASSERT(e) extern void __C_ASSERT__(int [(e)?1:-1]) |
| 1009 |
#endif |
| 1010 |
C_ASSERT(sizeof(struct ABFFileHeader) == 6144); |
| 1011 |
|
| 1012 |
|
| 1013 |
|
| 1014 |
|
| 1015 |
|
| 1016 |
|
| 1017 |
|
| 1018 |
|
| 1019 |
|
| 1020 |
|
| 1021 |
|
| 1022 |
|
| 1023 |
|
| 1024 |
|
| 1025 |
|
| 1026 |
|
| 1027 |
|
| 1028 |
|
| 1029 |
|
| 1030 |
|
| 1031 |
|
| 1032 |
|
| 1033 |
|
| 1034 |
|
| 1035 |
|
| 1036 |
|
| 1037 |
|
| 1038 |
|
| 1039 |
|
| 1040 |
|
| 1041 |
|
| 1042 |
|
| 1043 |
|
| 1044 |
|
| 1045 |
|
| 1046 |
|
| 1047 |
|
| 1048 |
|
| 1049 |
|
| 1050 |
|
| 1051 |
|
| 1052 |
|
| 1053 |
|
| 1054 |
|
| 1055 |
|
| 1056 |
|
| 1057 |
|
| 1058 |
|
| 1059 |
|
| 1060 |
|
| 1061 |
|
| 1062 |
|
| 1063 |
|
| 1064 |
|
| 1065 |
|
| 1066 |
|
| 1067 |
|
| 1068 |
|
| 1069 |
|
| 1070 |
|
| 1071 |
|
| 1072 |
|
| 1073 |
|
| 1074 |
|
| 1075 |
|
| 1076 |
|
| 1077 |
|
| 1078 |
|
| 1079 |
|
| 1080 |
|
| 1081 |
|
| 1082 |
|
| 1083 |
|
| 1084 |
|
| 1085 |
|
| 1086 |
|
| 1087 |
|
| 1088 |
|
| 1089 |
|
| 1090 |
|
| 1091 |
|
| 1092 |
|
| 1093 |
|
| 1094 |
|
| 1095 |
|
| 1096 |
|
| 1097 |
|
| 1098 |
|
| 1099 |
|
| 1100 |
|
| 1101 |
|
| 1102 |
|
| 1103 |
|
| 1104 |
|
| 1105 |
|
| 1106 |
|
| 1107 |
|
| 1108 |
|
| 1109 |
|
| 1110 |
|
| 1111 |
|
| 1112 |
|
| 1113 |
|
| 1114 |
|
| 1115 |
|
| 1116 |
|
| 1117 |
|
| 1118 |
|
| 1119 |
|
| 1120 |
|
| 1121 |
|
| 1122 |
|
| 1123 |
|
| 1124 |
|
| 1125 |
|
| 1126 |
|
| 1127 |
|
| 1128 |
|
| 1129 |
|
| 1130 |
|
| 1131 |
|
| 1132 |
|
| 1133 |
|
| 1134 |
|
| 1135 |
|
| 1136 |
|
| 1137 |
|
| 1138 |
|
| 1139 |
|
| 1140 |
|
| 1141 |
|
| 1142 |
|
| 1143 |
|
| 1144 |
|
| 1145 |
|
| 1146 |
|
| 1147 |
|
| 1148 |
|
| 1149 |
|
| 1150 |
|
| 1151 |
|
| 1152 |
|
| 1153 |
|
| 1154 |
|
| 1155 |
|
| 1156 |
|
| 1157 |
|
| 1158 |
|
| 1159 |
|
| 1160 |
|
| 1161 |
|
| 1162 |
|
| 1163 |
|
| 1164 |
|
| 1165 |
|
| 1166 |
|
| 1167 |
|
| 1168 |
|
| 1169 |
|
| 1170 |
|
| 1171 |
|
| 1172 |
|
| 1173 |
|
| 1174 |
|
| 1175 |
|
| 1176 |
|
| 1177 |
|
| 1178 |
|
| 1179 |
|
| 1180 |
|
| 1181 |
|
| 1182 |
|
| 1183 |
|
| 1184 |
|
| 1185 |
|
| 1186 |
|
| 1187 |
|
| 1188 |
|
| 1189 |
|
| 1190 |
|
| 1191 |
|
| 1192 |
|
| 1193 |
|
| 1194 |
|
| 1195 |
|
| 1196 |
|
| 1197 |
struct ABFSynch |
| 1198 |
{ |
| 1199 |
ABFLONG lStart; |
| 1200 |
ABFLONG lLength; |
| 1201 |
}; |
| 1202 |
|
| 1203 |
|
| 1204 |
|
| 1205 |
|
| 1206 |
#define ABF_TIMETAG 0 |
| 1207 |
#define ABF_COMMENTTAG 1 |
| 1208 |
#define ABF_EXTERNALTAG 2 |
| 1209 |
#define ABF_VOICETAG 3 |
| 1210 |
#define ABF_NEWFILETAG 4 |
| 1211 |
#define ABF_ANNOTATIONTAG 5 // Same as a comment tag except that nAnnotationIndex holds |
| 1212 |
|
| 1213 |
|
| 1214 |
|
| 1215 |
|
| 1216 |
struct ABFTag |
| 1217 |
{ |
| 1218 |
ABFLONG lTagTime; |
| 1219 |
char sComment[ABF_TAGCOMMENTLEN]; |
| 1220 |
short nTagType; |
| 1221 |
union |
| 1222 |
{ |
| 1223 |
short nVoiceTagNumber; |
| 1224 |
short nAnnotationIndex; |
| 1225 |
}; |
| 1226 |
}; |
| 1227 |
|
| 1228 |
|
| 1229 |
#define ABF_EXTERNALTAGCOMMENT "<External>" |
| 1230 |
#define ABF_VOICETAGCOMMENT "<Voice Tag>" |
| 1231 |
|
| 1232 |
|
| 1233 |
|
| 1234 |
|
| 1235 |
#define ABF_COMPRESSION_NONE 0 |
| 1236 |
#define ABF_COMPRESSION_PKWARE 1 |
| 1237 |
|
| 1238 |
|
| 1239 |
|
| 1240 |
|
| 1241 |
|
| 1242 |
struct ABFVoiceTagInfo |
| 1243 |
{ |
| 1244 |
ABFLONG lTagNumber; |
| 1245 |
ABFLONG lFileOffset; |
| 1246 |
ABFLONG lUncompressedSize; |
| 1247 |
ABFLONG lCompressedSize; |
| 1248 |
short nCompressionType; |
| 1249 |
short nSampleSize; |
| 1250 |
ABFLONG lSamplesPerSecond; |
| 1251 |
uint32_t dwCRC; |
| 1252 |
uint16_t wChannels; |
| 1253 |
uint16_t wUnused; |
| 1254 |
}; |
| 1255 |
|
| 1256 |
|
| 1257 |
|
| 1258 |
|
| 1259 |
|
| 1260 |
|
| 1261 |
#define ABF_DELTA_HOLDING0 0 |
| 1262 |
#define ABF_DELTA_HOLDING1 1 |
| 1263 |
#define ABF_DELTA_HOLDING2 2 |
| 1264 |
#define ABF_DELTA_HOLDING3 3 |
| 1265 |
#define ABF_DELTA_DIGITALOUTS 4 |
| 1266 |
#define ABF_DELTA_THRESHOLD 5 |
| 1267 |
#define ABF_DELTA_PRETRIGGER 6 |
| 1268 |
|
| 1269 |
|
| 1270 |
#define ABF_DELTA_AUTOSAMPLE_GAIN 100 // +ADC channel. |
| 1271 |
|
| 1272 |
|
| 1273 |
#define ABF_DELTA_SIGNAL_GAIN 200 // +ADC channel. |
| 1274 |
|
| 1275 |
|
| 1276 |
|
| 1277 |
|
| 1278 |
|
| 1279 |
struct ABFDelta |
| 1280 |
{ |
| 1281 |
ABFLONG lDeltaTime; |
| 1282 |
ABFLONG lParameterID; |
| 1283 |
union |
| 1284 |
{ |
| 1285 |
ABFLONG lNewParamValue; |
| 1286 |
float fNewParamValue; |
| 1287 |
}; |
| 1288 |
}; |
| 1289 |
|
| 1290 |
#ifndef RC_INVOKED |
| 1291 |
#pragma pack(pop) // return to default packing |
| 1292 |
#endif |
| 1293 |
|
| 1294 |
|
| 1295 |
|
| 1296 |
|
| 1297 |
|
| 1298 |
|
| 1299 |
|
| 1300 |
|
| 1301 |
|
| 1302 |
|
| 1303 |
|
| 1304 |
|
| 1305 |
|
| 1306 |
|
| 1307 |
|
| 1308 |
|
| 1309 |
|
| 1310 |
|
| 1311 |
|
| 1312 |
|
| 1313 |
|
| 1314 |
|
| 1315 |
|
| 1316 |
|
| 1317 |
|
| 1318 |
|
| 1319 |
|
| 1320 |
|
| 1321 |
|
| 1322 |
|
| 1323 |
|
| 1324 |
|
| 1325 |
|
| 1326 |
|
| 1327 |
|
| 1328 |
|
| 1329 |
|
| 1330 |
|
| 1331 |
|
| 1332 |
|
| 1333 |
|
| 1334 |
|
| 1335 |
|
| 1336 |
|
| 1337 |
|
| 1338 |
|
| 1339 |
|
| 1340 |
|
| 1341 |
|
| 1342 |
|
| 1343 |
|
| 1344 |
|
| 1345 |
|
| 1346 |
|
| 1347 |
|
| 1348 |
|
| 1349 |
|
| 1350 |
|
| 1351 |
|
| 1352 |
|
| 1353 |
|
| 1354 |
|
| 1355 |
|
| 1356 |
|
| 1357 |
|
| 1358 |
|
| 1359 |
|
| 1360 |
|
| 1361 |
|
| 1362 |
|
| 1363 |
|
| 1364 |
|
| 1365 |
|
| 1366 |
|
| 1367 |
|
| 1368 |
|
| 1369 |
|
| 1370 |
|
| 1371 |
|
| 1372 |
|
| 1373 |
|
| 1374 |
|
| 1375 |
|
| 1376 |
|
| 1377 |
|
| 1378 |
|
| 1379 |
|
| 1380 |
|
| 1381 |
|
| 1382 |
|
| 1383 |
|
| 1384 |
|
| 1385 |
|
| 1386 |
|
| 1387 |
|
| 1388 |
|
| 1389 |
|
| 1390 |
|
| 1391 |
|
| 1392 |
|
| 1393 |
|
| 1394 |
|
| 1395 |
|
| 1396 |
|
| 1397 |
|
| 1398 |
|
| 1399 |
|
| 1400 |
|
| 1401 |
|
| 1402 |
|
| 1403 |
|
| 1404 |
|
| 1405 |
|
| 1406 |
|
| 1407 |
|
| 1408 |
|
| 1409 |
|
| 1410 |
|
| 1411 |
|
| 1412 |
|
| 1413 |
|
| 1414 |
|
| 1415 |
|
| 1416 |
|
| 1417 |
|
| 1418 |
|
| 1419 |
|
| 1420 |
|
| 1421 |
|
| 1422 |
|
| 1423 |
|
| 1424 |
|
| 1425 |
|
| 1426 |
|
| 1427 |
|
| 1428 |
|
| 1429 |
|
| 1430 |
|
| 1431 |
|
| 1432 |
|
| 1433 |
|
| 1434 |
|
| 1435 |
|
| 1436 |
|
| 1437 |
|
| 1438 |
|
| 1439 |
|
| 1440 |
|
| 1441 |
|
| 1442 |
|
| 1443 |
|
| 1444 |
|
| 1445 |
|
| 1446 |
|
| 1447 |
|
| 1448 |
|
| 1449 |
|
| 1450 |
|
| 1451 |
|
| 1452 |
|
| 1453 |
|
| 1454 |
|
| 1455 |
|
| 1456 |
|
| 1457 |
|
| 1458 |
|
| 1459 |
|
| 1460 |
|
| 1461 |
|
| 1462 |
|
| 1463 |
|
| 1464 |
|
| 1465 |
|
| 1466 |
|
| 1467 |
|
| 1468 |
|
| 1469 |
|
| 1470 |
|
| 1471 |
|
| 1472 |
|
| 1473 |
|
| 1474 |
|
| 1475 |
|
| 1476 |
|
| 1477 |
|
| 1478 |
|
| 1479 |
|
| 1480 |
#define ABFH_FIRSTERRORNUMBER 2001 |
| 1481 |
#define ABFH_EHEADERREAD 2001 |
| 1482 |
#define ABFH_EHEADERWRITE 2002 |
| 1483 |
#define ABFH_EINVALIDFILE 2003 |
| 1484 |
#define ABFH_EUNKNOWNFILETYPE 2004 |
| 1485 |
#define ABFH_CHANNELNOTSAMPLED 2005 |
| 1486 |
#define ABFH_EPOCHNOTPRESENT 2006 |
| 1487 |
#define ABFH_ENOWAVEFORM 2007 |
| 1488 |
#define ABFH_EDACFILEWAVEFORM 2008 |
| 1489 |
#define ABFH_ENOMEMORY 2009 |
| 1490 |
#define ABFH_BADSAMPLEINTERVAL 2010 |
| 1491 |
#define ABFH_BADSECONDSAMPLEINTERVAL 2011 |
| 1492 |
#define ABFH_BADSAMPLEINTERVALS 2012 |
| 1493 |
#define ABFH_ENOCONDITTRAINS 2013 |
| 1494 |
#define ABFH_EMETADURATION 2014 |
| 1495 |
#define ABFH_ECONDITNUMPULSES 2015 |
| 1496 |
#define ABFH_ECONDITBASEDUR 2016 |
| 1497 |
#define ABFH_ECONDITBASELEVEL 2017 |
| 1498 |
#define ABFH_ECONDITPOSTTRAINDUR 2018 |
| 1499 |
#define ABFH_ECONDITPOSTTRAINLEVEL 2019 |
| 1500 |
#define ABFH_ESTART2START 2020 |
| 1501 |
#define ABFH_EINACTIVEHOLDING 2021 |
| 1502 |
#define ABFH_EINVALIDCHARS 2022 |
| 1503 |
#define ABFH_ENODIG 2023 |
| 1504 |
#define ABFH_EDIGHOLDLEVEL 2024 |
| 1505 |
#define ABFH_ENOPNPULSES 2025 |
| 1506 |
#define ABFH_EPNNUMPULSES 2026 |
| 1507 |
#define ABFH_ENOEPOCH 2027 |
| 1508 |
#define ABFH_EEPOCHLEN 2028 |
| 1509 |
#define ABFH_EEPOCHINITLEVEL 2029 |
| 1510 |
#define ABFH_EDIGLEVEL 2030 |
| 1511 |
#define ABFH_ECONDITSTEPDUR 2031 |
| 1512 |
#define ABFH_ECONDITSTEPLEVEL 2032 |
| 1513 |
#define ABFH_EINVALIDBINARYCHARS 2033 |
| 1514 |
#define ABFH_EBADWAVEFORM 2034 |
| 1515 |
|
| 1516 |
|
| 1517 |
#ifdef __cplusplus |
| 1518 |
} |
| 1519 |
#endif |
| 1520 |
|
| 1521 |
#endif |