Go to the first, previous, next, last section, table of contents.


Data Types

Simple data types used by the DB library are defined in `<ecg/db.h>'. These include:

DB_Sample
a signed integer type (at least 16 bits) used to represent sample values, in units of adus.
DB_Time
a signed integer type (at least 32 bits) used to represent times and time intervals, in units of sample intervals. Only the magnitude is significant; the sign of a DB_Time variable indicates how it is to be printed by timstr or mstimstr.
DB_Date
a signed integer type (at least 32 bits) used to represent Julian dates, in units of days.
DB_Frequency
a floating point type used to represent sampling and counter frequencies, in units of Hz.
DB_Gain
a floating point type used to represent signal gains, in units of adus per physical unit.
DB_Group
an unsigned integer type used to represent signal group numbers.
DB_Signal
an unsigned integer type used to represent signal numbers.
DB_Annotator
an unsigned integer type used to represent annotator numbers.

Composite data types used by the DB library are also defined in `<ecg/db.h>'. These types, described in detail in the following sections, include:

DB_Siginfo
an object containing the name and global attributes of a given signal.
DB_Calinfo
an object containing calibration specifications for signals of a given type.
DB_Anninfo
an object containing the name and attributes of a given annotator.
DB_Annotation
an object describing one or more attributes of one or more signals at a given time.

Until DB library version 8.2, these types were known as struct siginfo, struct calinfo, struct anninfo, and struct ann respectively. Except under Solaris (which has its own definition for siginfo), these older names are still defined in `<ecg/db.h>', but their use is discouraged.


Go to the first, previous, next, last section, table of contents.



George B. Moody (george@hstbme.mit.edu)