NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvsipl::OvtDefaultCustomInterface Class Referenceabstract

Detailed Description

Definition at line 34 of file OVTCustomInterface.hpp.

Inheritance diagram for nvsipl::OvtDefaultCustomInterface:
Collaboration diagram for nvsipl::OvtDefaultCustomInterface:

Public Member Functions

const UUID & getInstanceInterfaceID () const noexcept override
 Get Sensor OX5B instance custom interface ID. More...
 
virtual SIPLStatus GetSerializerVideoStatus (MAX96717FVideoStatus *const customErrInfo) const =0
 Get serializer's video status. More...
 
virtual SIPLStatus VerifySerGPIOReadBackStatus (void) const =0
 Verify Serializer GPIO Readback Status. More...
 
virtual SIPLStatus PSCheckIsetComparator (uint8_t *const dataBuff) const =0
 Read ISET(Current-Limit Setting) value from Power Switch (PS) Status register. More...
 
virtual SIPLStatus PSReadVoltageAndCurrentValues (uint8_t const dataBuff_size, uint16_t *const dataBuff) const =0
 Reads the voltage and current values for a Power Switch link/channel. More...
 
virtual SIPLStatus MAX25614GetErrorInfo (MAX25614CustomErrInfo *const customErrInfo)=0
 Get error info for MAX25614 LED Driver. More...
 
virtual SIPLStatus MAX25614GetADCStatus (MAX25614ADCStatus *const statusInfo)=0
 Read custom info values for MAX25614 LED Driver. More...
 
virtual SIPLStatus MAX25614IsFLTLow (bool *const fltStatus)=0
 Read custom info values for MAX25614 LED Driver. More...
 

Static Public Member Functions

static const UUID & getClassInterfaceID ()
 Get Sensor OX5B class custom interface ID. More...
 

Protected Member Functions

 ~OvtDefaultCustomInterface ()=default
 

Constructor & Destructor Documentation

◆ ~OvtDefaultCustomInterface()

nvsipl::OvtDefaultCustomInterface::~OvtDefaultCustomInterface ( )
protecteddefault

Member Function Documentation

◆ getClassInterfaceID()

static const UUID& nvsipl::OvtDefaultCustomInterface::getClassInterfaceID ( )
inlinestatic

Get Sensor OX5B class custom interface ID.

This function is used by application to get sensor's custom interface ID. Application can use this ID to get the interface of the class.

Precondition
None.
Return values
OVT_DEFAULT_CUSTOM_INTERFACE_IDCustom interface id for OX5B. Valid value: OVT_DEFAULT_CUSTOM_INTERFACE_ID


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

Definition at line 71 of file OVTCustomInterface.hpp.

References nvsipl::OVT_DEFAULT_CUSTOM_INTERFACE_ID.

◆ getInstanceInterfaceID()

const UUID& nvsipl::OvtDefaultCustomInterface::getInstanceInterfaceID ( ) const
inlineoverridevirtualnoexcept

Get Sensor OX5B instance custom interface ID.

This function is used by application to get sensor's custom interface ID. Application can use this ID to get the interface of the instance.

Precondition
None.
Return values
OVT_DEFAULT_CUSTOM_INTERFACE_IDCustom interface id for OX5B. Valid value: OVT_DEFAULT_CUSTOM_INTERFACE_ID


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

Implements nvsipl::Interface.

Definition at line 109 of file OVTCustomInterface.hpp.

References nvsipl::OVT_DEFAULT_CUSTOM_INTERFACE_ID.

◆ GetSerializerVideoStatus()

virtual SIPLStatus nvsipl::OvtDefaultCustomInterface::GetSerializerVideoStatus ( MAX96717FVideoStatus *const  customErrInfo) const
pure virtual

Get serializer's video status.

This function is used to get serializer's video status by reading OVERFLOW bit, TUN_FIFO_OVERFLOW bit and PCLK detected (PCLKDET) bit status which are related to the health of the video transmitted from the serializer. This API is virtual function and will be overridden by other implementation.

Precondition
The serializer should be in streaming state for video input.
Parameters
[out]customErrInfoPointer to struct MAX96717FVideoStatus which contains status of serializer OVERFLOW bit, TUN_FIFO_OVERFLOW bit and PCLKDET bit. Valid range : [non-NULL].
Return values
NVSIPL_STATUS_OKIf the video transmitted from the serializer is healthy.
NVSIPL_STATUS_BAD_ARGUMENTInput parameter validation failed.
(SIPLStatus)Any errors from dependencies.


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

◆ MAX25614GetADCStatus()

virtual SIPLStatus nvsipl::OvtDefaultCustomInterface::MAX25614GetADCStatus ( MAX25614ADCStatus *const  statusInfo)
pure virtual

Read custom info values for MAX25614 LED Driver.

This function reads input/output voltages and output channel current for a given MAX25614 based on the mask specified by statusInfo. This API is virtual function and will be overridden by other implementation.

The user needs to invoke this function for getting ADC status information from LED Driver device to detect errors of Camera modules using MAX25614. This API needs to be invoked with periodicity of <= 100ms.

Precondition
Serializer and MAX25614 must be powered on.
Parameters
[in,out]statusInfoPointer to struct MAX25614ADCStatus which contains information need to be filled by driver, bit field indicating the info flags set is indexed by enum MAX25614ADCStatusType. Valid range : [non-NULL].
Return values
NVSIPL_STATUS_OKIf successfully able to read Input/Output voltages and Current values.
NVSIPL_STATUS_BAD_ARGUMENTInput parameter validation failed.
(SIPLStatus)Any errors from dependencies.


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

◆ MAX25614GetErrorInfo()

virtual SIPLStatus nvsipl::OvtDefaultCustomInterface::MAX25614GetErrorInfo ( MAX25614CustomErrInfo *const  customErrInfo)
pure virtual

Get error info for MAX25614 LED Driver.

This function is used to get information about error bits in the relevant ACK registers, which are set in case of interrupt faults. This API is virtual function and will be overridden by other implementation.

The user needs to invoke this function for getting detailed error information from the LED Driver device in the event of error from Camera modules using MAX25614.

Precondition
Serializer and MAX25614 must be powered on.
Parameters
[out]customErrInfoPointer to struct MAX25614CustomErrInfo which contains error information filled by driver, bit field indicating the error flags set is indexed by enum MAX25614CustomErrType. Valid range : [non-NULL].
Return values
NVSIPL_STATUS_OKIf successfully able to get error info for MAX25614 LED Driver.
NVSIPL_STATUS_NOT_SUPPORTEDIf MAX25614 LED Driver GetErrorInfo function is not supported.
NVSIPL_STATUS_BAD_ARGUMENTInput parameter validation failed.
(SIPLStatus)Any errors from dependencies.


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

◆ MAX25614IsFLTLow()

virtual SIPLStatus nvsipl::OvtDefaultCustomInterface::MAX25614IsFLTLow ( bool *const  fltStatus)
pure virtual

Read custom info values for MAX25614 LED Driver.

This function reads FLT status and fills true or false in fltStatus. This API is virtual function and will be overridden by other implementation.

The user needs to invoke this function for getting the FLT status information from LED Driver device to detect faults for Camera modules using MAX25614.

Precondition
Serializer and MAX25614 must be powered on.
Parameters
[out]fltStatusPointer to boolean variable which contains information need to be filled by driver, true or false returns whether FLT flags is set or not. Valid range : [non-NULL].
Return values
NVSIPL_STATUS_OKIf successfully able to read Input/Output voltages and Current values.
NVSIPL_STATUS_BAD_ARGUMENTInput parameter validation failed.
(SIPLStatus)Any errors from dependencies.


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

◆ PSCheckIsetComparator()

virtual SIPLStatus nvsipl::OvtDefaultCustomInterface::PSCheckIsetComparator ( uint8_t *const  dataBuff) const
pure virtual

Read ISET(Current-Limit Setting) value from Power Switch (PS) Status register.

This function reads the ISET value for the link specified by linkIndex and stores it in the data pointer. ISET value of 0 means no error. When ISET pin is open or shorted, ISET value of 1 is reported. This API is virtual function and will be overridden by other implementation.

Precondition
Power Switch must be powered on using GPIO control.
Parameters
[out]dataBuffBuffer pointer to output (ISET) value from Power Switch (PS) status register. Valid range : [non-NULL].
Return values
NVSIPL_STATUS_OKIf successfully able to read ISET value.
NVSIPL_STATUS_BAD_ARGUMENTInput parameter validation failed.
(SIPLStatus)Any errors from dependencies.


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

◆ PSReadVoltageAndCurrentValues()

virtual SIPLStatus nvsipl::OvtDefaultCustomInterface::PSReadVoltageAndCurrentValues ( uint8_t const  dataBuff_size,
uint16_t *const  dataBuff 
) const
pure virtual

Reads the voltage and current values for a Power Switch link/channel.

This function reads input/output voltages and output channel current for a given Power Switch link/channel. This API is virtual function and will be overridden by other implementation.

Precondition
Power Switch must be powered on using GPIO control.
Parameters
[in]dataBuff_sizeValue is fixed to 5. Calling function needs to allocate space for the 5 values specified below in dataBuff. Valid range : [5]
[out]dataBuffpointer to the array Voltage/Current values for specified linkIndex. Index 0: Output Voltage. Index 1: Vin. Index 2: Vdd. Index 3: VISET. Index 4: Output Channel Current. Valid range : [non-NULL].
Return values
NVSIPL_STATUS_OKIf successfully able to read Input/Output voltages and Current values.
NVSIPL_STATUS_BAD_ARGUMENTInput parameter validation failed.
(SIPLStatus)Any errors from dependencies.


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

◆ VerifySerGPIOReadBackStatus()

virtual SIPLStatus nvsipl::OvtDefaultCustomInterface::VerifySerGPIOReadBackStatus ( void  ) const
pure virtual

Verify Serializer GPIO Readback Status.

This function is used to perform run-time GPIO readback verification test on applicable GPIO pins. This API is virtual function and will be overridden by other implementation.

Precondition
A valid serializer object must be created and powered on. Also camera needs to be in streaming state.
Return values
NVSIPL_STATUS_OKIf Serializer GPIO Readback Status works normally.
NVSIPL_STATUS_BAD_ARGUMENTInput parameter validation failed.
(SIPLStatus)Any errors from dependencies.


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

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