NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Typedefs

typedef enum stmErrorCode_t stmErrorCode_t
 Return/error codes for all STM functions. More...
 

Enumerations

enum  stmErrorCode_t {
  STM_SUCCESS = 0,
  STM_ERROR_EXPECTED,
  STM_ERROR_NOT_INITIALIZED,
  STM_ERROR_BAD_PARAMETER,
  STM_ERROR_NOT_SUPPORTED,
  STM_ERROR_TIMEOUT,
  STM_ERROR_NOT_FOUND,
  STM_ERROR_INVALID_STATE,
  STM_ERROR_GENERIC,
  STM_ERROR_BAD_VALUE,
  STM_ERROR_NVSCISYNC,
  STM_ERROR_SYNC,
  STM_ERROR_NVSCISYNC_TIMEOUT,
  STM_ERROR_CUDA,
  STM_ERROR_VULKAN,
  STM_ERROR_INSUFFICIENT_MEMORY,
  STM_ERROR_CUDLA,
  STM_ERROR_PVA,
  STM_ERROR_NVMEDIA_LDC,
  STM_ERROR_NVMEDIA_2D,
  STM_ERROR_CONNECTION,
  STM_ERROR_UNKNOWN_CLOCK,
  STM_ERROR_FAILED_READING_TIMESTAMPS,
  STM_ERROR_UNKNOWN_STATE,
  STM_ERROR_BAD_STATE_TRANSITION,
  STM_ERROR_SCHEDULE_ID_INVALID,
  STM_NUM_ERROR_CODES
}
 Return/error codes for all STM functions. More...
 

Functions

static const char * stmErrorCodeToString (stmErrorCode_t err)
 Convert STM error code to string representation. More...
 

Typedef Documentation

◆ stmErrorCode_t

Return/error codes for all STM functions.

This enumeration contains unique return/error codes to identify the source of a failure. Some errors have direct correspondence to standard errno.h codes, indicated [IN BRACKETS], and may result from failures in lower level system calls. Others indicate failures specific to misuse of STM library functions.

Enumeration Type Documentation

◆ stmErrorCode_t

Return/error codes for all STM functions.

This enumeration contains unique return/error codes to identify the source of a failure. Some errors have direct correspondence to standard errno.h codes, indicated [IN BRACKETS], and may result from failures in lower level system calls. Others indicate failures specific to misuse of STM library functions.

Enumerator
STM_SUCCESS 

[EOK] No error

STM_ERROR_EXPECTED 

Failure in one of the allowed/expected ways.

STM_ERROR_NOT_INITIALIZED 

STM client context not initialized through previous call to stmClientInit()

STM_ERROR_BAD_PARAMETER 

Invalid parameter value.

STM_ERROR_NOT_SUPPORTED 

Operation not supported.

STM_ERROR_TIMEOUT 

Operation timeout.

STM_ERROR_NOT_FOUND 

Lookup failed in STM.

STM_ERROR_INVALID_STATE 

STM in invalid state.

STM_ERROR_GENERIC 

Generic error; no other information.

STM_ERROR_BAD_VALUE 

Invalid value in STM.

STM_ERROR_NVSCISYNC 

NvSciSync operation in STM returned an error.

STM_ERROR_SYNC 

Synchronization operation in STM returned an error.

STM_ERROR_NVSCISYNC_TIMEOUT 

NvSciSync operation in STM timed out.

STM_ERROR_CUDA 

CUDA operation in STM returned an error.

STM_ERROR_VULKAN 

Vulkan operation in STM returned an error.

STM_ERROR_INSUFFICIENT_MEMORY 

[ENOMEM] Not enough memory

STM_ERROR_CUDLA 

CUDLA operation in STM returned an error.

STM_ERROR_PVA 

CUPVA operation in STM returned an error.

STM_ERROR_NVMEDIA_LDC 

NVMEDIA_LDC operation in STM returned an error.

STM_ERROR_NVMEDIA_2D 

NVMEDIA_2D operation in STM returned an error.

STM_ERROR_CONNECTION 
STM_ERROR_UNKNOWN_CLOCK 
STM_ERROR_FAILED_READING_TIMESTAMPS 
STM_ERROR_UNKNOWN_STATE 
STM_ERROR_BAD_STATE_TRANSITION 
STM_ERROR_SCHEDULE_ID_INVALID 
STM_NUM_ERROR_CODES 

Definition at line 54 of file stm_error.h.

Function Documentation

◆ stmErrorCodeToString()

static const char* stmErrorCodeToString ( stmErrorCode_t  err)
inlinestatic

Convert STM error code to string representation.

Parameters
[in]errstmErrorCode_t error.
Returns
String representation of stmErrorCode_t.

Definition at line 116 of file stm_error.h.