command: Fix except declaration for get_comedi_cmd_pointer
[pycomedi.git] / pycomedi / calibration.pxd
1 # Copyright (C) 2011-2012 W. Trevor King <wking@tremily.us>
2 #
3 # This file is part of pycomedi.
4 #
5 # pycomedi is free software: you can redistribute it and/or modify it under the
6 # terms of the GNU General Public License as published by the Free Software
7 # Foundation, either version 2 of the License, or (at your option) any later
8 # version.
9 #
10 # pycomedi is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License along with
15 # pycomedi.  If not, see <http://www.gnu.org/licenses/>.
16
17 "Expose `CalibratedConverter` internals at the C level for other Cython modules"
18
19 from pycomedi cimport _comedilib_h
20
21
22 cdef class CalibratedConverter (object):
23     cdef _comedilib_h.comedi_polynomial_t _to_physical, _from_physical
24     cdef object _from_physical_error
25
26     cdef _str_poly(self, _comedilib_h.comedi_polynomial_t polynomial)
27     cpdef to_physical(self, data)
28     cpdef from_physical(self, data)
29     cpdef get_to_physical_expansion_origin(self)
30     cpdef get_to_physical_coefficients(self)
31     cpdef get_from_physical_expansion_origin(self)
32     cpdef get_from_physical_coefficients(self)
33
34
35 cdef class Caldac (object):
36     cdef _comedilib_h.comedi_caldac_t *caldac
37     cdef bint _local
38
39
40 cdef class CalibrationSetting (object):
41     cdef _comedilib_h.comedi_calibration_setting_t *setting
42     cdef public object subdevice  # pycomedi.subdevice.Subdevice
43
44     cdef _caldacs_set_single(self, index, Caldac caldac)
45     cpdef _soft_calibration_set(self, CalibratedConverter value)
46
47
48 cdef class Calibration (object):
49     cdef _comedilib_h.comedi_calibration_t *calibration
50     cdef public object device  # pycomedi.device.Device
51
52     cpdef from_file(self, path)