NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvsipl::OV2311CustomInterface Class Referenceabstract

Detailed Description

Interface to specify custom APIs required for the sensor.

Definition at line 34 of file OV2311_CUST1v2_CustomInterface.hpp.

Inheritance diagram for nvsipl::OV2311CustomInterface:
Collaboration diagram for nvsipl::OV2311CustomInterface:

Public Member Functions

virtual SIPLStatus SetSensorReg (std::uint16_t const regAddr, std::uint8_t const regVal) const =0
 Write To OV2311 Sensor Register. More...
 
virtual SIPLStatus GetSensorReg (std::uint16_t const regAddr, std::uint8_t *const regVal) const =0
 Read From OV2311 Sensor Register. More...
 
virtual SIPLStatus SetIllumination (std::uint32_t const strobeWidth, std::uint16_t const tNegative) const =0
 Update strobe width and strobe offset. More...
 
virtual SIPLStatus GetIllumination (std::uint32_t *const strobeWidth, std::uint16_t *const tNegative) const =0
 Read strobe width and strobe offset. More...
 
virtual SIPLStatus GetLEDLatchStatus (std::uint8_t *const latchStatus) const =0
 Get LED Over Current Status. More...
 
virtual SIPLStatus LEDLatchReset () const =0
 Reset LED Over Current condition. More...
 
virtual SIPLStatus GetLEDStatus (bool *const ledStatus) const =0
 Get LED Status. More...
 
virtual SIPLStatus GetTemperature (std::int16_t *const temperature) const =0
 Read sensor temperature. More...
 
virtual SIPLStatus GetProximityStatus (bool *const proximityStatus) const =0
 Read proximity sensor reading. More...
 
virtual SIPLStatus WriteEEPROM (uint16_t const addr, uint32_t const length, uint8_t *const buffer) const =0
 Write to EEPROM. More...
 
virtual SIPLStatus SetExposure (std::uint8_t const exposureHigh, std::uint8_t const exposureLow, std::uint8_t const fineExposureHigh, std::uint8_t const fineExposureLow) const =0
 Update exposure parameters. More...
 
virtual SIPLStatus GetExposure (std::uint8_t *const exposureHigh, std::uint8_t *const exposureLow, std::uint8_t *const fineExposureHigh, std::uint8_t *const fineExposureLow) const =0
 Get exposure parameters. More...
 
virtual SIPLStatus SetAnalogGain (std::uint8_t const gainCoarse, std::uint8_t const gainFine) const =0
 Update analog gain. More...
 
virtual SIPLStatus GetAnalogGain (std::uint8_t *const gainCoarse, std::uint8_t *const gainFine) const =0
 Get analog gain. More...
 
virtual SIPLStatus SetDigitalGain (std::uint8_t const coarseDigiGain, std::uint8_t const fineDigiGainHigh, std::uint8_t const fineDigiGainLow) const =0
 Update digital gain. More...
 
virtual SIPLStatus GetDigitalGain (std::uint8_t *const coarseDigiGain, std::uint8_t *const fineDigiGainHigh, std::uint8_t *const fineDigiGainLow) const =0
 Get digital gain. More...
 
virtual SIPLStatus ParseCustomEmbeddedData (std::uint8_t const *const embeddedBufTop, std::uint32_t const embeddedBufTopSize, std::uint8_t const *const embeddedBufBottom, std::uint32_t const embeddedBufBottomSize, OV2311CustomEmbeddedData *const parsedData) const =0
 Parse raw custom embedded data input and populate output structure with parsed custom embedded data. More...
 
virtual SIPLStatus writeRegistersOV2311 (uint16_t const regAddr, uint16_t const dataLength, uint8_t const *const dataBuff) const =0
 Write OV2311 sensor registers (Debug API - Non-Safety Only) More...
 
virtual SIPLStatus readRegistersOV2311 (uint16_t const regAddr, uint16_t const dataLength, uint8_t *const dataBuff) const =0
 Read OV2311 sensor registers (Debug API - Non-Safety Only) More...
 
virtual SIPLStatus setDeserData (uint32_t deviceIndex, uint32_t registerNum, uint32_t dataLength, uint8_t *dataBuff) const =0
 Set deserializer register data (Debug API - Non-Safety Only) More...
 
virtual SIPLStatus getDeserData (uint32_t deviceIndex, uint32_t registerNum, uint32_t dataLength, uint8_t *dataBuff) const =0
 Get deserializer register data (Debug API - Non-Safety Only) More...
 
virtual SIPLStatus GetSerializerReg (uint16_t const regAddr, uint8_t *const regVal) const =0
 Read specified serializer register. More...
 
virtual SIPLStatus writeRegistersMAX96717F (uint16_t const regAddr, uint32_t const dataLength, uint8_t const *const dataBuff) const =0
 Write MAX96717F serializer registers (Debug API - Non-Safety Only) More...
 
virtual SIPLStatus readRegistersMAX96717F (uint16_t const regAddr, uint32_t const dataLength, uint8_t *const dataBuff) const =0
 Read MAX96717F serializer registers (Debug API - Non-Safety Only) More...
 
virtual SIPLStatus SetWCEEPROM (bool const writeControl) const =0
 Set EEPROM write control (Debug API - Non-Safety Only) More...
 
virtual const UUID & getInstanceInterfaceID () const noexcept=0
 A call to get the ID from the instance of the class inheriting this interface. More...
 

Member Function Documentation

◆ GetAnalogGain()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetAnalogGain ( std::uint8_t *const  gainCoarse,
std::uint8_t *const  gainFine 
) const
pure virtual

Get analog gain.

Parameters
[out]gainCoarseCoarse analog gain
[out]fainFineFine analog gain
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ getDeserData()

virtual SIPLStatus nvsipl::OV2311CustomInterface::getDeserData ( uint32_t  deviceIndex,
uint32_t  registerNum,
uint32_t  dataLength,
uint8_t *  dataBuff 
) const
pure virtual

Get deserializer register data (Debug API - Non-Safety Only)

This function reads data from deserializer registers for debug and development purposes. Not supported in safety builds.

Parameters
[in]deviceIndexThe device index. Valid range: [0, UINT32_MAX]
[in]registerNumThe register number. Valid range: [0, UINT32_MAX]
[in]dataLengthLength of data to read. Valid range: [0, UINT32_MAX]
[out]dataBuffBuffer to store read data. Valid value: [non-NULL]
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTArgument validation failed
NVSIPL_STATUS_ERRORRegister read failed


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
    • 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: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ GetDigitalGain()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetDigitalGain ( std::uint8_t *const  coarseDigiGain,
std::uint8_t *const  fineDigiGainHigh,
std::uint8_t *const  fineDigiGainLow 
) const
pure virtual

Get digital gain.

Parameters
[out]CoarseDigiGainCoarse digital gain
[out]fineDigiGainHighFine digital gain high
[out]fineDigiGainLowFine digital gain low
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ GetExposure()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetExposure ( std::uint8_t *const  exposureHigh,
std::uint8_t *const  exposureLow,
std::uint8_t *const  fineExposureHigh,
std::uint8_t *const  fineExposureLow 
) const
pure virtual

Get exposure parameters.

This function allows application to get coarse and fine exposure values

Parameters
[out]exposureHighCoarse exposure high byte
[out]exposureLowCoarse exposure low byte
[out]fineExposureHighFine exposure high byte
[out]fineExposureLowFine exposure low byte
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ GetIllumination()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetIllumination ( std::uint32_t *const  strobeWidth,
std::uint16_t *const  tNegative 
) const
pure virtual

Read strobe width and strobe offset.

Parameters
[out]strobeWidthlocation to store strobe width
[out]tNegativelocation to store strobe offset
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ getInstanceInterfaceID()

virtual const UUID& nvsipl::Interface::getInstanceInterfaceID ( ) const
pure virtualnoexceptinherited

A call to get the ID from the instance of the class inheriting this interface.

Return values
Uniqueidentifier for the interface instance


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
    • 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

Implemented in nvsipl::OvtHDRBayerRX0CustomInterface, nvsipl::OvtSDRRGBIrRX0CustomInterface, nvsipl::OvtSDRMonoRX0CustomInterface, nvsipl::MAX96712FusaNvCustomInterface, nvsipl::MAX96724FusaNvCustomInterface, nvsipl::MAX96792ACustomInterface, nvsipl::IMX728_CustomInterface, nvsipl::IMX728_CustomInterface, nvsipl::IMX623_CustomInterface, nvsipl::OvtDefaultCustomInterface, and nvsipl::INvSIPLISPStatCustomInterface.

◆ GetLEDLatchStatus()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetLEDLatchStatus ( std::uint8_t *const  latchStatus) const
pure virtual

Get LED Over Current Status.

This function allows application to obtain LED Over Current (latch) status

Parameters
[out]latchStatuslocation to store latch status
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ GetLEDStatus()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetLEDStatus ( bool *const  ledStatus) const
pure virtual

Get LED Status.

This function allows application to obtain LED On/Off status

Parameters
[out]ledStatuslocation to store LED status
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ GetProximityStatus()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetProximityStatus ( bool *const  proximityStatus) const
pure virtual

Read proximity sensor reading.

This function allows application to read current reading of proximity sensor. True indicates object was detected close to the sensor and False otherwise

Parameters
[out]proximityStatuslocation to store proximity senor reading
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ GetSensorReg()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetSensorReg ( std::uint16_t const  regAddr,
std::uint8_t *const  regVal 
) const
pure virtual

Read From OV2311 Sensor Register.

This function allows application to get a value from the specified register. Please note that not all registers could be read with this function. Only a subset of registers could be obtained with this function and the access control is implemented inside the function

Parameters
[in]regAddrAddress of the register
[out]regValData read from the register
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ GetSerializerReg()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetSerializerReg ( uint16_t const  regAddr,
uint8_t *const  regVal 
) const
pure virtual

Read specified serializer register.

This fuction is used by the application to read a serializer register. Please note that only a subset of serializer registers are allowed to be read by the application and this access control is implemented inside the driver.

Parameters
[in]regAddrAddress of the register
[out]regValData read from the register
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTArgument validation failed
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ GetTemperature()

virtual SIPLStatus nvsipl::OV2311CustomInterface::GetTemperature ( std::int16_t *const  temperature) const
pure virtual

Read sensor temperature.

This function allows application to read ensor temperature in degree Celsius

Parameters
[out]temperaturelocation to store temperature
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ LEDLatchReset()

virtual SIPLStatus nvsipl::OV2311CustomInterface::LEDLatchReset ( ) const
pure virtual

Reset LED Over Current condition.

Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ ParseCustomEmbeddedData()

virtual SIPLStatus nvsipl::OV2311CustomInterface::ParseCustomEmbeddedData ( std::uint8_t const *const  embeddedBufTop,
std::uint32_t const  embeddedBufTopSize,
std::uint8_t const *const  embeddedBufBottom,
std::uint32_t const  embeddedBufBottomSize,
OV2311CustomEmbeddedData *const  parsedData 
) const
pure virtual

Parse raw custom embedded data input and populate output structure with parsed custom embedded data.

This function is used by the application to get the custom embedded data parsed by the driver. The caller of this function needs to allocate the memory to store raw custom embedded data.

Parameters
[in]embeddedBufTopBuffer pointer to top chunk of embedded data.
[in]embeddedBufTopSizeSize of top chunk of embedded data.
[in]embeddedBufBotBuffer pointer to bottom chunk of embedded data.
[in]embeddedBufBotSizeSize of bottom chunk of embedded data.
[out]embeddedDataCustom embedded data from OV2311 sensor.
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTArgument validation failed


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ readRegistersMAX96717F()

virtual SIPLStatus nvsipl::OV2311CustomInterface::readRegistersMAX96717F ( uint16_t const  regAddr,
uint32_t const  dataLength,
uint8_t *const  dataBuff 
) const
pure virtual

Read MAX96717F serializer registers (Debug API - Non-Safety Only)

This function reads data from MAX96717F serializer registers for debug and development purposes. Not supported in safety builds.

Parameters
[in]regAddrThe register address. Valid range: [0, UINT16_MAX]
[in]dataLengthLength of data to read. Valid range: [0, UINT32_MAX]
[out]dataBuffBuffer to store read data. Valid value: [non-NULL]
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTArgument validation failed
NVSIPL_STATUS_ERRORRegister read failed


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
    • 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: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ readRegistersOV2311()

virtual SIPLStatus nvsipl::OV2311CustomInterface::readRegistersOV2311 ( uint16_t const  regAddr,
uint16_t const  dataLength,
uint8_t *const  dataBuff 
) const
pure virtual

Read OV2311 sensor registers (Debug API - Non-Safety Only)

This function reads data from OV2311 sensor registers for debug and development purposes. Not supported in safety builds.

Parameters
[in]regAddrThe register address. Valid range: [0, UINT16_MAX]
[in]dataLengthLength of data to read. Valid range: [0, UINT16_MAX]
[out]dataBuffBuffer to store read data. Valid value: [non-NULL]
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTArgument validation failed
NVSIPL_STATUS_ERRORRegister read failed


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
    • 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: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ SetAnalogGain()

virtual SIPLStatus nvsipl::OV2311CustomInterface::SetAnalogGain ( std::uint8_t const  gainCoarse,
std::uint8_t const  gainFine 
) const
pure virtual

Update analog gain.

Parameters
[in]gainCoarseCoarse analog gain
[in]fainFineFine analog gain
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ setDeserData()

virtual SIPLStatus nvsipl::OV2311CustomInterface::setDeserData ( uint32_t  deviceIndex,
uint32_t  registerNum,
uint32_t  dataLength,
uint8_t *  dataBuff 
) const
pure virtual

Set deserializer register data (Debug API - Non-Safety Only)

This function writes data to deserializer registers for debug and development purposes. Not supported in safety builds.

Parameters
[in]deviceIndexThe device index. Valid range: [0, UINT32_MAX]
[in]registerNumThe register number. Valid range: [0, UINT32_MAX]
[in]dataLengthLength of data to write. Valid range: [0, UINT32_MAX]
[in]dataBuffBuffer containing data to write. Valid value: [non-NULL]
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTArgument validation failed
NVSIPL_STATUS_ERRORRegister write failed


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
    • 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: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ SetDigitalGain()

virtual SIPLStatus nvsipl::OV2311CustomInterface::SetDigitalGain ( std::uint8_t const  coarseDigiGain,
std::uint8_t const  fineDigiGainHigh,
std::uint8_t const  fineDigiGainLow 
) const
pure virtual

Update digital gain.

Parameters
[in]coarseDigiGainCoarse digital gain
[in]fineDigiGainHighFine digital gain high byte
[in]fineDigiGainLowFine digital gain low byte
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ SetExposure()

virtual SIPLStatus nvsipl::OV2311CustomInterface::SetExposure ( std::uint8_t const  exposureHigh,
std::uint8_t const  exposureLow,
std::uint8_t const  fineExposureHigh,
std::uint8_t const  fineExposureLow 
) const
pure virtual

Update exposure parameters.

This function allows application to update coarse and fine exposure values

Parameters
[in]exposureHighCoarse exposure high byte
[in]exposureLowCoarse exposure low byte
[in]fineExposureHighFine exposure high byte
[in]fineExposureLowFine exposure low byte
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ SetIllumination()

virtual SIPLStatus nvsipl::OV2311CustomInterface::SetIllumination ( std::uint32_t const  strobeWidth,
std::uint16_t const  tNegative 
) const
pure virtual

Update strobe width and strobe offset.

Parameters
[in]strobeWidthstrobe width
[in]tNegativestrobe offset
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ SetSensorReg()

virtual SIPLStatus nvsipl::OV2311CustomInterface::SetSensorReg ( std::uint16_t const  regAddr,
std::uint8_t const  regVal 
) const
pure virtual

Write To OV2311 Sensor Register.

This function allows application to set a value to the specified register. Please note that not all registers could be written with this function. Only a subset of registers could be set with this function and the access control is implemented inside the function

Parameters
[in]regAddrAddress of the register
[in]regValData to be written to the register
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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: No
    • Operational: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ SetWCEEPROM()

virtual SIPLStatus nvsipl::OV2311CustomInterface::SetWCEEPROM ( bool const  writeControl) const
pure virtual

Set EEPROM write control (Debug API - Non-Safety Only)

This function enables or disables write access to the EEPROM for debug and development purposes. Not supported in safety builds.

Parameters
[in]writeControlTrue to enable EEPROM writes, false to disable.
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_ERROROperation failed


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
    • 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: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ WriteEEPROM()

virtual SIPLStatus nvsipl::OV2311CustomInterface::WriteEEPROM ( uint16_t const  addr,
uint32_t const  length,
uint8_t *const  buffer 
) const
pure virtual

Write to EEPROM.

Precondition
Must be called after CNvMDeserializer::Init() and CNvMCameraModule::Init().

This function allows application to write data to EEPROM

Parameters
[in]addrStart address
[in]lengthLength of data
[in]bufferData to be written
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTInvalid input parameter(s)
NVSIPL_STATUS_ERRORAny other error.


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
    • 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

◆ writeRegistersMAX96717F()

virtual SIPLStatus nvsipl::OV2311CustomInterface::writeRegistersMAX96717F ( uint16_t const  regAddr,
uint32_t const  dataLength,
uint8_t const *const  dataBuff 
) const
pure virtual

Write MAX96717F serializer registers (Debug API - Non-Safety Only)

This function writes data to MAX96717F serializer registers for debug and development purposes. Not supported in safety builds.

Parameters
[in]regAddrThe register address. Valid range: [0, UINT16_MAX]
[in]dataLengthLength of data to write. Valid range: [0, UINT32_MAX]
[in]dataBuffBuffer containing data to write. Valid value: [non-NULL]
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTArgument validation failed
NVSIPL_STATUS_ERRORRegister write failed


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
    • 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: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

◆ writeRegistersOV2311()

virtual SIPLStatus nvsipl::OV2311CustomInterface::writeRegistersOV2311 ( uint16_t const  regAddr,
uint16_t const  dataLength,
uint8_t const *const  dataBuff 
) const
pure virtual

Write OV2311 sensor registers (Debug API - Non-Safety Only)

This function writes data to OV2311 sensor registers for debug and development purposes. Not supported in safety builds.

Parameters
[in]regAddrThe register address. Valid range: [0, UINT16_MAX]
[in]dataLengthLength of data to write. Valid range: [0, UINT16_MAX]
[in]dataBuffBuffer containing data to write. Valid value: [non-NULL]
Return values
NVSIPL_STATUS_OKSuccess
NVSIPL_STATUS_BAD_ARGUMENTArgument validation failed
NVSIPL_STATUS_ERRORRegister write failed


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
    • 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: Yes
    • Reinit/Deinit Preparation: No
    • Maturity: GA

The documentation for this class was generated from the following file: