NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
AR0820_CUST1_CustomData.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved. All
3  * information contained herein is proprietary and confidential to NVIDIA
4  * Corporation. Any use, reproduction, or disclosure without the written
5  * permission of NVIDIA Corporation is prohibited.
6  */
7 
8 #ifndef AR0820_CUST1_CUSTOMDATA_H
9 #define AR0820_CUST1_CUSTOMDATA_H
10 
11 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
12 #ifdef __cplusplus
13 #include <cstdbool>
14 #include <cmath>
15 #include <cstdint>
16 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
17 #else
18 #include <stdbool.h>
19 #include <math.h>
20 #include <stdint.h>
21 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
22 #endif
23 
25 #define MAXNUM_VOLTAGE ( 18U )
26 
27 #define MAX_PDI_REGNUM ( 400U )
28 
29 #define ROI_STATS_BYTE_NUM ( 18U )
30 
31 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
32 #ifdef __cplusplus
33 namespace nvsipl {
34 extern "C" {
35 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
36 #endif
37 
39 typedef struct {
41  uint16_t pdi[MAX_PDI_REGNUM];
43 
45 typedef struct {
47  uint16_t volterr;
49  uint16_t temperr;
51  uint16_t statserr;
53  float_t currvolt[MAXNUM_VOLTAGE];
55  float_t maxvolt[MAXNUM_VOLTAGE];
57  float_t minvolt[MAXNUM_VOLTAGE];
59  float_t currtemp;
61  uint8_t expect_roiStats[ROI_STATS_BYTE_NUM];
63  uint8_t roiStats[ROI_STATS_BYTE_NUM];
65 
70 typedef struct {
72  uint8_t intr5Reg;
74  uint8_t intr7Reg;
76  uint8_t decErrA;
78  uint8_t idleErr;
81  uint8_t maxRTErrCC;
84  uint8_t maxRTErrGPIO;
87  uint8_t maxRTErrI2CX;
90  uint8_t maxRTErrI2CY;
93  uint8_t phy1LpErr;
96  uint8_t phy1HsErr;
99  uint8_t phy2LpErr;
102  uint8_t phy2HsErr;
105  uint8_t ctrl1CSIErrL;
108  uint8_t ctrl1CSIErrH;
110  uint8_t intr3Reg;
112  uint8_t ctrl3Reg;
114  uint8_t gpio5SysCheck;
116 
118 #define NUM_ACKS ( 5 )
119 
123 typedef struct {
130  struct {
131  uint8_t index;
132  uint8_t value;
133  } reg[NUM_ACKS];
135 
136 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
137 #ifdef __cplusplus
138 }
139 } /* namespace nvsipl */
140 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
141 #endif
142 
143 #endif //AR0820_CUST1_CUSTOMDATA_H
MAX_PDI_REGNUM
#define MAX_PDI_REGNUM
Maxinum number of AR0820's raw PDI data.
Definition: AR0820_CUST1_CustomData.h:27
MAX9295AErrbErrInfo::gpio5SysCheck
uint8_t gpio5SysCheck
MFP5 (SYS_CHECK) status GPIO5 register bit3 in MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:114
ROI_STATS_BYTE_NUM
#define ROI_STATS_BYTE_NUM
AR0820's ROI Stats byte number.
Definition: AR0820_CUST1_CustomData.h:29
MAX9295AErrbErrInfo::intr3Reg
uint8_t intr3Reg
INTR3 interrupt register in MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:110
MAX9295AErrbErrInfo::maxRTErrGPIO
uint8_t maxRTErrGPIO
Indicates max re-transmission error in GPIO path.
Definition: AR0820_CUST1_CustomData.h:84
MAX9295AErrbErrInfo::phy2HsErr
uint8_t phy2HsErr
Indicates MIPI PHY2 high speed error register value phy2_hs_err in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:102
AR0820CustomEmbeddedData::volterr
uint16_t volterr
indicate voltage error
Definition: AR0820_CUST1_CustomData.h:47
MAX9295AErrbErrInfo::maxRTErrCC
uint8_t maxRTErrCC
Indicates max re-transmission error in main control channel path.
Definition: AR0820_CUST1_CustomData.h:81
TPS650332CustomStartupAck::index
uint8_t index
Definition: AR0820_CUST1_CustomData.h:131
AR0820CustomEmbeddedData::temperr
uint16_t temperr
indicate temperature error
Definition: AR0820_CUST1_CustomData.h:49
MAX9295AErrbErrInfo::ctrl1CSIErrH
uint8_t ctrl1CSIErrH
Indicates CSI2 Ctrl1 status register value in ctrl1_csi_err_h bits[2:0] in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:108
MAX9295AErrbErrInfo
Describes the custom MAX9295A serializer error information related to ERRB pin and needed by the appl...
Definition: AR0820_CUST1_CustomData.h:70
MAX9295AErrbErrInfo::phy1HsErr
uint8_t phy1HsErr
Indicates MIPI PHY1 high speed error register value phy1_hs_err in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:96
TPS650332CustomStartupAck
Describes the custom TPS650332 PMIC startup ACK information needed by the application.
Definition: AR0820_CUST1_CustomData.h:123
AR0820CustomEmbeddedData::currtemp
float_t currtemp
current temperature
Definition: AR0820_CUST1_CustomData.h:59
MAX9295AErrbErrInfo::idleErr
uint8_t idleErr
Indicates the number of idle-word errors detected in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:78
AR0820CustomEmbeddedData::statserr
uint16_t statserr
indicate stats error
Definition: AR0820_CUST1_CustomData.h:51
MAX9295AErrbErrInfo::ctrl3Reg
uint8_t ctrl3Reg
CTRL3 status register in MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:112
AR0820PDIList
the data array of AR0820's PDI data
Definition: AR0820_CUST1_CustomData.h:39
MAX9295AErrbErrInfo::intr5Reg
uint8_t intr5Reg
Indicates the value of INTR5 interrupt register in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:72
MAX9295AErrbErrInfo::ctrl1CSIErrL
uint8_t ctrl1CSIErrL
Indicates CSI2 Ctrl1 status register value in ctrl1_csi_err_l bits[7:0] in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:105
NUM_ACKS
#define NUM_ACKS
The number of PMIC TPS650332 startup ACK registers.
Definition: AR0820_CUST1_CustomData.h:118
AR0820CustomEmbeddedData
the parsed AR0820 embedded data (customized information)
Definition: AR0820_CUST1_CustomData.h:45
MAX9295AErrbErrInfo::maxRTErrI2CY
uint8_t maxRTErrI2CY
Indicates max re-transmission error in passthrough channel 2 I2CY path.
Definition: AR0820_CUST1_CustomData.h:90
MAX9295AErrbErrInfo::intr7Reg
uint8_t intr7Reg
Indicates the value of INTR7 interrupt register in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:74
MAXNUM_VOLTAGE
#define MAXNUM_VOLTAGE
Maxinum number of AR0820's voltage data.
Definition: AR0820_CUST1_CustomData.h:25
nvsipl
Contains the classes and variables for implementation of SIPL.
Definition: NvSIPLCamera.hpp:44
MAX9295AErrbErrInfo::decErrA
uint8_t decErrA
Indicates the number of Link A decoding errors detected in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:76
MAX9295AErrbErrInfo::phy2LpErr
uint8_t phy2LpErr
Indicates MIPI PHY2 LP error register value phy2_lp_err in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:99
TPS650332CustomStartupAck::value
uint8_t value
Definition: AR0820_CUST1_CustomData.h:132
MAX9295AErrbErrInfo::phy1LpErr
uint8_t phy1LpErr
Indicates MIPI PHY1 LP error register value phy1_lp_err in the MAX9295A serializer.
Definition: AR0820_CUST1_CustomData.h:93
MAX9295AErrbErrInfo::maxRTErrI2CX
uint8_t maxRTErrI2CX
Indicates max re-transmission error in passthrough channel 1 I2CX path.
Definition: AR0820_CUST1_CustomData.h:87