NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Defines status and error messages.

Typedefs

typedef enum dwStatus dwStatus
 Status definition. More...
 

Enumerations

enum  dwStatus {
  DW_SUCCESS = 0,
  DW_INVALID_VERSION = 1,
  DW_INVALID_ARGUMENT = 2,
  DW_BAD_ALLOC = 3,
  DW_BAD_ALIGNMENT = 4,
  DW_BAD_CAST = 5,
  DW_NOT_IMPLEMENTED = 6,
  DW_END_OF_STREAM = 7,
  DW_INVALID_HANDLE = 8,
  DW_CALL_NOT_ALLOWED = 9,
  DW_NOT_AVAILABLE = 10,
  DW_NOT_RELEASED = 11,
  DW_NOT_SUPPORTED = 12,
  DW_NOT_INITIALIZED = 13,
  DW_INTERNAL_ERROR = 14,
  DW_FILE_NOT_FOUND = 15,
  DW_FILE_INVALID = 16,
  DW_CANNOT_CREATE_OBJECT = 17,
  DW_BUFFER_FULL = 18,
  DW_NOT_READY = 19,
  DW_TIME_OUT = 20,
  DW_BUSY_WAITING = 21,
  DW_LOG_CANNOT_WRITE = 22,
  DW_LOG_CANNOT_FLUSH = 23,
  DW_SAL_CANNOT_INITIALIZE = 24,
  DW_SAL_CANNOT_CREATE_SENSOR = 25,
  DW_SAL_NO_DRIVER_FOUND = 26,
  DW_SAL_SENSOR_UNSUPPORTED = 27,
  DW_SAL_SENSOR_ERROR = 28,
  DW_CUDA_ERROR = 29,
  DW_GL_ERROR = 30,
  DW_NVMEDIA_ERROR = 31,
  DW_DNN_INVALID_MODEL = 32,
  DW_FAILURE = 33,
  DW_DNN_INVALID_TYPE = 34,
  DW_HAL_CANNOT_OPEN_CHANNEL = 35,
  DW_OUT_OF_BOUNDS = 36,
  DW_UNEXPECTED_IPC_EVENT = 37,
  DW_UNEXPECTED_EVENT = 38,
  DW_CUDA_CONTEXT_ERROR = 39,
  DW_CUDA_DEVICE_ERROR = 40,
  DW_CANNOT_SYNCHRONIZE = 41,
  DW_EMPTY_QUEUE = 42,
  DW_NUM_ERROR_CODES = 43
}
 Status definition. More...
 

Functions

const DW_API_PUBLIC char * dwGetStatusName (dwStatus const s)
 Converts dwStatus enum value to a string value. More...
 

Typedef Documentation

◆ dwStatus

typedef enum dwStatus dwStatus

Status definition.

Enumeration Type Documentation

◆ dwStatus

enum dwStatus

Status definition.

Enumerator
DW_SUCCESS 

No error.

DW_INVALID_VERSION 

Invalid version between headers and runtime library.

DW_INVALID_ARGUMENT 

One of the given arguments cannot be processed by the function.

DW_BAD_ALLOC 

Cannot allocate required memory.

DW_BAD_ALIGNMENT 

Incorrect alignment for a pointer.

DW_BAD_CAST 

Cannot cast given handle to an expected type.

DW_NOT_IMPLEMENTED 

Requested feature/method is not yet implemented.

DW_END_OF_STREAM 

End of stream reached.

DW_INVALID_HANDLE 

Given handle is invalid, i.e., not a valid handle.

DW_CALL_NOT_ALLOWED 

The call to a method is not allowed at this state.

DW_NOT_AVAILABLE 

Requested method or object instance is not yet available.

DW_NOT_RELEASED 

Given handle has not been released yet.

DW_NOT_SUPPORTED 

Desired set of parameters or functionality is not suported.

DW_NOT_INITIALIZED 

The object requires initialization first.

DW_INTERNAL_ERROR 

Internal error indicating a non recoverable situation.

DW_FILE_NOT_FOUND 

Requested file was not found.

DW_FILE_INVALID 

File content is invalid.

DW_CANNOT_CREATE_OBJECT 

Failed to create a DW Object.

DW_BUFFER_FULL 

An internal buffer has reached its capacity.

DW_NOT_READY 

The processing is not finished or ready.

DW_TIME_OUT 

The request has timed out.

DW_BUSY_WAITING 

No response since too busy, not an error but please retry.

DW_LOG_CANNOT_WRITE 

Logger is unable to write output.

DW_LOG_CANNOT_FLUSH 

Logger is unable to flush output.

DW_SAL_CANNOT_INITIALIZE 

A sensor cannot be initialized, e.g., sensor might not be responding.

DW_SAL_CANNOT_CREATE_SENSOR 

A sensor cannot be created, e.g.

possible issues are wrong parameters

DW_SAL_NO_DRIVER_FOUND 

Requested sensor driver cannot be found.

DW_SAL_SENSOR_UNSUPPORTED 

Requested sensor is unsupported.

DW_SAL_SENSOR_ERROR 

Internal non-recoverable sensor error.

DW_CUDA_ERROR 

There was an error from the CUDA API.

DW_GL_ERROR 

Last call to OpenGL API resulted in an error.

DW_NVMEDIA_ERROR 

NvMedia API resulted in an error.

DW_DNN_INVALID_MODEL 

Given network model is not valid.

DW_FAILURE 

Unknown, non-recoverable error.

DW_DNN_INVALID_TYPE 

DNN model type is invalid.

DW_HAL_CANNOT_OPEN_CHANNEL 

HAL cannot open a channel.

DW_OUT_OF_BOUNDS 

Out of bounds exception (e.g.

in array access).

DW_UNEXPECTED_IPC_EVENT 

Unexpected/Invalid Event received for IPC.

DW_UNEXPECTED_EVENT 

Unexpected/Invalid Event received from a block.

DW_CUDA_CONTEXT_ERROR 

The CUDA context is either not present or cannot be initialized.

DW_CUDA_DEVICE_ERROR 

The CUDA device currently selected is either incompatible with the operation or has failed.

DW_CANNOT_SYNCHRONIZE 

The synchronization call has failed.

DW_EMPTY_QUEUE 

No more events/data available to process.

DW_NUM_ERROR_CODES 

Total number of DW error codes.

Definition at line 32 of file ErrorDefs.h.

Function Documentation

◆ dwGetStatusName()

const DW_API_PUBLIC char* dwGetStatusName ( dwStatus const  s)

Converts dwStatus enum value to a string value.

Returns a NULL terminated character string of the status value.

API Group
  • Init: Yes
  • Runtime: Yes
  • De-Init: Yes