neMESYS SDK  20150729
err_codes.h File Reference

Common error code definitions for error handling. More...

Macros

#define ERR_ABORT   0x0200
 user aborted something
 
#define ERR_ACCES   0x012D
 Permission denied.
 
#define ERR_ADDRINUSE   0x014A
 Address already in use.
 
#define ERR_ADDRNOTAVAIL   0x014B
 Can't assign requested address.
 
#define ERR_AFNOSUPPORT   0x0149
 Address family not supported by. More...
 
#define ERR_AGAIN   0x000B
 Try again later.
 
#define ERR_ALREADY   0x0137
 Operation already in progress.
 
#define ERR_APP   0x8000
 application specific errors start here
 
#define ERR_BADF   0x0009
 Bad file handle.
 
#define ERR_BUSY   0x0010
 Resource busy.
 
#define ERR_CANO_CAL   0x0340
 CAN application layer error.
 
#define ERR_CANO_CAL_NO_DEVICES   0x0341
 no devices detected on bus
 
#define ERR_CANO_DEVPROF   0x0600
 device profile specific errors
 
#define ERR_CANO_DLL   0x0300
 Data link layer error.
 
#define ERR_CANO_DLL_ARBITRATION_LOST   0x030A
 arbitration lost - this is not really an error, its more an event
 
#define ERR_CANO_DLL_BUS_OFF   0x0306
 CAN "bus off" error occurred.
 
#define ERR_CANO_DLL_CAN_ERR   0x0309
 a CAN bit or frame error occurred
 
#define ERR_CANO_DLL_CFG   0x0315
 Configuration of device failed or configuration not supported.
 
#define ERR_CANO_DLL_ERR_PASSIVE   0x0305
 CAN "error passive" occurred.
 
#define ERR_CANO_DLL_HW_NOT_AVAILABLE   0x0312
 if CAN hardware is detected but could not be used or initialized
 
#define ERR_CANO_DLL_HW_NOT_FOUND   0x0311
 if CAN hardware could not be found - i.e. when detecting USB devices
 
#define ERR_CANO_DLL_HWERR   0x0301
 hardware error of CAN controller
 
#define ERR_CANO_DLL_HWSWERR   0x030E
 Function could not be performed because of hard- or software errors.
 
#define ERR_CANO_DLL_OVERRUN_RX   0x0307
 overrun in RX queue or hardware occurred
 
#define ERR_CANO_DLL_OVERRUN_TX   0x0308
 overrun in TX queue occurred
 
#define ERR_CANO_DLL_PARA   0x0314
 Calling parameter(s) is (are) not correct or out of range.
 
#define ERR_CANO_DLL_PHY_FAULT   0x030B
 General failure of physical layer detected (if supported by hardware)
 
#define ERR_CANO_DLL_PHY_H_FAULT   0x030C
 Fault on CAN-H detected (Low Speed CAN)
 
#define ERR_CANO_DLL_PHY_L_FAULT   0x030D
 Fault on CAN-L detected (Low Speed CAN)
 
#define ERR_CANO_DLL_RES   0x030F
 Resource error - The resource limit exceeded at creation of a queue or something else.
 
#define ERR_CANO_DLL_RXQUEUE_EMPTY   0x0316
 no message received because RX queue of controller is empty
 
#define ERR_CANO_DLL_SUPP   0x0313
 function is not supported this way
 
#define ERR_CANO_DLL_TX   0x0310
 A CAN message couldn't be sent for a long time - cable error, wrong baud rate etc.
 
#define ERR_CANO_DLL_TXFULL   0x0302
 TX queue of CAN controller is full.
 
#define ERR_CANO_DLL_WARNING_RX   0x0303
 TX error counter (TEC) reached warning level (>96)
 
#define ERR_CANO_DLL_WARNING_TX   0x0304
 RX error counter (REC) reached warning level (>96)
 
#define ERR_CANO_SDO   0x0400
 SDO transfer errors.
 
#define ERR_CANO_SDO_ABORT   0x0401
 SDO transfer aborted.
 
#define ERR_CANO_SDO_ABORT_BLOCK_SIZE   0x0405
 invalid block size in block mode
 
#define ERR_CANO_SDO_ABORT_CMD   0x0404
 command specifier not valid or unknown
 
#define ERR_CANO_SDO_ABORT_CRC   0x0407
 CRC error (block mode only)
 
#define ERR_CANO_SDO_ABORT_DATA_DEV_STATE   0x041C
 data cannot be transfered or stored to application because of present device state
 
#define ERR_CANO_SDO_ABORT_DATA_LOC_CTRL   0x041B
 data cannot be transfered or stored to application because of local control
 
#define ERR_CANO_SDO_ABORT_DATA_LONG   0x0413
 data type does not match, length of service parameter too high
 
#define ERR_CANO_SDO_ABORT_DATA_OD   0x041D
 object dictionary not present or dynamic generation fails
 
#define ERR_CANO_SDO_ABORT_DATA_SHORT   0x0414
 data type does not match, length of service parameter too short
 
#define ERR_CANO_SDO_ABORT_DATA_TRANSF   0x041A
 data cannot be transfered or stored to application
 
#define ERR_CANO_SDO_ABORT_DEV_INCOMP   0x0410
 general internal incompatibility in device
 
#define ERR_CANO_SDO_ABORT_GENERAL   0x0419
 general error
 
#define ERR_CANO_SDO_ABORT_HW   0x0411
 access failed due to hardware error
 
#define ERR_CANO_SDO_ABORT_MAN_SPECIFIC   0x04FF
 manufacturer specific error code
 
#define ERR_CANO_SDO_ABORT_MAP_LEN   0x040E
 number and length of object to be mapped exceeds PDO length
 
#define ERR_CANO_SDO_ABORT_NO_MAP   0x040D
 object cannot be mapped to the PDO
 
#define ERR_CANO_SDO_ABORT_NOT_EXIST   0x040C
 Object does not exist.
 
#define ERR_CANO_SDO_ABORT_OUT_OF_MEM   0x0408
 Out of memory.
 
#define ERR_CANO_SDO_ABORT_PRAM_INCOMP   0x040F
 general parameter incompatibility reasons
 
#define ERR_CANO_SDO_ABORT_READONLY   0x040B
 attempt to write a read only object
 
#define ERR_CANO_SDO_ABORT_SEQ_NUM   0x0406
 invalid sequence number in block mode
 
#define ERR_CANO_SDO_ABORT_SUB_UNKNOWN   0x0415
 sub index does not exist
 
#define ERR_CANO_SDO_ABORT_TIMEOUT   0x0402
 SDO protocol timed out.
 
#define ERR_CANO_SDO_ABORT_TOGGLE_BIT   0x0402
 toggle bit not altered
 
#define ERR_CANO_SDO_ABORT_TYPE_MISMATCH   0x0412
 data type does not match, length of service parameter does not match
 
#define ERR_CANO_SDO_ABORT_UNSUPPORTED   0x0409
 unsupported access to an object
 
#define ERR_CANO_SDO_ABORT_VALUE_HIGH   0x0417
 value range of parameter written too high
 
#define ERR_CANO_SDO_ABORT_VALUE_LOW   0x0418
 value range of parameter written too low
 
#define ERR_CANO_SDO_ABORT_VALUE_RANGE   0x0416
 value range of parameter exceeded
 
#define ERR_CANO_SDO_ABORT_WRITEONLY   0x040A
 attempt to read a write only object
 
#define ERR_CONNABORTED   0x0161
 Software caused connection abort.
 
#define ERR_CONNREFUSED   0x0169
 Connection refused.
 
#define ERR_CONNRESET   0x0162
 Connection reset by peer.
 
#define ERR_DEADLK   0x0023
 Resource deadlock would occur.
 
#define ERR_DEADLOCK   ERR_DEADLK
 
#define ERR_DESTADDRREQ   0x0141
 Destination address required.
 
#define ERR_DEVCFG   0x0204
 invalid device configuration
 
#define ERR_DEVNOSUPP   0x00CA
 Device does not support this operatio.
 
#define ERR_DEVSTATE   0x0205
 wrong device state for this operation
 
#define ERR_DOM   0x0021
 Argument to math function outside valid domain.
 
#define ERR_EOF   0x00C8
 End of file reached.
 
#define ERR_ERROR   0x0202
 common unspecified error
 
#define ERR_EXCEPTION   0x0203
 application has thrown an exception
 
#define ERR_EXIST   0x012E
 File exists.
 
#define ERR_FBIG   0x001B
 File too large.
 
#define ERR_HOSTDOWN   0x016C
 Host is down.
 
#define ERR_HOSTUNREACH   0x016D
 No route to host.
 
#define ERR_INPROGRESS   0x0136
 Operation now in progress.
 
#define ERR_INTR   0x0004
 Operation interrupted.
 
#define ERR_INVAL   0x0016
 Invalid argument.
 
#define ERR_IO   0x0005
 I/O error.
 
#define ERR_ISCONN   0x0164
 Socket is already connected.
 
#define ERR_ISDIR   0x0015
 Is a directory.
 
#define ERR_LISTEMPTY   0x0206
 could not execute an operation because of an empty list
 
#define ERR_MFILE   0x0018
 Too many open files.
 
#define ERR_MSGSIZE   0x0142
 Message too long.
 
#define ERR_NAMETOOLONG   0x003C
 File name too long.
 
#define ERR_NETDOWN   0x015E
 Network is down.
 
#define ERR_NETRESET   0x0160
 Network dropped connection on reset.
 
#define ERR_NETUNREACH   0x015F
 Network is unreachable.
 
#define ERR_NFILE   0x0017
 Too many open files in system.
 
#define ERR_NOBUFS   0x0163
 No buffer space available.
 
#define ERR_NODEV   0x0013
 No such device.
 
#define ERR_NOENT   0x0002
 No such entity.
 
#define ERR_NOERR   0x0000
 No error.
 
#define ERR_NOMEM   0x000C
 Out of memory.
 
#define ERR_NOPROTOOPT   0x0144
 Protocol not available.
 
#define ERR_NOSPC   0x001C
 No space left on device.
 
#define ERR_NOSUPP   0x00C9
 Operation not supported.
 
#define ERR_NOSYS   0x0026
 Function not implemented.
 
#define ERR_NOTCONN   0x0165
 Socket is not connected.
 
#define ERR_NOTDIR   0x0014
 Not a directory.
 
#define ERR_NOTEMPTY   0x0042
 Directory not empty.
 
#define ERR_NOTSOCK   0x0140
 Socket operation on non-socket.
 
#define ERR_NOTSUP   0x005F
 Not supported error.
 
#define ERR_NOTTY   0x012F
 Inappropriate ioctl for device.
 
#define ERR_NXIO   0x012C
 Device not configured.
 
#define ERR_OPNOTSUPP   0x0147
 Operation not supported.
 
#define ERR_PARAM_RANGE   0x0201
 value range of parameter exceeded
 
#define ERR_PERM   0x0001
 Not permitted.
 
#define ERR_PFNOSUPPORT   0x0148
 Protocol family not supported.
 
#define ERR_PIPE   0x0130
 Broken pipe.
 
#define ERR_PROTONOSUPPORT   0x0145
 Protocol not supported.
 
#define ERR_PROTOTYPE   0x0143
 Protocol wrong type for socket.
 
#define ERR_RANGE   0x0022
 Math result cannot be represented.
 
#define ERR_ROFS   0x001E
 Read-only file system.
 
#define ERR_SHUTDOWN   0x0166
 Can't send after socket shutdown.
 
#define ERR_SOCKTNOSUPPORT   0x0146
 Socket type not supported.
 
#define ERR_SPIPE   0x001D
 Illegal seek.
 
#define ERR_SRCH   0x0003
 No such process.
 
#define ERR_TIMEDOUT   0x0168
 Operation timed out.
 
#define ERR_TOOMANYREFS   0x0167
 Too many references: can't splice.
 
#define ERR_WOULDBLOCK   ERR_AGAIN
 
#define ERR_XDEV   0x0012
 Cross-device link.
 

Typedefs

typedef long TErrCode
 This provides a common set of error codes that all packages can agree on. More...
 

Detailed Description

Common error code definitions for error handling.

Author
Uwe Kindler (UK)
Date
2007/03/27

Typedef Documentation

typedef long TErrCode

This provides a common set of error codes that all packages can agree on.

It doesn't preclude them defining their own error return system, but this is a preferable system to use to help error support be as general as possible.

We try and conform to the ANSI/POSIX error code format, namely starting with the character 'E'. Error code type. A type for error codes which may be useful to explain the purpose of a variable or return code. It shows that it contains an error code of the type defined below