1 /* 2 * Copyright (C) 2005 Meilhaus Electronic GmbH (support@meilhaus.de) 3 * 4 * Source File : meerror.h 5 * Author : GG (Guenter Gebhardt) <g.gebhardt@meilhaus.de> 6 * Author : KG (Krzysztof Gantzke) <k.gantzke@meilhaus.de> 7 */ 8 9 #ifndef _MEERROR_H_ 10 #define _MEERROR_H_ 11 12 extern char *meErrorMsgTable[]; 13 14 #define ME_ERRNO_SUCCESS 0 15 #define ME_ERRNO_INVALID_DEVICE 1 16 #define ME_ERRNO_INVALID_SUBDEVICE 2 17 #define ME_ERRNO_INVALID_CHANNEL 3 18 #define ME_ERRNO_INVALID_SINGLE_CONFIG 4 19 #define ME_ERRNO_INVALID_REF 5 20 #define ME_ERRNO_INVALID_TRIG_CHAN 6 21 #define ME_ERRNO_INVALID_TRIG_TYPE 7 22 #define ME_ERRNO_INVALID_TRIG_EDGE 8 23 #define ME_ERRNO_INVALID_TIMEOUT 9 24 #define ME_ERRNO_INVALID_FLAGS 10 25 #define ME_ERRNO_OPEN 11 26 #define ME_ERRNO_CLOSE 12 27 #define ME_ERRNO_NOT_OPEN 13 28 #define ME_ERRNO_INVALID_DIR 14 29 #define ME_ERRNO_PREVIOUS_CONFIG 15 30 #define ME_ERRNO_NOT_SUPPORTED 16 31 #define ME_ERRNO_SUBDEVICE_TYPE 17 32 #define ME_ERRNO_USER_BUFFER_SIZE 18 33 #define ME_ERRNO_LOCKED 19 34 #define ME_ERRNO_NOMORE_SUBDEVICE_TYPE 20 35 #define ME_ERRNO_TIMEOUT 21 36 #define ME_ERRNO_SIGNAL 22 37 #define ME_ERRNO_INVALID_IRQ_SOURCE 23 38 #define ME_ERRNO_THREAD_RUNNING 24 39 #define ME_ERRNO_START_THREAD 25 40 #define ME_ERRNO_CANCEL_THREAD 26 41 #define ME_ERRNO_NO_CALLBACK 27 42 #define ME_ERRNO_USED 28 43 #define ME_ERRNO_INVALID_UNIT 29 44 #define ME_ERRNO_INVALID_MIN_MAX 30 45 #define ME_ERRNO_NO_RANGE 31 46 #define ME_ERRNO_INVALID_RANGE 32 47 #define ME_ERRNO_SUBDEVICE_BUSY 33 48 #define ME_ERRNO_INVALID_LOCK 34 49 #define ME_ERRNO_INVALID_SWITCH 35 50 #define ME_ERRNO_INVALID_ERROR_MSG_COUNT 36 51 #define ME_ERRNO_INVALID_STREAM_CONFIG 37 52 #define ME_ERRNO_INVALID_CONFIG_LIST_COUNT 38 53 #define ME_ERRNO_INVALID_ACQ_START_TRIG_TYPE 39 54 #define ME_ERRNO_INVALID_ACQ_START_TRIG_EDGE 40 55 #define ME_ERRNO_INVALID_ACQ_START_TRIG_CHAN 41 56 #define ME_ERRNO_INVALID_ACQ_START_TIMEOUT 42 57 #define ME_ERRNO_INVALID_ACQ_START_ARG 43 58 #define ME_ERRNO_INVALID_SCAN_START_TRIG_TYPE 44 59 #define ME_ERRNO_INVALID_SCAN_START_ARG 45 60 #define ME_ERRNO_INVALID_CONV_START_TRIG_TYPE 46 61 #define ME_ERRNO_INVALID_CONV_START_ARG 47 62 #define ME_ERRNO_INVALID_SCAN_STOP_TRIG_TYPE 48 63 #define ME_ERRNO_INVALID_SCAN_STOP_ARG 49 64 #define ME_ERRNO_INVALID_ACQ_STOP_TRIG_TYPE 50 65 #define ME_ERRNO_INVALID_ACQ_STOP_ARG 51 66 #define ME_ERRNO_SUBDEVICE_NOT_RUNNING 52 67 #define ME_ERRNO_INVALID_READ_MODE 53 68 #define ME_ERRNO_INVALID_VALUE_COUNT 54 69 #define ME_ERRNO_INVALID_WRITE_MODE 55 70 #define ME_ERRNO_INVALID_TIMER 56 71 #define ME_ERRNO_DEVICE_UNPLUGGED 57 72 #define ME_ERRNO_USED_INTERNAL 58 73 #define ME_ERRNO_INVALID_DUTY_CYCLE 59 74 #define ME_ERRNO_INVALID_WAIT 60 75 #define ME_ERRNO_CONNECT_REMOTE 61 76 #define ME_ERRNO_COMMUNICATION 62 77 #define ME_ERRNO_INVALID_SINGLE_LIST 63 78 #define ME_ERRNO_INVALID_MODULE_TYPE 64 79 #define ME_ERRNO_INVALID_START_MODE 65 80 #define ME_ERRNO_INVALID_STOP_MODE 66 81 #define ME_ERRNO_INVALID_FIFO_IRQ_THRESHOLD 67 82 #define ME_ERRNO_INVALID_POINTER 68 83 #define ME_ERRNO_CREATE_EVENT 69 84 #define ME_ERRNO_LACK_OF_RESOURCES 70 85 #define ME_ERRNO_CANCELLED 71 86 #define ME_ERRNO_RING_BUFFER_OVERFLOW 72 87 #define ME_ERRNO_RING_BUFFER_UNDEFFLOW 73 88 #define ME_ERRNO_INVALID_IRQ_EDGE 74 89 #define ME_ERRNO_INVALID_IRQ_ARG 75 90 #define ME_ERRNO_INVALID_CAP 76 91 #define ME_ERRNO_INVALID_CAP_ARG_COUNT 77 92 #define ME_ERRNO_INTERNAL 78 93 94 /** New error for range check */ 95 #define ME_ERRNO_VALUE_OUT_OF_RANGE 79 96 #define ME_ERRNO_FIFO_BUFFER_OVERFLOW 80 97 #define ME_ERRNO_FIFO_BUFFER_UNDEFFLOW 81 98 99 #define ME_ERRNO_INVALID_ERROR_NUMBER 82 100 #endif 101