• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.8.83 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    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)
    struct dwModuleObject * dwModuleHandle_t
    Definition: Context.h:85
    #define DW_API_PUBLIC
    Definition: Exports.h:54
    dwStatus
    Status definition.
    Definition: Status.h:171

    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
    Definition: Context.h:83
    struct dwContextObject * dwContextHandle_t
    Context handle.
    Definition: Context.h:82

    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: Types.h:70

    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;
    人人超碰97caoporen国产