-# Copyright (C) 2008-2011 W. Trevor King
+# Copyright (C) 2008-2012 W. Trevor King <wking@drexel.edu>
#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+# This file is part of pycomedi.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"A Pythonic wrapper around Comedilib"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Cython interface to comedi.h"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Cython interface to comedilib.h"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Useful error checking wrappers around Comedilib function calls"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Expose `CalibratedConverter` internals at the C level for other Cython modules"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"""Pythonic wrappers for converting between Comedilib and physical units
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Wrap channel-wide Comedi functions in `Channel` and related classes"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Replace Comedi's CR_PACK and related macros with a Python class"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Expose `Command` internals at the C level for other Cython modules"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Wrap Comedi's `comedi_cmd` struct in the `Command` class"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Expose `BitwiseOperator` internals at the C level for other Cython modules"
-# Copyright (C) 2010 W. Trevor King
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+# This file is part of pycomedi.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"""Enums and flags are bundled into class instances for easier browsing
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Expose `Device` internals at the C level for other Cython modules"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Wrap device-wide Comedi functions in a `Device` class"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Expose `Insn` internals at the C level for other Cython modules"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Wrap Comedi's `comedi_insn` struct in the `Insn` class"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Wrap library-wide Comedi functions in a `Device` class"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Expose `Range` internals at the C level for other Cython modules"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Wrap `comedi_range` in a Python class"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Expose `Subdevice` internals at the C level for other Cython modules"
-# Copyright
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Wrap subdevice-wide Comedi functions in `Subdevice` and related classes"
-# Copyright (C) 2010 W. Trevor King
+# Copyright (C) 2011-2012 W. Trevor King <wking@drexel.edu>
#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+# This file is part of pycomedi.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"Useful utility functions and classes"
-# Copyright
+# Copyright (C) 2008-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pycomedi.
+#
+# pycomedi is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 2 of the License, or (at your
+# option) any later version.
+#
+# pycomedi is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"An object-oriented interface for the Comedi drivers."
#!/usr/bin/python
#
-# Copyright (C) 2009-2012 W. Trevor King <wking@drexel.edu>
+# Copyright (C) 2012 W. Trevor King <wking@drexel.edu>
#
-# This file is part of Bugs Everywhere.
+# This file is part of pycomedi.
#
-# Bugs Everywhere is free software; you can redistribute it and/or modify it
+# pycomedi is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 2 of the License, or (at your
# option) any later version.
#
-# Bugs Everywhere is distributed in the hope that it will be useful, but
+# pycomedi is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with Bugs Everywhere. If not, see <http://www.gnu.org/licenses/>.
+# along with pycomedi. If not, see <http://www.gnu.org/licenses/>.
"""Automatically update copyright boilerplate.