NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Data Structures

class  nvsipl::UUID
 A universally unique identifier. More...
 
struct  nvsipl::CameraDeviceInfoList
 Defines a list of all external image devices supported by SIPL. More...
 
class  nvsipl::ISiplControlAuto
 Defines SIPL Control Auto Interface Class. More...
 
class  nvsipl::INvSIPLClient
 Defines the public data structures and describes the interfaces for NvSIPL Client. More...
 
class  nvsipl::INvSIPLDeviceBlockTrace
 Describes the interfaces of NvSIPLDeviceBlockTrace. More...
 
class  nvsipl::INvSIPLQueryTrace
 
class  nvsipl::INvSIPLTrace
 Defines the public interfaces to control the logging/tracing of SIPL. More...
 

Modules

 CDAC_GPIO_DEVICE_FLAGS
 
 Camera Device Interface
 The Camera Device Interface API encompasses all DevBlk I2C control related functions, including programming of all I2C controlled components such as deserializers, serializers, EEPROMs, and image sensors.
 
 IMX728SL Custom Data
 Describes custom data for IMX728.
 
 IMX728SL Custom Interface
 Describes the custom interface for IMX728.
 
 Interrupt Status API
 Provides interfaces for Interrupt Status.
 
 NvSIPL
 
 NvSIPL Camera
 Provides top-level interfaces to program external image devices and Tegra to create and manage image processing pipelines to receive outputs in NvSciBufObj Images.
 
 NvSIPL Capture definitions
 NvSipl Cap Defines for image capture interface and input format types.
 
 NvSIPL Client
 Provides interfaces to retrieve the output of the SIPL Pipeline Manager.
 
 NvSIPL Device Block Trace
 Provides interfaces to configure the trace level for SIPL Device Block.
 
 NvSIPL DeviceBlock Information
 Describes information about devices supported by SIPL Device Block.
 
 NvSIPL ISP Stats
 NvSipl ISP Defines for ISP Stat structures.
 
 NvSIPL ISP Structures
 NvSipl ISP Defines for ISP Structures.
 
 NvSIPL Pipeline Manager
 Programs Video Input (VI) and Image Signal Processor (ISP) hardware blocks to create image processing pipelines for each sensor.
 
 NvSIPL Query
 Manages a database of information about external devices (deserializer, serializer, sensor, and EEPROM) and the camera platform configurations supported by SIPL Device Block drivers.
 
 NvSIPL Version
 Holds the version information for NvSIPL Camera and NvSIPL Client.
 
 SIPL Auto Control
 Describes interfaces for SIPL Auto Control implementation.
 

Files

file  INvSIPLDeviceInterfaceProvider.hpp
  NVIDIA SIPL: Device Interface Provider Interface
 
file  INvSIPLISPStatCustomInterface.hpp
  NVIDIA SIPL: ISP Stat Custom Interface
 
file  NvCamFsync.h
  NVIDIA SIPL: Camera Fsync
 
file  NvSIPLCommon.hpp
  NVIDIA SIPL: Common Data Structures - NvSIPL
 
file  NvSIPLInterrupts.hpp
  NVIDIA SIPL: Interrupts
 
file  NvSIPLGpioInterrupts.hpp
  NVIDIA SIPL: GPIO Interrupts
 
file  NvSIPLPlatformCfg.hpp
  NVIDIA SIPL: Camera Platform Configuration
 
file  NvSiplControlAutoDef.hpp
  NVIDIA SIPL: Auto Control Settings - SIPL Auto Control
 
file  NvSIPLCameraQuery.hpp
  NVIDIA SIPL: Camera Query
 
constexpr UUID nvsipl::NVSIPLISPSTAT_CUSTOM_INTERFACE_ID
 Custom interface ID for INvSIPLISPStatCustomInterface. More...
 
enum  CAM_FSYNC_STATUS {
  CAM_FSYNC_OK = 0,
  CAM_FSYNC_GROUP_BUSY,
  CAM_FSYNC_GROUP_NOT_FOUND,
  CAM_FSYNC_GROUP_FAULT,
  CAM_FSYNC_ERROR,
  CAM_FSYNC_UNSUPPORTED,
  CAM_FSYNC_GROUP_IDLE,
  CAM_FSYNC_INVALID_CONFIG,
  CAM_FSYNC_GENERATOR_NOT_FOUND
}
 Status codes for fsync group program start time operation. More...
 
typedef enum CAM_FSYNC_STATUS CAM_FSYNC_STATUS
 Status codes for fsync group program start time operation. More...
 
CAM_FSYNC_STATUS cam_fsync_program_abs_start_value (uint32_t group_id, uint64_t start_time_in_tsc_ticks)
 Program and start generators in group with absolute start time in TSC ticks. More...
 
CAM_FSYNC_STATUS cam_fsync_stop_group (uint32_t group_id)
 Stop all generators in the requested group. More...
 
CAM_FSYNC_STATUS cam_fsync_reconfigure_generator (uint32_t group_id, uint32_t generator_id, uint32_t frequency_hz, uint32_t duty_cycle, uint32_t offset_ms)
 Reconfigure the period, duty cycle, and relative offset of a given generator. More...
 
static constexpr size_t nvsipl::NITO_PARAMETER_SET_ID_SIZE {16U}
 Size of the NITO Parameters set ID. More...
 
enum  nvsipl::InterruptCode : uint32_t {
  nvsipl::InterruptCode::INTR_STATUS_DES_FAILURE = 0U,
  nvsipl::InterruptCode::INTR_STATUS_DES_TIMEOUT = 1U,
  nvsipl::InterruptCode::INTR_STATUS_DES_ERRB_ERR = 10U,
  nvsipl::InterruptCode::INTR_STATUS_DES_LOCK_ERR = 11U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_FAILURE = 100U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_TIMEOUT = 101U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_OVERVOLTAGE = 102U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_UNDERVOLTAGE = 103U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_LINE_TO_LINE_FAULT = 104U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_OVERCURRENT = 105U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_THERMAL_SHUTDOWN = 106U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_CIRCUIT_OPEN_DISCONNECT = 107U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_INCORRECT_IMPEDANCE = 108U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_ISET_OPEN = 109U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_UNDERVOLTAGE_INPUT = 110U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_OVERVOLTAGE_INPUT = 111U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_UNDERVOLTAGE_VDD = 112U,
  nvsipl::InterruptCode::INTR_STATUS_PWR_OVERVOLTAGE_VDD = 113U,
  nvsipl::InterruptCode::INTR_STATUS_SER_FAILURE = 1000U,
  nvsipl::InterruptCode::INTR_STATUS_SER_TIMEOUT = 1001U,
  nvsipl::InterruptCode::INTR_STATUS_SERDES_LINK_ERR = 1002U,
  nvsipl::InterruptCode::INTR_STATUS_SEN_FAILURE = 1100U,
  nvsipl::InterruptCode::INTR_STATUS_SEN_TIMEOUT = 1101U,
  nvsipl::InterruptCode::INTR_STATUS_PMIC_FAILURE = 1200U,
  nvsipl::InterruptCode::INTR_STATUS_PMIC_TIMEOUT = 1201U,
  nvsipl::InterruptCode::INTR_STATUS_EEPROM_FAILURE = 1300U,
  nvsipl::InterruptCode::INTR_STATUS_EEPROM_TIMEOUT = 1301U,
  nvsipl::InterruptCode::INTR_STATUS_LED_FAILURE = 1400U,
  nvsipl::InterruptCode::INTR_STATUS_LED_TIMEOUT = 1401U,
  nvsipl::InterruptCode::INTR_STATUS_SPURIOUS_NO_ERROR = 9000U,
  nvsipl::InterruptCode::INTR_STATUS_FAILURE = 10000U,
  nvsipl::InterruptCode::INTR_STATUS_TIMEOUT = 10001U,
  nvsipl::InterruptCode::INTR_STATUS_LOCALIZATION_FAILURE = 10002U,
  nvsipl::InterruptCode::INTR_STATUS_ERROR_RECOVERY = 10003U
}
 Interrupt Status Codes. More...
 
static constexpr uint8_t nvsipl::MAX_GPIO_EVENT_DRIVER_RESULTS {16U}
 Indicates the maximum number of GPIO driver results returned for one GPIO event notification. More...
 

Typedef Documentation

◆ CAM_FSYNC_STATUS

Status codes for fsync group program start time operation.


Usage considerations

  • Maturity: GA

Enumeration Type Documentation

◆ CAM_FSYNC_STATUS

Status codes for fsync group program start time operation.


Usage considerations

  • Maturity: GA
Enumerator
CAM_FSYNC_OK 

The operation was successful.

CAM_FSYNC_GROUP_BUSY 

Group is busy.

Generator in group already running.

CAM_FSYNC_GROUP_NOT_FOUND 

Group not found for specified group id.

CAM_FSYNC_GROUP_FAULT 

The operation encountered fault.

Start time may be in past or failed to start the generator.

CAM_FSYNC_ERROR 

A generic error occured during the operation.

CAM_FSYNC_UNSUPPORTED 

The requested operation is not supported.

CAM_FSYNC_GROUP_IDLE 

Group is idle.

Generator in group is not running.

CAM_FSYNC_INVALID_CONFIG 

The generator configuration is invalid.

CAM_FSYNC_GENERATOR_NOT_FOUND 

Generator not found for specified generator id.

Definition at line 38 of file NvCamFsync.h.

◆ InterruptCode

enum nvsipl::InterruptCode : uint32_t
strong

Interrupt Status Codes.


Usage considerations

  • Maturity: GA
Enumerator
INTR_STATUS_DES_FAILURE 

Device Block-level event, indicates general deserializer failure.

INTR_STATUS_DES_TIMEOUT 

Device Block-level event, indicates deserializer response timeout or read failure.

INTR_STATUS_DES_ERRB_ERR 

Device Block or Camera Link-level event, indicates deserializer failure.

INTR_STATUS_DES_LOCK_ERR 

Camera Link-level event, indicates deserializer-serializer link failure.

INTR_STATUS_PWR_FAILURE 

Device Block-level event, indicates general power load switch failure.

INTR_STATUS_PWR_TIMEOUT 

Device Block-level event, indicates power load switch response timeout or read failure.

INTR_STATUS_PWR_OVERVOLTAGE 

Camera Link-level event, indicates power load switch overvoltage failure on the corresponding output.

INTR_STATUS_PWR_UNDERVOLTAGE 

Camera Link-level event, indicates power load switch undervoltage failure on the corresponding output.

INTR_STATUS_PWR_LINE_TO_LINE_FAULT 

Device Block or Camera Link-level event, indicates power load switch line2line fault on more than one outputs.

INTR_STATUS_PWR_OVERCURRENT 

Camera Link-level event, indicates power load switch overcurrent failure on the corresponding output.

INTR_STATUS_PWR_THERMAL_SHUTDOWN 

Camera Link-level event, indicates power load switch thermal shutdown failure on the corresponding output.

The corresponding output is forced shutdown and remains off until the temperature drops below the thermal-shutdown hysteresis temperature.

INTR_STATUS_PWR_CIRCUIT_OPEN_DISCONNECT 

Camera Link-level event, indicates power load switch circuit open disconnect on the corresponding output.

INTR_STATUS_PWR_INCORRECT_IMPEDANCE 

Camera Link-level event, indicates power load switch incorrect impedance on the corresponding output.

INTR_STATUS_PWR_ISET_OPEN 

Device Block level event, indicates power load switch ISET pin is open.

The ISET pin of powerload switch is open, could be due to a short to ground or open circuit or incorrect resistance value.

INTR_STATUS_PWR_UNDERVOLTAGE_INPUT 

Device Block level event, indicates power load switch input voltage is below the minimum operating voltage.

The outputs are forced off in this condition.

INTR_STATUS_PWR_OVERVOLTAGE_INPUT 

Device Block level event, indicates power load switch input voltage is above the maximum operating voltage.

The outputs are forced off in this condition.

INTR_STATUS_PWR_UNDERVOLTAGE_VDD 

Device Block level event, indicates power load switch VDD voltage is below the minimum operating voltage.

The outputs are forced off in this condition.

INTR_STATUS_PWR_OVERVOLTAGE_VDD 

Device Block level event, indicates power load switch VDD voltage is above the maximum operating voltage.

The outputs are forced off in this condition.

INTR_STATUS_SER_FAILURE 

Camera Link-level event, indicates general Camera Module serializer failure.

INTR_STATUS_SER_TIMEOUT 

Camera Link-level event, indicates Camera Module serializer response timeout or read failure.

INTR_STATUS_SERDES_LINK_ERR 

Camera Link-level event, indicates serializer-deserializer link error reported by Camera Module driver.

INTR_STATUS_SEN_FAILURE 

Camera Link-level event, indicates general Camera Module sensor failure.

INTR_STATUS_SEN_TIMEOUT 

Camera Link-level event, indicates Camera Module sensor reponse timeout or read failure.

INTR_STATUS_PMIC_FAILURE 

Camera Link-level event, indicates general Camera Module PMIC failure.

INTR_STATUS_PMIC_TIMEOUT 

Camera Link-level event, indicates Camera Module PMIC response timeout or read failure.

INTR_STATUS_EEPROM_FAILURE 

Camera Link-level event, indicates general Camera Module EEPROM failure.

INTR_STATUS_EEPROM_TIMEOUT 

Camera Link-level event, indicates Camera Module EEPROM response timeout or read failure.

INTR_STATUS_LED_FAILURE 

Camera Link-level event, indicates general Camera Module LED Driver failure.

INTR_STATUS_LED_TIMEOUT 

Camera Link-level event, indicates Camera Module LED Driver response timeout.

INTR_STATUS_SPURIOUS_NO_ERROR 

Camera Link-level event, indicates a Camera Module spurious interrupt with no associated error cause.

If a driver issues this notification a. It precludes the SIPL error handling thread from automatically entering error state and sending INTR_STATUS_LOCALIZATION_FAILURE, if no other errors are reported. b. Masks interrupts for any devices whose status cannot be queried.

INTR_STATUS_FAILURE 

Device Block or Camera Link-level event, indicates general failure.

INTR_STATUS_TIMEOUT 

Device Block or Camera Link-level event, indicates general response timeout.

INTR_STATUS_LOCALIZATION_FAILURE 

Device Block or Camera Link-level event, indicates general localization failure.

INTR_STATUS_ERROR_RECOVERY 

Device Block-level event, indicates recovery from error state for all links.

This event is generated when all links that previously reported errors (e.g., via GPIO interrupts) have fully recovered, indicating that the device block camera subsystem is no longer in a degraded state.

Definition at line 37 of file NvSIPLInterrupts.hpp.

Function Documentation

◆ cam_fsync_program_abs_start_value()

CAM_FSYNC_STATUS cam_fsync_program_abs_start_value ( uint32_t  group_id,
uint64_t  start_time_in_tsc_ticks 
)

Program and start generators in group with absolute start time in TSC ticks.

This function programs and start all the generator in group identified by group ID at an absolute start time given in TSC ticks.

Precondition
None
Parameters
[in]group_idGroup id for the node Valid range: [ MIN_GROUP_ID_DEFINED_IN_DT, MAX_GROUP_ID_DEFINED_IN_DT]
[in]start_time_in_tsc_ticksStart time in TSC ticks to program generators in group Valid range: [ TSC_CURRENT_TICKS, MAX_UINT64]
Return values
CAM_FSYNC_OKSuccess to program and start fsync in group_id with start_time_in_tsc_ticks
Errorstatus defined in CAM_FSYNC_STATUS.


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: No
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges: Yes, with the following conditions:
    • Grants: nonroot, allow
    • Abilities: public_channel, cam-fsync/group:<group id>
    • Application needs to have access to the SGIDs that SIPL depends on as mentioned in the NVIDIA DRIVE OS Safety Developer Guide
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ cam_fsync_reconfigure_generator()

CAM_FSYNC_STATUS cam_fsync_reconfigure_generator ( uint32_t  group_id,
uint32_t  generator_id,
uint32_t  frequency_hz,
uint32_t  duty_cycle,
uint32_t  offset_ms 
)

Reconfigure the period, duty cycle, and relative offset of a given generator.

Precondition
The generator and its group must be in a stopped state.
Parameters
[in]group_idGroup id for the node Valid range: [MIN_GROUP_ID_DEFINED_IN_DT, MAX_GROUP_ID_DEFINED_IN_DT]
[in]generator_idID of the generator within the group. The ID of a generator is its index within the group (defined in DT). Valid range: [MIN_GENERATOR_ID_DEFINED_IN_DT, MAX_GENERATOR_ID_DEFINED_IN_DT]
[in]frequnecy_hzThe new frequency, in Hz. On Linux, all generators within the group must have a least-common-multiple frequency not greater than 120Hz. On QNX, all generators must not be greater than 120Hz and rational multiples of the highest frequency. Valid range: [> 0, 120]
[in]duty_cycleThe new duty cycle, in whole percent. Valid range: [> 0, < 100]
[in]offset_msThe new relative offset, in milliseconds. Value range: [non-zero]
Return values
CAM_FSYNC_OKThe requested generator was successfully reconfigured.
CAM_FSYNC_GROUP_BUSYThe group is not stopped - the generator cannot be reconfigured.
CAM_FSYNC_INVALID_CONFIGThe input frequency, duty cycle, or relative offset is out-of-range. The input frequency, duty cycle, or relative offset conflicts with other generators in the group.
CAM_FSYNC_GROUP_NOT_FOUNDThe input group ID was not found.
CAM_FSYNC_GENERATOR_NOT_FOUNDThe input generator ID was not found.
CAM_FSYNC_ERRORA generic error occurred.


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: No
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges: Yes, with the following conditions:
    • Grants: nonroot, allow
    • Abilities: public_channel, cam-fsync/group:<group id>
    • Application needs to have access to the SGIDs that SIPL depends on as mentioned in the NVIDIA DRIVE OS Safety Developer Guide
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ cam_fsync_stop_group()

CAM_FSYNC_STATUS cam_fsync_stop_group ( uint32_t  group_id)

Stop all generators in the requested group.

Precondition
None
Parameters
[in]group_idGroup id for the node Valid range: [ MIN_GROUP_ID_DEFINED_IN_DT, MAX_GROUP_ID_DEFINED_IN_DT]
Return values
CAM_FSYNC_OKSuccessfully stopped all generators in the requested group.
CAM_FSYNC_GROUP_IDLEFailed to stop the generators - the group is already stopped.
CAM_FSYNC_GROUP_NOT_FOUNDThe input group ID was not found.
CAM_FSYNC_ERRORA generic error occurred.


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: No
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges: Yes, with the following conditions:
    • Grants: nonroot, allow
    • Abilities: public_channel, cam-fsync/group:<group id>
    • Application needs to have access to the SGIDs that SIPL depends on as mentioned in the NVIDIA DRIVE OS Safety Developer Guide
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: No
    • Maturity: GA

Variable Documentation

◆ MAX_GPIO_EVENT_DRIVER_RESULTS

constexpr uint8_t nvsipl::MAX_GPIO_EVENT_DRIVER_RESULTS {16U}
staticconstexpr

Indicates the maximum number of GPIO driver results returned for one GPIO event notification.


Usage considerations

  • Maturity: Experimental

Definition at line 44 of file NvSIPLGpioInterrupts.hpp.

◆ NITO_PARAMETER_SET_ID_SIZE

constexpr size_t nvsipl::NITO_PARAMETER_SET_ID_SIZE {16U}
staticconstexpr

Size of the NITO Parameters set ID.

Definition at line 54 of file NvSIPLCamera.hpp.

◆ NVSIPLISPSTAT_CUSTOM_INTERFACE_ID

constexpr UUID nvsipl::NVSIPLISPSTAT_CUSTOM_INTERFACE_ID
constexpr
Initial value:
{ 0xB19E80D0U, 0x1333U, 0x4B4DU, 0xB5A9U,
0x8CU, 0xCFU, 0x19U, 0x43U, 0xE2U, 0x37U }

Custom interface ID for INvSIPLISPStatCustomInterface.

Definition at line 40 of file INvSIPLISPStatCustomInterface.hpp.

Referenced by nvsipl::INvSIPLISPStatCustomInterface::getClassInterfaceID(), and nvsipl::INvSIPLISPStatCustomInterface::getInstanceInterfaceID().