![]() |
RTXI 1.3
|
00001 /* 00002 comedi_errno.h 00003 header file for comedi's symbolic error names 00004 00005 COMEDI - Linux Control and Measurement Device Interface 00006 Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org> 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU Lesser General Public License as 00010 ublished by the Free Software Foundation; either version 2 of the 00011 License, or (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this program; if not, write to the Free Software 00020 Foundation, Inc., 59 Temple Place, Suite 330, Cambridge, MA 02111, USA. 00021 00022 */ 00023 00024 #ifndef _COMEDI_ERRNO_H 00025 #define _COMEDI_ERRNO_H 00026 00027 #ifdef __KERNEL__ 00028 #include <linux/errno.h> 00029 #else 00030 #include <errno.h> 00031 #endif 00032 00033 // define symbolic error names, extensions peculiar to comedi 00034 #define COMEDI_NOERROR 0x1000 00035 00036 #define EUNKNOWN (COMEDI_NOERROR + 1) // unknown error 00037 #define EBAD_CT (COMEDI_NOERROR + 2) // bad comedi_t struct 00038 #define EINVAL_SUBD (COMEDI_NOERROR + 3) // invalid subdevice 00039 #define EINVAL_CHAN (COMEDI_NOERROR + 4) // invalid channel 00040 #define EBUF_OVR (COMEDI_NOERROR + 5) // buffer overflow 00041 #define EBUF_UNDR (COMEDI_NOERROR + 6) // buffer underflow 00042 #define ECMDNOTSUPP (COMEDI_NOERROR + 7) // command not supported 00043 #define ENOTSUPPORTED (COMEDI_NOERROR + 8) // not supported 00044 00045 #endif // _COMEDI_ERRNO_H