Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
cfs.h File Reference
#include "machine.h"
#include <malloc.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
Include dependency graph for cfs.h:

Go to the source code of this file.

Classes

struct  TVarDesc

Macros

#define qDebug   0 /* only used to debug Mac stuff */
#define CFSAPI(type)
#define FILEVAR   0 /* Constants to indicate whether variable is */
#define DSVAR   1 /* file or data section variable. */
#define INT1   0 /* DATA VARIABLE STORAGE TYPES */
#define WRD1   1
#define INT2   2
#define WRD2   3
#define INT4   4
#define RL4   5
#define RL8   6
#define LSTR   7
#define SUBSIDIARY   2 /* Chan Data Storage types */
#define MATRIX   1
#define EQUALSPACED   0 /* Chan Data Storage types */
#define noFlags   0 /* Declare a default flag */
#define FLAG7   1
#define FLAG6   2
#define FLAG5   4
#define FLAG4   8
#define FLAG3   16
#define FLAG2   32
#define FLAG1   64
#define FLAG0   128
#define FLAG15   256
#define FLAG14   512
#define FLAG13   1024
#define FLAG12   2048
#define FLAG11   4096
#define FLAG10   8192
#define FLAG9   16384
#define FLAG8   32768
#define DESCCHARS   20
#define FNAMECHARS   12
#define COMMENTCHARS   72
#define UNITCHARS   8

Typedefs

typedef char TDataType
typedef char TCFSKind
typedef char TDesc[DESCCHARS+2]
typedef char TFileName[FNAMECHARS+2]
typedef char TComment[COMMENTCHARS+2]
typedef char TUnits[UNITCHARS+2]
typedef WORD TSFlags
typedef char * TpStr
typedef const char * TpCStr
typedef short * TpShort
typedef float * TpFloat
typedef CFSLONGTpLong
typedef void * TpVoid
typedef TSFlagsTpFlags
typedef TDataTypeTpDType
typedef TCFSKindTpDKind
typedef TVarDescTpVDesc
typedef const TVarDescTpCVDesc
typedef THandleTpHandle
typedef signed char * TpSStr
typedef WORDTpUShort
typedef FILE * fDef

Functions

 CFSAPI (short) CreateCFSFile(TpCStr fname
 CFSAPI (void) SetFileChan(short handle
 CFSAPI (CFSLONG) CFSFileSize(short handle)
 CFSAPI (WORD) GetChanData(short handle

Variables

TpCStr comment
TpCStr WORD blocksize
TpCStr WORD short channels
TpCStr WORD short TpCVDesc fileArray
TpCStr WORD short TpCVDesc TpCVDesc DSArray
TpCStr WORD short TpCVDesc TpCVDesc short fileVars
TpCStr WORD short TpCVDesc TpCVDesc short short DSVars
short channel
short TpCStr channelName
short TpCStr TpCStr yUnits
short TpCStr TpCStr TpCStr xUnits
short TpCStr TpCStr TpCStr TDataType dataType
short TpCStr TpCStr TpCStr TDataType TCFSKind dataKind
short TpCStr TpCStr TpCStr TDataType TCFSKind short spacing
short TpCStr TpCStr TpCStr TDataType TCFSKind short short other
short WORD dataSection
short WORD CFSLONG startOffset
short WORD CFSLONG CFSLONG points
short WORD CFSLONG CFSLONG float yScale
short WORD CFSLONG CFSLONG float float yOffset
short WORD CFSLONG CFSLONG float float float xScale
short WORD CFSLONG CFSLONG float float float float xOffset
WORD CFSLONG WORD bytes
WORD CFSLONG WORD TpVoid dataADS
WORD TSFlags flagSet
CFSLONG lSize
short varNo
short short varKind
short short WORD TpVoid varADS
short enableWrite
short short memoryTable
TpStr time
TpStr TpStr date
TpShort TpShort TpShort TpUShort dataSections
short short TpShort varSize
short short TpShort TpDType varType
short short TpShort TpDType TpStr units
short short TpShort TpDType TpStr TpStr description
short WORD CFSLONG firstElement
short WORD CFSLONG WORD numberElements
short WORD CFSLONG WORD TpVoid CFSLONG areaSize
WORD CFSLONG startOffest
WORD short setIt
WORD short TpFlags pflagSet
TpShort procNo
TpShort TpShort errNo

Macro Definition Documentation

◆ CFSAPI

#define CFSAPI ( type)
Value:
type

Definition at line 41 of file cfs.h.

◆ COMMENTCHARS

#define COMMENTCHARS   72

Definition at line 84 of file cfs.h.

◆ DESCCHARS

#define DESCCHARS   20

Definition at line 82 of file cfs.h.

◆ DSVAR

#define DSVAR   1 /* file or data section variable. */

Definition at line 45 of file cfs.h.

◆ EQUALSPACED

#define EQUALSPACED   0 /* Chan Data Storage types */

Definition at line 56 of file cfs.h.

◆ FILEVAR

#define FILEVAR   0 /* Constants to indicate whether variable is */

Definition at line 44 of file cfs.h.

◆ FLAG0

#define FLAG0   128

Definition at line 69 of file cfs.h.

◆ FLAG1

#define FLAG1   64

Definition at line 68 of file cfs.h.

◆ FLAG10

#define FLAG10   8192

Definition at line 75 of file cfs.h.

◆ FLAG11

#define FLAG11   4096

Definition at line 74 of file cfs.h.

◆ FLAG12

#define FLAG12   2048

Definition at line 73 of file cfs.h.

◆ FLAG13

#define FLAG13   1024

Definition at line 72 of file cfs.h.

◆ FLAG14

#define FLAG14   512

Definition at line 71 of file cfs.h.

◆ FLAG15

#define FLAG15   256

Definition at line 70 of file cfs.h.

◆ FLAG2

#define FLAG2   32

Definition at line 67 of file cfs.h.

◆ FLAG3

#define FLAG3   16

Definition at line 66 of file cfs.h.

◆ FLAG4

#define FLAG4   8

Definition at line 65 of file cfs.h.

◆ FLAG5

#define FLAG5   4

Definition at line 64 of file cfs.h.

◆ FLAG6

#define FLAG6   2

Definition at line 63 of file cfs.h.

◆ FLAG7

#define FLAG7   1

Definition at line 62 of file cfs.h.

◆ FLAG8

#define FLAG8   32768

Definition at line 77 of file cfs.h.

◆ FLAG9

#define FLAG9   16384

Definition at line 76 of file cfs.h.

◆ FNAMECHARS

#define FNAMECHARS   12

Definition at line 83 of file cfs.h.

◆ INT1

#define INT1   0 /* DATA VARIABLE STORAGE TYPES */

Definition at line 46 of file cfs.h.

◆ INT2

#define INT2   2

Definition at line 48 of file cfs.h.

◆ INT4

#define INT4   4

Definition at line 50 of file cfs.h.

◆ LSTR

#define LSTR   7

Definition at line 53 of file cfs.h.

◆ MATRIX

#define MATRIX   1

Definition at line 55 of file cfs.h.

◆ noFlags

#define noFlags   0 /* Declare a default flag */

Definition at line 58 of file cfs.h.

◆ qDebug

#define qDebug   0 /* only used to debug Mac stuff */

Definition at line 34 of file cfs.h.

◆ RL4

#define RL4   5

Definition at line 51 of file cfs.h.

◆ RL8

#define RL8   6

Definition at line 52 of file cfs.h.

◆ SUBSIDIARY

#define SUBSIDIARY   2 /* Chan Data Storage types */

Definition at line 54 of file cfs.h.

◆ UNITCHARS

#define UNITCHARS   8

Definition at line 85 of file cfs.h.

◆ WRD1

#define WRD1   1

Definition at line 47 of file cfs.h.

◆ WRD2

#define WRD2   3

Definition at line 49 of file cfs.h.

Typedef Documentation

◆ fDef

typedef FILE* fDef

Definition at line 150 of file cfs.h.

◆ TCFSKind

typedef char TCFSKind

Definition at line 90 of file cfs.h.

◆ TComment

typedef char TComment[COMMENTCHARS+2]

Definition at line 93 of file cfs.h.

◆ TDataType

typedef char TDataType

Definition at line 89 of file cfs.h.

◆ TDesc

typedef char TDesc[DESCCHARS+2]

Definition at line 91 of file cfs.h.

◆ TFileName

typedef char TFileName[FNAMECHARS+2]

Definition at line 92 of file cfs.h.

◆ TpCStr

typedef const char* TpCStr

Definition at line 113 of file cfs.h.

◆ TpCVDesc

typedef const TVarDesc* TpCVDesc

Definition at line 122 of file cfs.h.

◆ TpDKind

typedef TCFSKind* TpDKind

Definition at line 120 of file cfs.h.

◆ TpDType

typedef TDataType* TpDType

Definition at line 119 of file cfs.h.

◆ TpFlags

typedef TSFlags* TpFlags

Definition at line 118 of file cfs.h.

◆ TpFloat

typedef float* TpFloat

Definition at line 115 of file cfs.h.

◆ TpHandle

typedef THandle* TpHandle

Definition at line 123 of file cfs.h.

◆ TpLong

typedef CFSLONG* TpLong

Definition at line 116 of file cfs.h.

◆ TpShort

typedef short* TpShort

Definition at line 114 of file cfs.h.

◆ TpSStr

typedef signed char* TpSStr

Definition at line 124 of file cfs.h.

◆ TpStr

typedef char* TpStr

Definition at line 112 of file cfs.h.

◆ TpUShort

typedef WORD* TpUShort

Definition at line 125 of file cfs.h.

◆ TpVDesc

typedef TVarDesc* TpVDesc

Definition at line 121 of file cfs.h.

◆ TpVoid

typedef void* TpVoid

Definition at line 117 of file cfs.h.

◆ TSFlags

typedef WORD TSFlags

Definition at line 98 of file cfs.h.

◆ TUnits

typedef char TUnits[UNITCHARS+2]

Definition at line 94 of file cfs.h.

Function Documentation

◆ CFSAPI() [1/4]

CFSAPI ( CFSLONG )

References CFSLONG, and dataSection.

◆ CFSAPI() [2/4]

CFSAPI ( short )

◆ CFSAPI() [3/4]

CFSAPI ( void )

◆ CFSAPI() [4/4]

CFSAPI ( WORD )

References channel, and dataSection.

Variable Documentation

◆ areaSize

short WORD CFSLONG WORD TpVoid CFSLONG areaSize

Definition at line 284 of file cfs.h.

◆ blocksize

TpCStr WORD blocksize

Definition at line 165 of file cfs.h.

◆ bytes

WORD CFSLONG WORD bytes

Definition at line 195 of file cfs.h.

◆ channel

short channel

Definition at line 173 of file cfs.h.

Referenced by CFSAPI(), Recording::MakeAverage(), and stfio::multiply().

◆ channelName

short TpStr channelName

Definition at line 174 of file cfs.h.

◆ channels

TpShort channels

Definition at line 166 of file cfs.h.

◆ comment

TpStr TpStr TpStr comment

Definition at line 164 of file cfs.h.

◆ dataADS

Definition at line 196 of file cfs.h.

◆ dataKind

short TpStr TpStr TpStr TpDType TpDKind dataKind

Definition at line 178 of file cfs.h.

◆ dataSection

WORD dataSection

Definition at line 184 of file cfs.h.

Referenced by CFSAPI(), and CFSAPI().

◆ dataSections

Definition at line 242 of file cfs.h.

◆ dataType

short TpStr TpStr TpStr TpDType dataType

Definition at line 177 of file cfs.h.

◆ date

TpStr TpStr date

Definition at line 235 of file cfs.h.

◆ description

short short TpShort TpDType TpStr TpStr description

Definition at line 250 of file cfs.h.

◆ DSArray

TpCStr WORD short TpCVDesc TpCVDesc DSArray

Definition at line 168 of file cfs.h.

◆ DSVars

Definition at line 170 of file cfs.h.

◆ enableWrite

short enableWrite

Definition at line 230 of file cfs.h.

◆ errNo

Definition at line 304 of file cfs.h.

◆ fileArray

TpCStr WORD short TpCVDesc fileArray

Definition at line 167 of file cfs.h.

◆ fileVars

TpShort TpShort fileVars

Definition at line 169 of file cfs.h.

◆ firstElement

short WORD CFSLONG firstElement

Definition at line 281 of file cfs.h.

◆ flagSet

CFSLONG TSFlags flagSet

Definition at line 208 of file cfs.h.

◆ lSize

CFSLONG lSize

Definition at line 211 of file cfs.h.

◆ memoryTable

short short memoryTable

Definition at line 231 of file cfs.h.

◆ numberElements

short WORD CFSLONG WORD numberElements

Definition at line 282 of file cfs.h.

◆ other

Definition at line 180 of file cfs.h.

◆ pflagSet

WORD short TpFlags pflagSet

Definition at line 300 of file cfs.h.

◆ points

WORD TpStr TpWORD points

Definition at line 186 of file cfs.h.

◆ procNo

TpShort procNo

Definition at line 303 of file cfs.h.

◆ setIt

WORD short setIt

Definition at line 299 of file cfs.h.

◆ spacing

Definition at line 179 of file cfs.h.

◆ startOffest

WORD CFSLONG startOffest

Definition at line 291 of file cfs.h.

◆ startOffset

short WORD TpLong startOffset

Definition at line 185 of file cfs.h.

◆ time

TpStr time

Definition at line 234 of file cfs.h.

◆ units

short short TpShort TpDType TpStr units

Definition at line 249 of file cfs.h.

Referenced by wxStfCursorsDlg::SetSlopeUnits().

◆ varADS

short short WORD TpVoid varADS

Definition at line 224 of file cfs.h.

◆ varKind

short short varKind

Definition at line 222 of file cfs.h.

◆ varNo

short varNo

Definition at line 221 of file cfs.h.

◆ varSize

short short TpShort varSize

Definition at line 247 of file cfs.h.

◆ varType

short short TpShort TpDType varType

Definition at line 248 of file cfs.h.

◆ xOffset

Definition at line 190 of file cfs.h.

◆ xScale

Definition at line 189 of file cfs.h.

◆ xUnits

short TpStr TpStr TpStr xUnits

Definition at line 176 of file cfs.h.

◆ yOffset

short WORD TpLong TpLong TpFloat TpFloat yOffset

Definition at line 188 of file cfs.h.

◆ yScale

short WORD TpLong TpLong TpFloat yScale

Definition at line 187 of file cfs.h.

◆ yUnits

short TpStr TpStr yUnits

Definition at line 175 of file cfs.h.