Main Page
Classes
Files
File List
File Members
src
ComDef
IOErrors.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012 SCHUNK GmbH & Co. KG
3
* Copyright (c) 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef IOERRORS_H
19
#define IOERRORS_H
20
21
// IO Device Types
22
23
#define TYPEID_IO_UNDEFINED 0
24
#define TYPEID_IO_MAGELLAN 1
25
#define TYPEID_IO_SPACEMASTER 2
26
#define TYPEID_IO_METROLOGIC 3
27
#define TYPEID_IO_MODULEIO 4
28
#define TYPEID_IO_EMSMODULE 5
29
#define TYPEID_IO_DLRFTS 6
30
#define TYPEID_IO_SICK0D50 7
31
#define TYPEID_IO_COMPUTERBOARDS 8
32
#define TYPEID_IO_NI6527 9
33
#define TYPEID_IO_ME96 10
34
#define TYPEID_IO_MP55IO 11
35
#define TYPEID_IO_SCHUNKFTC 12
36
#define TYPEID_IO_DIRECTMOUSE 13
37
#define TYPEID_IO_DIRECTJOYSTICK 14
38
#define TYPEID_IO_DIRECTKEYBOARD 15
39
40
// IO Device EMS Types
41
42
#define TYPEID_EMS_DIG24V_OUT 10
43
#define TYPEID_EMS_DIG24V_IN 11
44
#define TYPEID_EMS_ANA10V_OUT 12
45
#define TYPEID_EMS_ANA10V_IN 13
46
#define TYPEID_EMS_ANA25MA_OUT 14
47
#define TYPEID_EMS_ANA25MA_IN 15
48
49
// IO Device Channel Types
50
51
#define CHANNELTYPEID_IO_READ 20 // undefined type
52
#define CHANNELTYPEID_IO_BOOLREAD 21
53
#define CHANNELTYPEID_IO_CHARREAD 22
54
#define CHANNELTYPEID_IO_INTREAD 23
55
#define CHANNELTYPEID_IO_FLOATREAD 24
56
#define CHANNELTYPEID_IO_STRINGREAD 25
57
58
#define CHANNELTYPEID_IO_WRITE 30 // undefined type for checking read/write
59
#define CHANNELTYPEID_IO_BOOLWRITE 31
60
#define CHANNELTYPEID_IO_CHARWRITE 32
61
#define CHANNELTYPEID_IO_INTWRITE 33
62
#define CHANNELTYPEID_IO_FLOATWRITE 34
63
#define CHANNELTYPEID_IO_STRINGWRITE 35
64
65
// IO Device Errors
66
67
#define ERRID_IO (-400L) // io error
68
#define ERRID_IO_FUNCTIONNOTAVAILABLE (ERRID_IO - 1)
69
#define ERRID_IO_NOINITSTRING (ERRID_IO - 2)
70
#define ERRID_IO_NOIONAME (ERRID_IO - 3)
71
#define ERRID_IO_BADINITSTRING (ERRID_IO - 4)
72
#define ERRID_IO_INITERROR (ERRID_IO - 5)
73
#define ERRID_IO_ISINITIALIZED (ERRID_IO - 6)
74
#define ERRID_IO_NOTINITIALIZED (ERRID_IO - 7)
75
#define ERRID_IO_WRONGIOID (ERRID_IO - 8)
76
#define ERRID_IO_WRONGCHANNELTYPEID (ERRID_IO - 9)
77
#define ERRID_IO_WRONGCHANNELID (ERRID_IO - 10)
78
#define ERRID_IO_WRONGCHANNELTYPE (ERRID_IO - 11)
79
#define ERRID_IO_WRITEERROR (ERRID_IO - 12)
80
#define ERRID_IO_READERROR (ERRID_IO - 13)
81
#define ERRID_IO_WRONGCREATETHREAD (ERRID_IO - 14)
82
#define ERRID_IO_NOLIBRARY (ERRID_IO - 15)
83
#define ERRID_IO_CONNECTIONNOTINIT (ERRID_IO - 16)
84
#define ERRID_IO_PARSERERROR (ERRID_IO - 17)
85
86
#endif
schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Mon Nov 25 2019 03:48:19