Common status codes. More...
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... |
Common status codes.
This header gives an homogeneous status code namespace for all AWT APIs.
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.
enum StatusCategory |
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.