Debian Codegraph @

comedi-calibrate/libcomedi_calibrate/comedi_calibrate_shared.h

raw
1 /***************************************************************************
2 * *
3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU Lesser General Public License as *
5 * published by *
6 * the Free Software Foundation; either version 2.1 of the License, or *
7 * (at your option) any later version. *
8 * *
9 ***************************************************************************/
10
11 #ifndef __COMEDI_CALIBRATE_SHARED_H_
12 #define __COMEDI_CALIBRATE_SHARED_H_
13
14 #include <comedilib.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 /* saving calibrations to file */
21 static const int SC_ALL_CHANNELS = -1;
22 static const int SC_ALL_RANGES = -1;
23 static const int SC_ALL_AREFS = -1;
24
25 int write_calibration_file(const char *file_path, const comedi_calibration_t *calibration);
26 comedi_calibration_setting_t* sc_alloc_calibration_setting(comedi_calibration_t *calibration);
27 void sc_push_caldac(comedi_calibration_setting_t *saved_cal, comedi_caldac_t caldac);
28 void sc_push_channel(comedi_calibration_setting_t *saved_cal, int channel);
29 void sc_push_range(comedi_calibration_setting_t *saved_cal, int range);
30 void sc_push_aref(comedi_calibration_setting_t *saved_cal, int aref);
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif //COMEDI_CALIBRATE_SHARED
37