NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
IMX390_CUST1_V2_CustomData.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 #ifndef IMX390_CUST1_V2_CUSTOMDATA_H
14 #define IMX390_CUST1_V2_CUSTOMDATA_H
15 
16 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
17 #ifdef __cplusplus
18 #include <cstdbool>
19 #include <cmath>
20 #include <cstdint>
21 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
22 #else
23 #include <stdbool.h>
24 #include <math.h>
25 #include <stdint.h>
26 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
27 #endif
28 
29 #include "MAX96717F_CustomData.h"
30 
31 #define IMX390_ERR_MAX (8U)
32 #define IMX390_EEPROM_MAX_BYTES (152U)
33 
34 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
35 #ifdef __cplusplus
36 namespace nvsipl {
37 extern "C" {
38 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
39 #endif
40 
41 typedef enum {
46 
50 typedef struct {
51  /* Master flag to indicate there is a sensor error */
54  bool wdtError;
62  bool abistError;
66  bool fsyncError;
74 typedef enum {
79 
84 typedef struct {
86  int16_t horzWinShift;
88  int16_t vertWinShift;
90 
94 typedef enum {
122 
126 typedef enum {
146 
151 typedef enum {
178 //coverity[misra_c_2012_rule_2_3_violation] # False positive
180 
185 typedef enum {
202 //coverity[misra_c_2012_rule_2_3_violation] # False positive
204 
208 typedef struct
209 {
210  /* Indicates if the data held by the strucutre is valid */
211  bool isValid;
212  /* Contains the valid EEPROM Bytes */
213  uint8_t eepromBytes[IMX390_EEPROM_MAX_BYTES];
214 //coverity[misra_c_2012_rule_2_3_violation] # False positive
216 
217 
221 typedef struct {
223  uint32_t errorInfo;
225  uint32_t errArr[IMX390_ERR_MAX];
227 
232 typedef enum {
239 //coverity[misra_c_2012_rule_2_3_violation] # False positive
241 
242 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
243 #ifdef __cplusplus
244 } /* end of extern C */
245 } /* end of namespace nvsipl */
246 /* coverity[misra_cpp_2008_rule_16_2_1_violation] : intentional TID-1433 */
247 #endif
248 
249 #endif /* IMX390_CUST1_V2_CUSTOMDATA_H */
250 
IMX390CustomEmbeddedData::fsyncError
bool fsyncError
Forced Synchronization Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:66
SLASEL0_OUT
@ SLASEL0_OUT
SLASEL0_OUT Pin's state.
Definition: IMX390_CUST1_V2_CustomData.h:189
PMIC_FAULT_STATUS_BUCK2
@ PMIC_FAULT_STATUS_BUCK2
BUCK2 Fault status.
Definition: IMX390_CUST1_V2_CustomData.h:155
IMX390_EEPROM_MAX_BYTES
#define IMX390_EEPROM_MAX_BYTES
Definition: IMX390_CUST1_V2_CustomData.h:32
IMX390_SM_COMCHECK_ERROR_INFO_SPI
@ IMX390_SM_COMCHECK_ERROR_INFO_SPI
Communication Check Safety Mechanism (for SPI) error information.
Definition: IMX390_CUST1_V2_CustomData.h:140
IMX390CustomEmbeddedData::shortvError
bool shortvError
Short V Alert Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:68
IMX390_SM_MAX_ERROR
@ IMX390_SM_MAX_ERROR
Max/Invalid Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:120
IMX390_SM_COMCHECK_ERROR
@ IMX390_SM_COMCHECK_ERROR
Communication Check Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:112
IMX390_SM_CTRLFLOW_ERROR_INFO
@ IMX390_SM_CTRLFLOW_ERROR_INFO
Control flow Safety Mechanism error information.
Definition: IMX390_CUST1_V2_CustomData.h:134
IMX390CustomEmbeddedData::abistError
bool abistError
Analog Built-in Self Test Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:62
SLASEL2_OUT
@ SLASEL2_OUT
SLASEL2_OUT Pin's state.
Definition: IMX390_CUST1_V2_CustomData.h:193
IMX390CustomEmbeddedData::ctrlflowError
bool ctrlflowError
Control Flow Monitoring Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:60
IMX390_SM_ABIST_ERROR
@ IMX390_SM_ABIST_ERROR
Analog Built-in Self Test Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:104
IMX390StatusRegs
IMX390StatusRegs
Enumerates the various sensor status regs.
Definition: IMX390_CUST1_V2_CustomData.h:185
IMX390_SM_ROMCOPY_ERROR
@ IMX390_SM_ROMCOPY_ERROR
ROM Copy Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:118
IMX390_SM_MAX_ERROR_INFO
@ IMX390_SM_MAX_ERROR_INFO
Invalid/Max error information type.
Definition: IMX390_CUST1_V2_CustomData.h:144
IMX390_SM_FSYNC_ERROR
@ IMX390_SM_FSYNC_ERROR
Frame Synchronization Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:108
PMIC_DEV_STATUS
@ PMIC_DEV_STATUS
PMIC Device status.
Definition: IMX390_CUST1_V2_CustomData.h:163
OTP_COM_INITIAL_SETTINGS_CHECK0
@ OTP_COM_INITIAL_SETTINGS_CHECK0
Register0 for Initial Setting Check.
Definition: IMX390_CUST1_V2_CustomData.h:195
IMX390_ERR_MAX
#define IMX390_ERR_MAX
Definition: IMX390_CUST1_V2_CustomData.h:31
IMX390CustomEmbeddedData::comcheckError
bool comcheckError
Communication Check Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:70
IMX390_MFP5_COMREADY
@ IMX390_MFP5_COMREADY
Definition: IMX390_CUST1_V2_CustomData.h:42
IMX390_SM_OBINTEG_ERROR_INFO
@ IMX390_SM_OBINTEG_ERROR_INFO
OB Integration Check Safety Mechanism (for SPI) error information.
Definition: IMX390_CUST1_V2_CustomData.h:142
PMIC_INT_ACK_BUCK3
@ PMIC_INT_ACK_BUCK3
BUCK3 interrupt status.
Definition: IMX390_CUST1_V2_CustomData.h:175
MAX96717F_CustomData.h
IMX390I2cReadbackPeripheral
IMX390I2cReadbackPeripheral
Definition: IMX390_CUST1_V2_CustomData.h:74
PMIC_FAULT_STATUS_BUCK1
@ PMIC_FAULT_STATUS_BUCK1
BUCK1 Fault status.
Definition: IMX390_CUST1_V2_CustomData.h:153
IMX390_SM_WDT_ERROR
@ IMX390_SM_WDT_ERROR
Watch dog timer Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:96
IMX390_I2C_READBACK_ALL
@ IMX390_I2C_READBACK_ALL
Definition: IMX390_CUST1_V2_CustomData.h:75
PMIC_ERR_BUCKx_LDO_CFG
@ PMIC_ERR_BUCKx_LDO_CFG
BUCKx_LDO_CFG Fault status.
Definition: IMX390_CUST1_V2_CustomData.h:161
IMX390CustomEmbeddedData::ramromError
bool ramromError
RAM/ROM ECC Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:56
PMIC_INT_ACK_LDO
@ PMIC_INT_ACK_LDO
LDO interrupt status.
Definition: IMX390_CUST1_V2_CustomData.h:177
PMIC_REV_ID
@ PMIC_REV_ID
PMIC Revision ID.
Definition: IMX390_CUST1_V2_CustomData.h:169
IMX390_LBIST_RUN
@ IMX390_LBIST_RUN
Runs the Logic Built-in Self test.
Definition: IMX390_CUST1_V2_CustomData.h:234
IMX390CustomErrInfo::errorInfo
uint32_t errorInfo
Bit field indicating the error flags set, indexed by IMX390CustomErrType.
Definition: IMX390_CUST1_V2_CustomData.h:223
IMX390EEPROMData
Describes the IMX390 EEPROM Module content.
Definition: IMX390_CUST1_V2_CustomData.h:208
IMX390_SM_RAMROM_ERROR
@ IMX390_SM_RAMROM_ERROR
RAMROM Error Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:98
IMX390_SM_COMCHECK_ERROR_INFO_I2C
@ IMX390_SM_COMCHECK_ERROR_INFO_I2C
Communication Check Safety Mechanism (for I2C) error information.
Definition: IMX390_CUST1_V2_CustomData.h:138
IMX390CustomErrInfo
Describes the Custom sensor error information needed by the application.
Definition: IMX390_CUST1_V2_CustomData.h:221
IMX390_SM_ROMCOPY_ERROR_INFO
@ IMX390_SM_ROMCOPY_ERROR_INFO
ROMCOPY Safety Mechanism error information.
Definition: IMX390_CUST1_V2_CustomData.h:130
IMX390EEPROMData::isValid
bool isValid
Definition: IMX390_CUST1_V2_CustomData.h:211
IMX390CustomErrInfoType
IMX390CustomErrInfoType
Describes the IMX390 Safety Mechanism error detailed information types.
Definition: IMX390_CUST1_V2_CustomData.h:126
IMX390_SM_ABIST_ERROR_INFO
@ IMX390_SM_ABIST_ERROR_INFO
Analog Built-in Self test Safety Mechanism error information.
Definition: IMX390_CUST1_V2_CustomData.h:136
IMX390_MFP7_ERROR0
@ IMX390_MFP7_ERROR0
Definition: IMX390_CUST1_V2_CustomData.h:44
PMIC_PRODUCT_ID
@ PMIC_PRODUCT_ID
PMIC Product ID.
Definition: IMX390_CUST1_V2_CustomData.h:167
OTP_COM_INITIAL_SETTINGS_CHECK1
@ OTP_COM_INITIAL_SETTINGS_CHECK1
Register1 for Initial Setting Check.
Definition: IMX390_CUST1_V2_CustomData.h:197
IMX390_I2C_READBACK_SENSOR_RUNTIME
@ IMX390_I2C_READBACK_SENSOR_RUNTIME
Definition: IMX390_CUST1_V2_CustomData.h:76
IMX390ROIConfig::vertWinShift
int16_t vertWinShift
Configure the vertical window shift.
Definition: IMX390_CUST1_V2_CustomData.h:88
IMX390_SM_OBINTEG_ERROR
@ IMX390_SM_OBINTEG_ERROR
OB Integration Check Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:114
IMX390_SM_CTRLFLOW_ERROR
@ IMX390_SM_CTRLFLOW_ERROR
Control flow Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:102
IMX390_SM_RAMROM_ERROR_INFO
@ IMX390_SM_RAMROM_ERROR_INFO
RAMROM Safety Mechanism error information.
Definition: IMX390_CUST1_V2_CustomData.h:132
IMX390_SM_RAMWRITE_ERROR_INFO
@ IMX390_SM_RAMWRITE_ERROR_INFO
RAMWRITE Safety Mechanism error information.
Definition: IMX390_CUST1_V2_CustomData.h:128
IMX390CustomEmbeddedData::regcheckError
bool regcheckError
Register Check Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:58
IMX390_SM_SHORTV_ERROR
@ IMX390_SM_SHORTV_ERROR
Short-V Alert Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:110
PMIC_INT_ACK_BUCK2
@ PMIC_INT_ACK_BUCK2
BUCK2 interrupt status.
Definition: IMX390_CUST1_V2_CustomData.h:173
IMX390_SELF_WDT_RUN
@ IMX390_SELF_WDT_RUN
Runs WDT self test.
Definition: IMX390_CUST1_V2_CustomData.h:236
PMIC_FAULT_STATUS_BUCK3
@ PMIC_FAULT_STATUS_BUCK3
BUCK3 Fault status.
Definition: IMX390_CUST1_V2_CustomData.h:157
IMX390CustomEmbeddedData::datapathError
bool datapathError
Data Path Check Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:64
IMX390ROIConfig::horzWinShift
int16_t horzWinShift
Configure the horizontal window shift.
Definition: IMX390_CUST1_V2_CustomData.h:86
IMX390_MFP6_PMIC_INT
@ IMX390_MFP6_PMIC_INT
Definition: IMX390_CUST1_V2_CustomData.h:43
IMX390RunSMType
IMX390RunSMType
Enumerates the different types of diagnostic SMs that can be run on request.
Definition: IMX390_CUST1_V2_CustomData.h:232
OTP_COM_INITIAL_SETTINGS_CHECK2
@ OTP_COM_INITIAL_SETTINGS_CHECK2
Register2 for Initial Setting Check.
Definition: IMX390_CUST1_V2_CustomData.h:199
IMX390_I2C_READBACK_SENSOR_INITTIME
@ IMX390_I2C_READBACK_SENSOR_INITTIME
Definition: IMX390_CUST1_V2_CustomData.h:77
IMX390CustomEmbeddedData::masterError
bool masterError
Definition: IMX390_CUST1_V2_CustomData.h:52
IMX390_SM_DATAPATH_ERROR
@ IMX390_SM_DATAPATH_ERROR
Data path Check Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:106
IMX390CustomEmbeddedData
Describes the Custom Embedded data needed by the application.
Definition: IMX390_CUST1_V2_CustomData.h:50
IMX390CustomErrType
IMX390CustomErrType
Describes the IMX390 Safety Mechanism error types.
Definition: IMX390_CUST1_V2_CustomData.h:94
PMIC_POWER_GOOD_STATUS
@ PMIC_POWER_GOOD_STATUS
PMIC power good status.
Definition: IMX390_CUST1_V2_CustomData.h:165
IMX390_TOGGLE_ERROR0
@ IMX390_TOGGLE_ERROR0
Runs WDT self test.
Definition: IMX390_CUST1_V2_CustomData.h:238
CMODE_OUT
@ CMODE_OUT
CMOD Pin's state.
Definition: IMX390_CUST1_V2_CustomData.h:187
SLASEL1_OUT
@ SLASEL1_OUT
SLASEL1_OUT Pin's state.
Definition: IMX390_CUST1_V2_CustomData.h:191
nvsipl
Describes the custom interface for IMX623.
Definition: AR0820_CUST1_CustomInterface.hpp:21
IMX390_SM_REGCHECK_ERROR
@ IMX390_SM_REGCHECK_ERROR
Register Check Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:100
IMX390CustomEmbeddedData::obintegError
bool obintegError
OB Integration Check Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:72
IMX390ROIConfig
Structure to configure the image ROI parameters in the sensor.
Definition: IMX390_CUST1_V2_CustomData.h:84
IMX390CustomEmbeddedData::wdtError
bool wdtError
Watchdog Timer Error set in embedded data.
Definition: IMX390_CUST1_V2_CustomData.h:54
OTP_COM_INITIAL_SETTINGS_CHECK3
@ OTP_COM_INITIAL_SETTINGS_CHECK3
Register3 for Initial Setting Check.
Definition: IMX390_CUST1_V2_CustomData.h:201
PMIC_INT_ACK_BUCK1
@ PMIC_INT_ACK_BUCK1
BUCK1 interrupt status.
Definition: IMX390_CUST1_V2_CustomData.h:171
PMIC_FAULT_STATUS_LDO
@ PMIC_FAULT_STATUS_LDO
LDO Fault status.
Definition: IMX390_CUST1_V2_CustomData.h:159
IMX390_SM_RAMWRITE_ERROR
@ IMX390_SM_RAMWRITE_ERROR
RAM Write Safety Mechanism error type.
Definition: IMX390_CUST1_V2_CustomData.h:116
IMX390MFPType
IMX390MFPType
Definition: IMX390_CUST1_V2_CustomData.h:41
PMICStatusRegs
PMICStatusRegs
Enumerates the various PMIC status regs.
Definition: IMX390_CUST1_V2_CustomData.h:151