2009-07-10 17:07:44 -04:00
|
|
|
#ifndef ZOOM_H
|
|
|
|
#define ZOOM_H
|
|
|
|
|
2009-07-10 17:33:46 -04:00
|
|
|
#define ZOOM_SWEEP_COUNT 4000
|
2009-07-10 17:07:44 -04:00
|
|
|
|
2009-10-14 15:30:36 -04:00
|
|
|
/* debug mode */
|
2009-10-06 16:03:25 -04:00
|
|
|
int zoom_init_real(int fd, int dozero);
|
|
|
|
#define zoom_init(fd) zoom_init_real(fd, 1)
|
|
|
|
#define zoom_init_nozero(fd) zoom_init_real(fd, 0)
|
2009-07-10 17:07:44 -04:00
|
|
|
int zoom_zero_start(int fd);
|
|
|
|
int zoom_zero_stop(int fd);
|
|
|
|
int zoom_sweep(int fd, int dac[ZOOM_SWEEP_COUNT], int adc[ZOOM_SWEEP_COUNT]);
|
2010-07-08 17:27:49 -04:00
|
|
|
int zoom_write_dac(int fd, int dac);
|
2009-07-10 17:07:44 -04:00
|
|
|
|
2009-10-14 15:30:36 -04:00
|
|
|
/* run mode */
|
|
|
|
void zoomrun_trigger_calibrate(int fd);
|
|
|
|
|
2009-07-10 17:07:44 -04:00
|
|
|
#endif
|
|
|
|
|