DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

API Naming Conventions and General Structures

Table of Contents

NVIDIA® DriveWorks is a collection of modules with C APIs.

Functions

Module functions are defined in camel case, as following:

dwStatus dwModule_functionName(.., dwModuleHandle_t obj)
dwStatus
Status definition.
Definition: ErrorDefs.h:44
struct dwModuleObject * dwModuleHandle_t
The Generic Module Object Handle.
Definition: Context.h:91
#define DW_API_PUBLIC
Definition: Exports.h:56

Handles

Each module provides a handle to access module functions.

typedef struct dwContextObject * dwContextHandle_t // Defines a type-safe handle to the instance of a module.
typedef struct dwContextObject const* dwConstContextHandle_t // Defines a type-safe handle to a const instance of a module.
struct dwContextObject const * dwConstContextHandle_t
The Driveworks context handle.
Definition: Context.h:88
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:86

Structures

Structures supporting the module are defined with a typedef and prefixed module name in camel case.

typedef struct dwMyModuleParameterStruct {
float32_t parameterOne;
int32_t parameterTwo;
} dwMyModuleParameterStruct;
float float32_t
Specifies POD types.
Definition: BasicTypes.h:59

Enums

Enums are defined with a prefix of the module name, where each element is:

  • Prefixed with the module name using _ as a separator and
  • In capital letters.
typedef enum dwMyModulParamFlags
{
DW_MY_MODULE_PARAM_FLAGS_ONE = 0,
DW_MY_MODULE_PARAM_FLAGS_TWO = 1,
} dwMyModuleParamFlags;