00001 00012 #ifndef BPMCALIBRATION_H__ 00013 #define BPMCALIBRATION_H__ 00014 00015 /* ----------------------------------------------------------------------------- 00016 // includes 00017 // -------------------------------------------------------------------------- */ 00018 #include <math.h> 00019 #include <bpm/bpm_defs.h> 00020 #include <bpm/bpm_interface.h> 00021 00022 /* ----------------------------------------------------------------------------- 00023 // macro definitions 00024 // -------------------------------------------------------------------------- */ 00025 00026 /* ----------------------------------------------------------------------------- 00027 // typedefs, enums and other declarations 00028 // -------------------------------------------------------------------------- */ 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 /* ----------------------------------------------------------------------------- 00034 // function prototypes and declarations 00035 // -------------------------------------------------------------------------- */ 00036 00066 EXTERN int setup_calibration( bpmconf_t *cnf, bpmproc_t *proc, int npulses, int startpulse, 00067 int stoppulse, double angle, double startpos, double endpos, 00068 int num_steps, bunchconf_t *bunch ); 00069 00070 00089 EXTERN int calibrate( bpmconf_t *bpm, bunchconf_t *bunch, bpmproc_t *proc, int npulses, 00090 bpmcalib_t *cal ); 00091 00092 00093 #ifdef __cplusplus 00094 } 00095 #endif 00096 00097 #endif /* #ifndef BPMCALIBRATION_H__ */ 00098 00099 /* ================================ end of file ============================= */