1 # Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
3 # This file is part of pycomedi.
5 # pycomedi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation, either version 2 of the License, or (at your
8 # option) any later version.
10 # pycomedi is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
18 "Expose `CalibratedConverter` internals at the C level for other Cython modules"
23 cdef class CalibratedConverter (object):
24 cdef _comedilib_h.comedi_polynomial_t _to_physical, _from_physical
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)