awt_status.h File Reference

Common status codes. More...

This graph shows which files directly or indirectly include this file:

Defines

#define STATUS(cat, code)   (((cat)<<8) | (code))
 Homogeneous status codes for AWT APIs.

Enumerations

enum  StatusCategory
 

Status categories.

More...
enum  AwtStatus {
  AWT_STATUS_OK = 0, AWT_STATUS_UNKNOWN_ERROR = STATUS(AWT_CAT_SYSTEM, 1), AWT_STATUS_ASYNC = STATUS(AWT_CAT_SYSTEM, 2), AWT_STATUS_BUSY = STATUS(AWT_CAT_SYSTEM, 3),
  AWT_STATUS_ALLOC_FAILED = STATUS(AWT_CAT_SYSTEM, 4), AWT_STATUS_NOT_ENOUGH_MEMORY = STATUS(AWT_CAT_SYSTEM, 5), AWT_STATUS_RESOURCE_INITIALIZATION_FAILED = STATUS(AWT_CAT_SYSTEM, 6), AWT_STATUS_RESOURCE_NOT_INITIALIZED = STATUS(AWT_CAT_SYSTEM, 7),
  AWT_STATUS_CONTEXT_IS_CORRUPTED = STATUS(AWT_CAT_SYSTEM, 8), AWT_STATUS_READ_BUFFER_EOS = STATUS(AWT_CAT_SYSTEM, 9), AWT_STATUS_CORRUPTED_BUFFER = STATUS(AWT_CAT_SYSTEM, 10), AWT_STATUS_WRONG_PARAMS = STATUS(AWT_CAT_SYSTEM, 11),
  AWT_STATUS_EMPTY = STATUS(AWT_CAT_SYSTEM, 12), AWT_STATUS_SERVICE_UNAVAILABLE = STATUS(AWT_CAT_SYSTEM, 13), AWT_STATUS_ASYNC_FORBIDDEN_CALL = STATUS(AWT_CAT_SYSTEM, 14), AWT_STATUS_UNKNOWN_COMMAND = STATUS(AWT_CAT_SYSTEM, 15),
  AWT_STATUS_OBJECT_NOT_INITIALIZED = STATUS(AWT_CAT_AWTDA, 0), AWT_STATUS_INVALID_OBJECT_TYPE = STATUS(AWT_CAT_AWTDA, 1), AWT_STATUS_INVALID_OBJECT_CONTENT = STATUS(AWT_CAT_AWTDA, 2), AWT_STATUS_NOT_A_LIST = STATUS(AWT_CAT_AWTDA, 3),
  AWT_STATUS_NOT_A_MAP = STATUS(AWT_CAT_AWTDA, 4), AWT_STATUS_ITEM_NOT_FOUND = STATUS(AWT_CAT_AWTDA, 5), AWT_STATUS_BYTECODE_NOT_SUPPORTED = STATUS(AWT_CAT_AWTDA, 6), AWT_STATUS_OBJECT_CREATION_FAILED = STATUS(AWT_CAT_AWTDA, 7),
  AWT_STATUS_VALUE_OUT_OF_BOUND = STATUS(AWT_CAT_AWTDA, 8), AWT_STATUS_SERVER_UNREACHABLE = STATUS(AWT_CAT_NETWORK, 0), AWT_STATUS_SERVER_FAILURE = STATUS(AWT_CAT_NETWORK, 1), AWT_STATUS_IPC_READ_ERROR = STATUS(AWT_CAT_NETWORK, 2),
  AWT_STATUS_IPC_WRITE_ERROR = STATUS(AWT_CAT_NETWORK, 2), AWT_STATUS_SERIAL_ERROR = AWT_STATUS_UNKNOWN_ERROR, AWT_STATUS_SERIAL_STACK_NOT_READY = AWT_STATUS_BUSY, AWT_STATUS_SERIAL_RESPONSE_TIMEOUT = STATUS(AWT_CAT_SERIAL, 10),
  AWT_STATUS_SERIAL_RESPONSE_EXCEPTION = STATUS(AWT_CAT_SERIAL, 11), AWT_STATUS_SERIAL_RESPONSE_INVALID_FRAME = STATUS(AWT_CAT_SERIAL, 12), AWT_STATUS_SERIAL_RESPONSE_BAD_CHECKSUM = STATUS(AWT_CAT_SERIAL, 13), AWT_STATUS_SERIAL_RESPONSE_INCOMPLETE_FRAME = STATUS(AWT_CAT_SERIAL, 14),
  AWT_STATUS_SERIAL_RESPONSE_BAD_SLAVE = STATUS(AWT_CAT_SERIAL, 15), AWT_STATUS_SERIAL_RESPONSE_BAD_FUNCTION = STATUS(AWT_CAT_SERIAL, 16), AWT_STATUS_SERIAL_RESPONSE_SHORT_FRAME = STATUS(AWT_CAT_SERIAL, 17), AWT_STATUS_SERIAL_INIT_CONTEXT_NULL = AWT_STATUS_RESOURCE_NOT_INITIALIZED,
  AWT_STATUS_SERIAL_INIT_NULL_POINTER = AWT_STATUS_ALLOC_FAILED, AWT_STATUS_SERIAL_INIT_CANNOT_CAPTURE_UART = STATUS(AWT_CAT_SERIAL, 22), AWT_STATUS_SERIAL_INIT_CANNOT_SET_MESSAGE = STATUS(AWT_CAT_SERIAL, 23), AWT_STATUS_SERIAL_INIT_STACK_READY = AWT_STATUS_OK,
  AWT_STATUS_SERIAL_INIT_CANNOT_SET_FLOW_CONTROL = STATUS(AWT_CAT_SERIAL, 25), AWT_STATUS_SERIAL_REQUEST_PARAMETER_ERROR = AWT_STATUS_WRONG_PARAMS
}
 

Return status constants.

More...

Detailed Description

Common status codes.

This header gives an homogeneous status code namespace for all AWT APIs.


Enumeration Type Documentation

enum AwtStatus

Return status constants.

This enum is 'statically' enumerated. It is FORBIDDEN to change any of the following values. When new errors are needed, just add an entries in the enum.

Enumerator:
AWT_STATUS_OK 

AWT_STATUS_OK.

AWT_STATUS_UNKNOWN_ERROR 

AWT_STATUS_UNKNOWN_ERROR.

AWT_STATUS_ASYNC 

AWT_STATUS_ASYNC.

AWT_STATUS_BUSY 

AWT_STATUS_BUSY.

AWT_STATUS_ALLOC_FAILED 

AWT_STATUS_ALLOC_FAILED.

AWT_STATUS_NOT_ENOUGH_MEMORY 

AWT_STATUS_NOT_ENOUGH_MEMORY.

AWT_STATUS_RESOURCE_INITIALIZATION_FAILED 

AWT_STATUS_RESOURCE_INITIALIZATION_FAILED.

AWT_STATUS_RESOURCE_NOT_INITIALIZED 

AWT_STATUS_RESOURCE_NOT_INITIALIZED.

AWT_STATUS_CONTEXT_IS_CORRUPTED 

AWT_STATUS_CONTEXT_IS_CORRUPTED.

AWT_STATUS_READ_BUFFER_EOS 

AWT_STATUS_READ_BUFFER_EOS.

AWT_STATUS_CORRUPTED_BUFFER 

AWT_STATUS_CORRUPTED_BUFFER.

AWT_STATUS_WRONG_PARAMS 

AWT_STATUS_WRONG_PARAMS.

AWT_STATUS_EMPTY 

AWT_STATUS_EMPTY.

AWT_STATUS_SERVICE_UNAVAILABLE 

AWT_STATUS_SERVICE_UNAVAILABLE.

AWT_STATUS_ASYNC_FORBIDDEN_CALL 

AWT_STATUS_ASYNC_FORBIDDEN_CALL.

AWT_STATUS_UNKNOWN_COMMAND 

AWT_STATUS_UNKNOWN_COMMAND.

AWT_STATUS_OBJECT_NOT_INITIALIZED 

AWT_STATUS_OBJECT_NOT_INITIALIZED /* = 256 */.

AWT_STATUS_INVALID_OBJECT_TYPE 

AWT_STATUS_INVALID_OBJECT_TYPE.

AWT_STATUS_INVALID_OBJECT_CONTENT 

AWT_STATUS_INVALID_OBJECT_CONTENT.

AWT_STATUS_NOT_A_LIST 

AWT_STATUS_NOT_A_LIST.

AWT_STATUS_NOT_A_MAP 

AWT_STATUS_NOT_A_MAP.

AWT_STATUS_ITEM_NOT_FOUND 

AWT_STATUS_ITEM_NOT_FOUND.

AWT_STATUS_BYTECODE_NOT_SUPPORTED 

AWT_STATUS_BYTECODE_NOT_SUPPORTED.

AWT_STATUS_OBJECT_CREATION_FAILED 

AWT_STATUS_OBJECT_CREATION_FAILED.

AWT_STATUS_VALUE_OUT_OF_BOUND 

AWT_STATUS_VALUE_OUT_OF_BOUND.

AWT_STATUS_SERVER_UNREACHABLE 

AWT_STATUS_SERVER_UNREACHABLE /* = 512 */.

AWT_STATUS_SERVER_FAILURE 

AWT_STATUS_SERVER_FAILURE.

AWT_STATUS_IPC_READ_ERROR 

AWT_STATUS_IPC_READ_ERROR.

AWT_STATUS_IPC_WRITE_ERROR 

AWT_STATUS_IPC_WRITE_ERROR.

AWT_STATUS_SERIAL_ERROR 

AWT_STATUS_SERIAL_ERROR - 768.

AWT_STATUS_SERIAL_STACK_NOT_READY 

AWT_STATUS_SERIAL_STACK_NOT_READY.

AWT_STATUS_SERIAL_RESPONSE_TIMEOUT 

AWT_STATUS_SERIAL_RESPONSE_TIMEOUT - 778.

AWT_STATUS_SERIAL_RESPONSE_EXCEPTION 

AWT_STATUS_SERIAL_RESPONSE_EXCEPTION - 779.

AWT_STATUS_SERIAL_RESPONSE_INVALID_FRAME 

AWT_STATUS_SERIAL_RESPONSE_INVALID_FRAME - 780.

AWT_STATUS_SERIAL_RESPONSE_BAD_CHECKSUM 

AWT_STATUS_SERIAL_RESPONSE_BAD_CHECKSUM - 782.

AWT_STATUS_SERIAL_RESPONSE_INCOMPLETE_FRAME 

AWT_STATUS_SERIAL_RESPONSE_INCOMPLETE_FRAME - 783.

AWT_STATUS_SERIAL_RESPONSE_BAD_SLAVE 

AWT_STATUS_SERIAL_RESPONSE_BAD_SLAVE - 784.

AWT_STATUS_SERIAL_RESPONSE_BAD_FUNCTION 

AWT_STATUS_SERIAL_RESPONSE_BAD_FUNCTION - 785.

AWT_STATUS_SERIAL_RESPONSE_SHORT_FRAME 

AWT_STATUS_SERIAL_RESPONSE_SHORT_FRAME - 786.

AWT_STATUS_SERIAL_INIT_CONTEXT_NULL 

AWT_STATUS_SERIAL_INIT_CONTEXT_NULL - 788.

AWT_STATUS_SERIAL_INIT_NULL_POINTER 

AWT_STATUS_SERIAL_INIT_UART_BUFFER_NULL - 789.

AWT_STATUS_SERIAL_INIT_CANNOT_CAPTURE_UART 

AWT_STATUS_SERIAL_INIT_CANNOT_CAPTURE_UART - 790.

AWT_STATUS_SERIAL_INIT_CANNOT_SET_MESSAGE 

AWT_STATUS_SERIAL_INIT_CANNOT_SET_MESSAGE - 791.

AWT_STATUS_SERIAL_INIT_STACK_READY 

AWT_STATUS_SERIAL_INIT_STACK_READY - 0.

AWT_STATUS_SERIAL_INIT_CANNOT_SET_FLOW_CONTROL 

AWT_STATUS_SERIAL_INIT_CANNOT_SET_FLOW_CONTROL - 793.

AWT_STATUS_SERIAL_REQUEST_PARAMETER_ERROR 

AWT_STATUS_SERIAL_REQUEST_PARAMETER_ERROR - 798.

Status categories.

This enum is 'statically' enumerated. It is FORBIDEN to change any of the following values. When new errors are needed, just add an entries in the enum.

 All Data Structures Files Functions Typedefs Enumerations Enumerator Defines
Generated on Fri Apr 8 19:30:01 2011 for ReadyAgent libraries by  doxygen 1.6.3