sdh_return_codes.h File Reference

This file contains a typedef for a common Return Codes enum. More...

Go to the source code of this file.

Defines

#define SDH__attribute__(...)   __attribute__(__VA_ARGS__)

Typedefs

typedef enum eReturnCodeEnum eReturnCode
 typedef for eCommandCodeEnum, see there

Enumerations

enum  eReturnCodeEnum {
  RC_OK = 0, RC_NOT_AVAILABLE, RC_NOT_INITIALIZED, RC_ALREADY_RUNNING,
  RC_FEATURE_NOT_SUPPORTED, RC_INCONSISTENT_DATA, RC_TIMEOUT, RC_READ_ERROR,
  RC_WRITE_ERROR, RC_INSUFFICIENT_RESOURCES, RC_CHECKSUM_ERROR, RC_NOT_ENOUGH_PARAMS,
  RC_NO_PARAMS_EXPECTED, RC_CMD_UNKNOWN, RC_CMD_FORMAT_ERROR, RC_ACCESS_DENIED,
  RC_ALREADY_OPEN, RC_CMD_FAILED, RC_CMD_ABORTED, RC_INVALID_HANDLE,
  RC_DEVICE_NOT_FOUND, RC_DEVICE_NOT_OPENED, RC_IO_ERROR, RC_INVALID_PARAMETER,
  RC_RANGE_ERROR, RC_NO_DATAPIPE, RC_INDEX_OUT_OF_BOUNDS, RC_HOMING_ERROR,
  RC_AXIS_DISABLED, RC_OVER_TEMPERATURE, RC_MAX_COMMANDS_EXCEEDED, RC_INVALID_PASSWORD,
  RC_MAX_COMMANDLINE_EXCEEDED, RC_CRC_ERROR, RC_NO_COMMAND, RC_INTERNAL,
  RC_UNKNOWN_ERROR, RC_DIMENSION
}

Variables

enum eReturnCodeEnum __packed__

Detailed Description

This file contains a typedef for a common Return Codes enum.

General file information

Author:
Dirk Osswald
Date:
2011-02-04

Copyright

Copyright (c) 2011 SCHUNK GmbH & Co. KG


Definition in file sdh_return_codes.h.


Define Documentation

#define SDH__attribute__ ( ...   )     __attribute__(__VA_ARGS__)

Definition at line 51 of file sdh_return_codes.h.


Typedef Documentation

typedef for eCommandCodeEnum, see there

Definition at line 118 of file sdh_return_codes.h.


Enumeration Type Documentation

Packed (1 Byte) enum with binary return codes used to indicate the status of the SDH sent in the binary communiation request or response.

Remarks:
  • To make this definition work with both C (nios-gcc) and C++ (std gcc/VCC) we have to separate the enum definition from the typedef.
  • You may use the corresponding typedef eReturnCode
Enumerator:
RC_OK 

Success, no error.

RC_NOT_AVAILABLE 

Error: An accessed ressource is not available.

RC_NOT_INITIALIZED 

Error: An accessed ressource has not been initialized.

RC_ALREADY_RUNNING 

Error: Data acquisition: the acquisition loop is already running.

RC_FEATURE_NOT_SUPPORTED 
RC_INCONSISTENT_DATA 
RC_TIMEOUT 

Error: timeout occured.

RC_READ_ERROR 

Error: could not read.

RC_WRITE_ERROR 

Error: could not write.

RC_INSUFFICIENT_RESOURCES 

Error: Insufficient ressources.

RC_CHECKSUM_ERROR 
RC_NOT_ENOUGH_PARAMS 

Error: not enough parameters on command line.

RC_NO_PARAMS_EXPECTED 
RC_CMD_UNKNOWN 

Error: unknown command on command line.

RC_CMD_FORMAT_ERROR 

Error: invalid format of command line parameters.

RC_ACCESS_DENIED 
RC_ALREADY_OPEN 
RC_CMD_FAILED 
RC_CMD_ABORTED 
RC_INVALID_HANDLE 
RC_DEVICE_NOT_FOUND 
RC_DEVICE_NOT_OPENED 
RC_IO_ERROR 

Error: Input/Output error like bus-off detected.

RC_INVALID_PARAMETER 

Error: invalid parameter on command line.

RC_RANGE_ERROR 
RC_NO_DATAPIPE 
RC_INDEX_OUT_OF_BOUNDS 

Error: A given index parameter is invalid.

RC_HOMING_ERROR 
RC_AXIS_DISABLED 
RC_OVER_TEMPERATURE 
RC_MAX_COMMANDS_EXCEEDED 

Error: cannot add more than CI_MAX_COMMANDS to interpreter / POSCON_MAX_OSCILLOSCOPE parameters to oscilloscope.

RC_INVALID_PASSWORD 

Error: invalid password given for change user command.

RC_MAX_COMMANDLINE_EXCEEDED 

Error: the command line given is too long.

RC_CRC_ERROR 

Cyclic Redundancy Code error while receiving binary input.

RC_NO_COMMAND 

Not really an error: reading input did not yield a new command.

RC_INTERNAL 

Error: callback function reports internal error.

RC_UNKNOWN_ERROR 

Error: unknown error.

RC_DIMENSION 

End marker and dimension.

Definition at line 72 of file sdh_return_codes.h.


Variable Documentation

Packed (1 Byte) enum with binary return codes used to indicate the status of the SDH sent in the binary communiation request or response.

Remarks:
  • To make this definition work with both C (nios-gcc) and C++ (std gcc/VCC) we have to separate the enum definition from the typedef.
  • You may use the corresponding typedef eReturnCode
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


cob_sdh
Author(s): Florian Weisshardt
autogenerated on Fri Jan 11 10:03:53 2013