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


Calibration Information Structures

The cal argument for getcal and putcal is a pointer to an object of type DB_Calinfo. A DB_Calinfo object contains information about signals of a specified type:

char *sigtype
a pointer to a null-terminated string without embedded tabs or newlines. This field describes the type(s) of signals to which the calibration specifications apply. Usually, sigtype is an exact match to (or a prefix of) the desc field of the DB_Siginfo object that describes a matching signal.
char *units
a pointer to a null-terminated string without embedded whitespace. This field specifies the physical units of signals to which the calibration specifications apply. Usually, the units field of a DB_Calinfo structure must exactly match the units field of the DB_Siginfo structure that describes a matching signal.
double scale
the customary plotting scale, in physical units per centimeter. DB applications that produce graphical output may use scale as a default. Except in unusual circumstances, signals of different types should be plotted at equal multiples of their respective scales.
double low
double high
values (in physical units) corresponding to the low and high levels of a calibration pulse. If the signal is AC-coupled (see below), low is zero, and high is the pulse amplitude.
int caltype
a small integer that specifies the shape of the calibration pulse (see `<ecg/db.h>' for definitions). caltype is even if signals of the corresponding sigtype are AC-coupled, and odd if they are DC-coupled.

The calibration list is a memory-resident linked list of DB_Calinfo structures. It is accessible only via calopen, getcal, putcal, newcal, and flushcal.


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



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