#include <stdio.h>
#include <nsnet.h>
Go to the source code of this file.
Data Structures | |
struct | EDFDecodedChannelHeader |
struct | EDFDecodedConfig |
struct | EDFDecodedHeader |
struct | EDFInputIterator |
struct | EDFPackedChannelHeader |
struct | EDFPackedHeader |
Defines | |
#define | MAXCHANNELS 32 |
#define | BYTESPERSAMPLE 2 |
#define | MAXHEADERLEN ((MAXCHANNELS+1) * 256) |
Functions | |
EDFInputIterator * | newEDFInputIterator (const struct EDFDecodedConfig *cfg) |
int | stepEDFInputIterator (struct EDFInputIterator *edfi) |
int | fetchSamples (const struct EDFInputIterator *edfi, short *samples, FILE *fp) |
void | freeEDFInputIterator (struct EDFInputIterator *edfi) |
int | EDFUnpackInt (const char *inp, int fieldLen) |
double | EDFUnpackDouble (const char *inp, int fieldLen) |
const char * | EDFUnpackString (const char *inp, int fieldLen) |
int | EDFEncodePacket (char *target, const struct EDFDecodedConfig *cfg) |
int | writeEDF (int fd, const struct EDFDecodedConfig *cfg) |
int | readEDF (int fd, struct EDFDecodedConfig *cfg) |
int | writeEDFString (const struct EDFDecodedConfig *cfg, char *buf, int *buflen) |
int | readEDFString (struct EDFDecodedConfig *cfg, const char *buf, int len) |
int | setEDFHeaderBytes (struct EDFDecodedConfig *cfg) |
int | getDataRecordChunkSize (const struct EDFDecodedConfig *cfg) |
double | getSamplesPerSecond (const struct EDFDecodedConfig *cfg, int whichChan) |
double | getSecondsPerSample (const struct EDFDecodedConfig *cfg, int whichChan) |
int | isValidREDF (const struct EDFDecodedConfig *cfg) |
int | makeREDFConfig (struct EDFDecodedConfig *result, const struct EDFDecodedConfig *source) |
const char * | getLastError (void) |
const char * | getDMY (void) |
const char * | getHMS (void) |
|
Definition at line 33 of file openedf.h. Referenced by fetchSamples(), and getDataRecordChunkSize(). |
|
Definition at line 32 of file openedf.h. Referenced by doesMatchP2(), doesMatchP3(), eatCharacter(), idleHandler(), main(), readEDF(), readEDFString(), writeEDF(), and writeEDFString(). |
|
Definition at line 34 of file openedf.h. Referenced by main(). |
|
|
Definition at line 49 of file openedf.c. References EDFUnpackString(). |
|
Definition at line 44 of file openedf.c. References EDFUnpackString(). |
|
Definition at line 54 of file openedf.c. Referenced by EDFUnpackDouble(), and EDFUnpackInt(). |
|
Definition at line 294 of file openedf.c. References BYTESPERSAMPLE, EDFInputIterator::cfg, EDFDecodedConfig::chan, EDFInputIterator::dataRecord, EDFDecodedHeader::dataRecordChannels, EDFDecodedConfig::hdr, readDataRecord(), EDFDecodedChannelHeader::sampleCount, sampleCount, EDFInputIterator::sampleNum, and samples. Referenced by main(). |
|
Definition at line 261 of file openedf.c. References EDFInputIterator::dataRecord. Referenced by main(). |
|
Definition at line 240 of file openedf.c. References BYTESPERSAMPLE, cfg, EDFDecodedConfig::chan, EDFDecodedHeader::dataRecordChannels, EDFDecodedConfig::hdr, and EDFDecodedChannelHeader::sampleCount. Referenced by main(), newEDFInputIterator(), and readDataRecord(). |
|
Definition at line 338 of file openedf.c. References buf. Referenced by main(), and makeREDFConfig(). |
|
Definition at line 349 of file openedf.c. References buf. Referenced by main(), and makeREDFConfig(). |
|
|
|
Definition at line 235 of file openedf.c. References cfg, EDFDecodedConfig::chan, EDFDecodedHeader::dataRecordSeconds, EDFDecodedConfig::hdr, and EDFDecodedChannelHeader::sampleCount. Referenced by main(). |
|
Definition at line 230 of file openedf.c. References cfg, EDFDecodedConfig::chan, EDFDecodedHeader::dataRecordSeconds, EDFDecodedConfig::hdr, and EDFDecodedChannelHeader::sampleCount. |
|
Definition at line 312 of file openedf.c. References cfg, EDFDecodedConfig::chan, EDFDecodedHeader::dataRecordChannels, EDFDecodedConfig::hdr, EDFDecodedChannelHeader::sampleCount, and setLastError(). Referenced by makeREDFConfig(). |
|
Definition at line 367 of file openedf.c. References getDMY(), getHMS(), EDFDecodedConfig::hdr, isValidREDF(), EDFDecodedHeader::recordingStartDate, EDFDecodedHeader::recordingStartTime, and setEDFHeaderBytes(). Referenced by cmdSetHeader(), and main(). |
|
Definition at line 248 of file openedf.c. References cfg, and getDataRecordChunkSize(). Referenced by main(). |
|
Definition at line 204 of file openedf.c. References cfg, EDFDecodedConfig::chan, EDFDecodedHeader::dataRecordChannels, EDFDecodeChannelHeader(), EDFDecodeHeaderPreamble(), EDFDecodedConfig::hdr, EDFDecodedHeader::headerRecordBytes, MAXCHANNELS, and setEDFHeaderBytes(). Referenced by main(). |
|
Definition at line 145 of file openedf.c. References buf, cfg, EDFDecodedConfig::chan, EDFDecodedHeader::dataRecordChannels, EDFDecodeChannelHeader(), EDFDecodeHeaderPreamble(), EDFDecodedConfig::hdr, EDFDecodedHeader::headerRecordBytes, MAXCHANNELS, rprintf(), and setEDFHeaderBytes(). Referenced by cmdSetHeader(), and main(). |
|
Definition at line 198 of file openedf.c. References cfg, EDFDecodedHeader::dataRecordChannels, EDFDecodedConfig::hdr, and EDFDecodedHeader::headerRecordBytes. Referenced by main(), makeREDFConfig(), readEDF(), and readEDFString(). |
|
Definition at line 268 of file openedf.c. References EDFInputIterator::cfg, EDFDecodedConfig::chan, EDFInputIterator::dataRecordNum, EDFDecodedChannelHeader::sampleCount, and EDFInputIterator::sampleNum. Referenced by main(). |
|
Definition at line 184 of file openedf.c. References cfg, EDFEncodePacket(), EDFDecodedConfig::hdr, EDFDecodedHeader::headerRecordBytes, and MAXCHANNELS. Referenced by main(). |
|
Definition at line 167 of file openedf.c. References buf, cfg, EDFEncodePacket(), EDFDecodedConfig::hdr, EDFDecodedHeader::headerRecordBytes, and MAXCHANNELS. Referenced by cmdSetHeader(), and main(). |