diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-01 16:24:15 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-01 16:24:15 +0200 |
commit | a30ba67504ffd12c4db499adbb5ce47a7d1f6036 (patch) | |
tree | 9ae1a7e3849dda6bbb5c578232f6f2fa5b2e7e7e /spectro/munki_imp.h | |
parent | 89e99e8a827859729729dfc92d74be4a8f96f1a4 (diff) | |
parent | 094535c010320967639e8e86f974d878e80baa72 (diff) |
New release 1.7.0
Diffstat (limited to 'spectro/munki_imp.h')
-rw-r--r-- | spectro/munki_imp.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/spectro/munki_imp.h b/spectro/munki_imp.h index 6af366e..ea9451f 100644 --- a/spectro/munki_imp.h +++ b/spectro/munki_imp.h @@ -164,6 +164,8 @@ struct _munkiimp { volatile int th_termed; /* Thread has terminated */ inst_opt_type trig; /* Reading trigger mode */ int noinitcalib; /* Disable initial calibration if not essential */ + int nocalibask; /* Disable asking user to proceed with calibration */ + /* even when the instrument is in correct configuration */ int nosposcheck; /* Disable checking the sensor position */ int highres; /* High resolution mode */ int hr_inited; /* High resolution has been initialized */ @@ -291,6 +293,9 @@ struct _munkiimp { volatile int spos_change; /* counter that increments on an spos event change */ unsigned int spos_msec; /* Time when spos last changes */ + volatile double whitestamp; /* meas_delay() white timestamp */ + volatile double trigstamp; /* meas_delay() trigger timestamp */ + }; typedef struct _munkiimp munkiimp; /* Add an implementation structure */ @@ -432,9 +437,12 @@ munki_code munki_imp_meas_refrate( /* Measure the display update delay */ munki_code munki_imp_meas_delay( - munki *p, - int *msecdelay -); +munki *p, +int *pdispmsec, +int *pinstmsec); + +/* Timestamp the white patch change during meas_delay() */ +inst_code munki_imp_white_change(munki *p, int init); /* return nz if high res is supported */ int munki_imp_highres(munki *p); @@ -622,7 +630,7 @@ munki_code munki_trialmeasure( /* level "calibrate" and "take reading" functions. */ /* The setup for the operation is in the current mode state. */ /* The called then needs to call munki_readmeasurement() */ -munki_code +static munki_code munki_trigger_one_measure( munki *p, int nummeas, /* Number of measurements to make */ @@ -813,6 +821,9 @@ munki_code munki_create_hr(munki *p, int ref); /* Set the noinitcalib mode */ void munki_set_noinitcalib(munki *p, int v, int losecs); +/* Set the nocalibask mode */ +void munki_set_nocalibask(munki *p, int v); + /* Set the trigger config */ void munki_set_trig(munki *p, inst_opt_type trig); @@ -933,7 +944,7 @@ munki_triggermeasure( ); /* Read a measurements results */ -munki_code +static munki_code munki_readmeasurement( munki *p, int inummeas, /* Initial number of measurements to expect */ |