Go to the source code of this file.
SOURCES: lib/trig.c, lib/trig_par.c
LAST MODIFICATION DATE:
Definition in file gpiv-trig.h.
#define GPIV_MILI2NANO 1000 * 1000 |
Constant to convert from milli to nanseconds
Definition at line 95 of file gpiv-trig.h.
#define GPIV_NANO2MILI 0.001 * 0.001 |
Constant to convert from nano ro milliseconds
Definition at line 94 of file gpiv-trig.h.
#define GPIV_TRIGPAR_CAP_MAX 1000 |
Maximum value for cam_acq_period of __GpivTrigTime
Definition at line 86 of file gpiv-trig.h.
#define GPIV_TRIGPAR_CAP_MIN 100 |
Minimum value for cam_acq_period of __GpivTrigTime
Definition at line 78 of file gpiv-trig.h.
#define GPIV_TRIGPAR_CYCLES_MAX 1 |
Maximum value for cycles of __GpivTrigTime
Definition at line 91 of file gpiv-trig.h.
#define GPIV_TRIGPAR_CYCLES_MIN 1 |
Minimum value for cycles of __GpivTrigTime
Definition at line 83 of file gpiv-trig.h.
#define GPIV_TRIGPAR_DEFAULT__CAP 250 |
Default parameter for cam_acq_period of __GpivTrigTime
Definition at line 61 of file gpiv-trig.h.
#define GPIV_TRIGPAR_DEFAULT__CYCLES 1 |
Default parameter for cycles of __GpivTrigTime
Definition at line 66 of file gpiv-trig.h.
#define GPIV_TRIGPAR_DEFAULT__DT 10 |
Default parameter for dt of __GpivTrigTime
Definition at line 64 of file gpiv-trig.h.
#define GPIV_TRIGPAR_DEFAULT__INCR_DT 1 |
Default parameter for increment of __GpivTrigTime
Definition at line 67 of file gpiv-trig.h.
#define GPIV_TRIGPAR_DEFAULT__LPW 0.02 |
Default parameter for laser_trig_pw of __GpivTrigTime
Definition at line 62 of file gpiv-trig.h.
#define GPIV_TRIGPAR_DEFAULT__MODE 2 |
Default parameter for mode of __GpivTrigTime
Definition at line 65 of file gpiv-trig.h.
#define GPIV_TRIGPAR_DEFAULT__T2L 0.19 |
Default parameter for time2laser of __GpivTrigTime
Definition at line 63 of file gpiv-trig.h.
#define GPIV_TRIGPAR_DT_MAX 100 |
Maximum value for dt of __GpivTrigTime
Definition at line 89 of file gpiv-trig.h.
#define GPIV_TRIGPAR_DT_MIN 0.10 |
Minimum value for dt of __GpivTrigTime
Definition at line 81 of file gpiv-trig.h.
#define GPIV_TRIGPAR_INCR_DT_MAX 20 |
Maximum value for increment of __GpivTrigTime
Definition at line 92 of file gpiv-trig.h.
#define GPIV_TRIGPAR_INCR_DT_MIN 0.01 |
Minimum value for increment of __GpivTrigTime
Definition at line 84 of file gpiv-trig.h.
#define GPIV_TRIGPAR_KEY "TRIG" |
Key of trigger parameters
Definition at line 69 of file gpiv-trig.h.
#define GPIV_TRIGPAR_KEY__CAP "Ttime_cap" |
Key for cam_acq_period of __GpivTrigTime
Definition at line 70 of file gpiv-trig.h.
#define GPIV_TRIGPAR_KEY__CYCLES "Ttime_cycles" |
Key for cycles of __GpivTrigTime
Definition at line 75 of file gpiv-trig.h.
#define GPIV_TRIGPAR_KEY__DT "Ttime_dt" |
Key for dt of __GpivTrigTime
Definition at line 73 of file gpiv-trig.h.
#define GPIV_TRIGPAR_KEY__INCR_DT "Ttime_incr_dt" |
Key for increment of __GpivTrigTime
Definition at line 76 of file gpiv-trig.h.
#define GPIV_TRIGPAR_KEY__LPW "Ttime_lpw" |
Key for laser_trig_pw of __GpivTrigTime
Definition at line 71 of file gpiv-trig.h.
#define GPIV_TRIGPAR_KEY__MODE "Ttime_mode" |
Key for mode of __GpivTrigTime
Definition at line 74 of file gpiv-trig.h.
#define GPIV_TRIGPAR_KEY__T2L "Ttime_t2l" |
Key for time2laser of __GpivTrigTime
Definition at line 72 of file gpiv-trig.h.
#define GPIV_TRIGPAR_LPW_MAX 0.02 |
Maximum value for laser_trig_pw of __GpivTrigTime
Definition at line 87 of file gpiv-trig.h.
#define GPIV_TRIGPAR_LPW_MIN 0.02 |
Minimum value for laser_trig_pw of __GpivTrigTime
Definition at line 79 of file gpiv-trig.h.
#define GPIV_TRIGPAR_MODE_MAX 6 |
Maximum value for mode of __GpivTrigTime
Definition at line 90 of file gpiv-trig.h.
#define GPIV_TRIGPAR_MODE_MIN 1 |
Minimum value for mode of __GpivTrigTime
Definition at line 82 of file gpiv-trig.h.
#define GPIV_TRIGPAR_T2L_MAX 0.19 |
Maximum value for time2laser of __GpivTrigTime
Definition at line 88 of file gpiv-trig.h.
#define GPIV_TRIGPAR_T2L_MIN 0.19 |
Minimum value for time2laser of __GpivTrigTime
Definition at line 80 of file gpiv-trig.h.
typedef struct __GpivTrigPar GpivTrigPar |
Definition at line 148 of file gpiv-trig.h.
typedef struct __GpivTrigTime GpivTrigTime |
Definition at line 126 of file gpiv-trig.h.
enum GpivFifo |
Fifo values
GPIV_FIFO_TIMING_PARAMETER | |
GPIV_FIFO_START_COMMAND | |
GPIV_FIFO_STOP_COMMAND | |
GPIV_FIFO_ERROR | |
GPIV_FIFO_JITTER |
Definition at line 102 of file gpiv-trig.h.
enum GpivTimingMode |
Operating mode
GPIV_TIMER_MODE__PERIODIC | Indefinite until interrupted |
GPIV_TIMER_MODE__DURATION | During specific amount of cycles |
GPIV_TIMER_MODE__ONE_SHOT_IRQ | Check. Single shot after irq signal |
GPIV_TIMER_MODE__TRIGGER_IRQ | Check. Trigger on irq signal |
GPIV_TIMER_MODE__INCREMENT | Incremented __GpivTrigTime::dt |
GPIV_TIMER_MODE__DOUBLE | Check. Double exposure |
Definition at line 113 of file gpiv-trig.h.
gchar* gpiv_trig_check_parameters_read | ( | GpivTrigPar * | trig_par, | |
const GpivTrigPar * | trig_par_default | |||
) |
Check out if all GpivTrigPar parameters have been read.
[in] | trig_par_default | default trigger parameters |
[out] | trig_par | trigger parameters |
void gpiv_trig_default_parameters | ( | GpivTrigPar * | trig_par_default, | |
const gboolean | force | |||
) |
Sets default GpivTrigPar parameter values.
[in] | force | flag to enforce parameters set to defaults |
[out] | trig_par_default | structure of triggering parameters |
gint gpiv_trig_openrtfs | ( | gint * | init, | |
gint * | trig, | |||
gint * | stop, | |||
gint * | error | |||
) |
Opens communication channels to camlasco-rtl kernel module.
[in] | init | initialization or uploading of trigger parameters |
[in] | trig | trigger signel |
[in] | stop | stop signal |
[in] | error | error signal |
void gpiv_trig_parameters_set | ( | GpivTrigPar * | trig_par, | |
const gboolean | flag | |||
) |
Sets flags for __set variables of GpivTrigPar.
[in] | flag | flag to be set |
[out] | trig_par | triggering parameters |
void gpiv_trig_print_parameters | ( | FILE * | fp_par_out, | |
const GpivTrigPar * | trig_par | |||
) |
Prints GpivTrigPar parameters to fp_par_out.
[in] | fp_par_out | output file |
[in] | trig_par | triggering parameters |
void gpiv_trig_read_parameters | ( | FILE * | fp_par, | |
GpivTrigPar * | trig_par, | |||
const gboolean | verbose | |||
) |
Read all GpivTrigPar parameters.
[in] | fp_par | file pointer to parameter file |
[out] | trig_par | triggering parameters |
[in] | verbose | flag to print parametrs to stdout |
gchar* gpiv_trig_test_parameter | ( | const GpivTrigPar * | trig_par | ) |
Testing GpivTrigPar parameters on valid values.
[in] | trig_par | trigger parameters |
[out] | trig_par | trigger parameters |