EDFlib
Loading...
Searching...
No Matches
Data Fields
edf_hdr_struct Struct Reference

#include <edflib.h>

Data Fields

int handle
 
int filetype
 
int edfsignals
 
long long file_duration
 
int startdate_day
 
int startdate_month
 
int startdate_year
 
long long starttime_subsecond
 
int starttime_second
 
int starttime_minute
 
int starttime_hour
 
char patient [81]
 
char recording [81]
 
char patientcode [81]
 
char sex [16]
 
char gender [16]
 
char birthdate [16]
 
int birthdate_day
 
int birthdate_month
 
int birthdate_year
 
char patient_name [81]
 
char patient_additional [81]
 
char admincode [81]
 
char technician [81]
 
char equipment [81]
 
char recording_additional [81]
 
long long datarecord_duration
 
long long datarecords_in_file
 
long long annotations_in_file
 
edflib_param_t signalparam [EDFLIB_MAXSIGNALS]
 

Detailed Description

This structure contains the general header info and parameters. It will be filled when calling the function edfopen_file_readonly().

Field Documentation

◆ handle

int edf_hdr_struct::handle

A handle (identifier) used to distinguish the different files or -1 in case of an error.

◆ filetype

int edf_hdr_struct::filetype

0: EDF, 1: EDF+, 2: BDF, 3: BDF+, a negative number indicates an error code.

◆ edfsignals

int edf_hdr_struct::edfsignals

Number of signals in the file, annotation channels are not included.

◆ file_duration

long long edf_hdr_struct::file_duration

Duration of the file expressed in units of 100 nanoseconds.

◆ startdate_day

int edf_hdr_struct::startdate_day

Startdate: day: 1 - 31

◆ startdate_month

int edf_hdr_struct::startdate_month

Startdate: month: 1 - 12

◆ startdate_year

int edf_hdr_struct::startdate_year

Startdate: year: 1985 - 2084

◆ starttime_subsecond

long long edf_hdr_struct::starttime_subsecond

Starttime subsecond expressed in units of 100 nanoseconds. Is always less than 10000000 (one second). Only used by EDF+ and BDF+.

◆ starttime_second

int edf_hdr_struct::starttime_second

Starttime: second: 0 - 59

◆ starttime_minute

int edf_hdr_struct::starttime_minute

Starttime: minute: 0 - 59

◆ starttime_hour

int edf_hdr_struct::starttime_hour

Starttime: hour: 0 - 23

◆ patient

char edf_hdr_struct::patient[81]

Null-terminated string, contains patient field of header, is always empty when filetype is EDFPLUS or BDFPLUS.

◆ recording

char edf_hdr_struct::recording[81]

Null-terminated string, contains recording field of header, is always empty when filetype is EDFPLUS or BDFPLUS.

◆ patientcode

char edf_hdr_struct::patientcode[81]

Null-terminated string, is always empty when filetype is EDF or BDF.

◆ sex

char edf_hdr_struct::sex[16]

Null-terminated string, is always empty when filetype is EDF or BDF.

◆ gender

char edf_hdr_struct::gender[16]

Deprecated, use sex.

◆ birthdate

char edf_hdr_struct::birthdate[16]

Null-terminated string, is always empty when filetype is EDF or BDF.

◆ birthdate_day

int edf_hdr_struct::birthdate_day

Birthdate: day: 1 - 31 (zero in case of EDF or BDF).

◆ birthdate_month

int edf_hdr_struct::birthdate_month

Birthdate: month: 1 - 12 (zero in case of EDF or BDF).

◆ birthdate_year

int edf_hdr_struct::birthdate_year

Birthdate: year: 1800 - 3000 (zero in case of EDF or BDF).

◆ patient_name

char edf_hdr_struct::patient_name[81]

Null-terminated string, is always empty when filetype is EDF or BDF.

◆ patient_additional

char edf_hdr_struct::patient_additional[81]

Null-terminated string, is always empty when filetype is EDF or BDF.

◆ admincode

char edf_hdr_struct::admincode[81]

Null-terminated string, is always empty when filetype is EDF or BDF.

◆ technician

char edf_hdr_struct::technician[81]

Null-terminated string, is always empty when filetype is EDF or BDF.

◆ equipment

char edf_hdr_struct::equipment[81]

Null-terminated string, is always empty when filetype is EDF or BDF.

◆ recording_additional

char edf_hdr_struct::recording_additional[81]

Null-terminated string, is always empty when filetype is EDF or BDF.

◆ datarecord_duration

long long edf_hdr_struct::datarecord_duration

Duration of a datarecord expressed in units of 100 nanoseconds.

◆ datarecords_in_file

long long edf_hdr_struct::datarecords_in_file

Number of datarecords in the file.

◆ annotations_in_file

long long edf_hdr_struct::annotations_in_file

Number of annotations/events/triggers in the file.

◆ signalparam

edflib_param_t edf_hdr_struct::signalparam[EDFLIB_MAXSIGNALS]

array of structs containing the signal parameters.


The documentation for this struct was generated from the following file: