NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
devblk_cdi.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2014-2026 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 
20 #ifndef DEVBLK_CDI_H
21 #define DEVBLK_CDI_H
22 
23 #include "nvmedia_core.h"
24 #include "NvSIPLCapStructs.h"
25 #include "NvSIPLCDICommon.h"
26 
27 #ifndef __cplusplus
28 #include <stdbool.h>
29 #endif
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
60 #define DEVBLK_CDI_SIMULATOR_ADDRESS 0xFF1U
61 
62 #define RDEV_CFG_I2C_BITS 8U
63 
64 #define RDEV_CFG_CSI_BITS (RDEV_CFG_I2C_BITS + 8U)
65 
66 #define RDEV_CFG_SLV_BIT (RDEV_CFG_CSI_BITS + 1U)
67 
73 #define CDI_RDEV_CFG(csi, i2c) (((uint32_t)(csi) << (uint32_t)RDEV_CFG_I2C_BITS) | (i2c))
74 
91 #define CDI_RDEV_CFG_EX(csi, i2c, disPwrCtrl) \
92  ((i2c & 0xffU) | \
93  ((uint32_t)(csi & 0xffU) << (uint32_t)RDEV_CFG_I2C_BITS) | \
94  ((uint32_t)(disPwrCtrl & 1U) << (uint32_t)RDEV_CFG_SLV_BIT))
95 
103 #define CDI_SLV_RDEV_CFG(csi, i2c) \
104  ((i2c) | ((uint32_t)(csi) << RDEV_CFG_I2C_BITS) | ((uint32_t)(1U) << RDEV_CFG_CSI_BITS))
105 
106 
114 
122 
130 
138 
139 #if !NV_IS_SAFETY
140 
146 struct DevBlkCDIModuleConfig;
147 #endif
148  /* Ends Basic CDI Types group */
150 
157 typedef struct {
161 
180 typedef enum {
200 
204 #define DEVBLK_CDI_ROOT_DEVICE_MAX_GPIOS (16U)
205 
209 #define MAX_POWER_LINKS_PER_BLOCK (4U)
210 
217 typedef struct {
219  uint8_t method;
223  uint8_t i2cAddr;
230 
237 typedef struct {
242  uint8_t *imageData;
248  uint64_t imageDataDMA;
253  uint32_t pitch;
260  uint32_t height;
268  uint8_t const *embDataTop;
273  uint32_t embSizeTop;
281  uint8_t const *embDataBottom;
286  uint32_t embSizeBottom;
288 
296 #define DEVBLK_CDI_GPIO_LEVEL_LOW (1U)
297 #define DEVBLK_CDI_GPIO_LEVEL_HIGH (2U)
298 
306 typedef enum {
329 
336 typedef struct {
344  struct {
349  uint32_t idx;
355  uint32_t timeout_ms;
366  uint32_t count;
368 
372 typedef void DevBlkCDIRootDevice;
373 
458 DevBlkCDIRootDeviceCreate(
459  uint32_t portCfg,
460  DevBlkCDIGPIOIndices gpios,
461  const bool useCDIv2API
462 );
464 
502 void
504 DevBlkCDIRootDeviceDestroy(
505  DevBlkCDIRootDevice *device
506 );
508 
556  DevBlkCDIRootDevice const *device,
557  uint32_t gpio_idx,
558  uint32_t *level
559 );
560 
611  DevBlkCDIRootDevice const *device,
612  uint32_t gpio_idx,
613  uint32_t expected_level
614 );
615 
669  DevBlkCDIDevice const *device,
670  uint32_t gpio_idx,
671  uint32_t expected_level,
672  uint32_t poll_count,
673  uint32_t poll_delay
674 );
675 
723  DevBlkCDIRootDevice const *device,
724  uint32_t gpio_idx,
725  uint32_t level
726 );
727 
771  DevBlkCDIRootDevice const *device,
772  uint32_t gpio_idx
773 );
774 
808 DevBlkCDIRootDeviceIsPulseErrorSupported(void);
810 
811 
853 DevBlkCDIRootDeviceWaitForPulseError(
854  DevBlkCDIRootDevice const *device);
856 
921 DevBlkCDIRootDeviceWaitForError(
922  DevBlkCDIRootDevice const *device,
923  DevBlkCDIGPIOIndices *gpios
924 );
926 
971 DevBlkCDIRootDeviceAbortWaitForError(
972  DevBlkCDIRootDevice const *device
973 );
975 
1013 DevBlkCDIRootDeviceScheduleGpioINTREvent(
1014  const DevBlkCDIRootDevice *device,
1015  const uint32_t gpio_idx,
1016  const uint32_t timeout_ms);
1018 
1121 typedef struct {
1123  const char *deviceName;
1125  uint32_t regLength;
1127  uint32_t dataLength;
1128 
1168  NvMediaStatus (* DriverCreate)(
1170  void const* clientContext);
1171 
1204  NvMediaStatus (* DriverDestroy)(
1206 
1263  NvMediaStatus (* SetSensorControls)(
1264  DevBlkCDIDevice const* handle,
1265  const struct DevBlkCDISensorControl *sensorControl,
1266  const size_t sensrCtrlStructSize);
1267 
1324  NvMediaStatus (* ParseTopEmbDataInfo)(
1325  DevBlkCDIDevice const* handle,
1326  const struct DevBlkCDIEmbeddedDataChunk *topEmbDataChunk,
1327  const size_t topChunkStructSize,
1328  struct DevBlkCDIEmbeddedDataInfo *embeddedDataInfo,
1329  const size_t dataInfoStructSize);
1330 
1387  NvMediaStatus (* ParseBotEmbDataInfo)(
1388  DevBlkCDIDevice const* handle,
1389  const struct DevBlkCDIEmbeddedDataChunk *botEmbDataChunk,
1390  const size_t botChunkStructSize,
1391  struct DevBlkCDIEmbeddedDataInfo *embeddedDataInfo,
1392  const size_t dataInfoStructSize);
1393 
1435  NvMediaStatus (* GetSensorAttributes)(
1436  DevBlkCDIDevice const* handle,
1437  struct DevBlkCDISensorAttributes *sensorAttr,
1438  const size_t sensorAttrStructSize);
1439 
1440 #if !NV_IS_SAFETY
1441 
1468  NvMediaStatus (* GetModuleConfig)(
1470  struct DevBlkCDIModuleConfig *moduleConfig);
1471 
1535  NvMediaStatus (* SetSensorCharMode)(
1537  uint8_t expNo);
1538 #endif
1539 
1568  NvMediaStatus (* ReadRegister)(
1569  DevBlkCDIDevice const* handle,
1570  uint32_t deviceIndex,
1571  uint32_t registerNum,
1572  uint32_t dataLength,
1573  uint8_t *dataBuff);
1574 
1603  NvMediaStatus (* WriteRegister)(
1604  DevBlkCDIDevice const* handle,
1605  uint32_t deviceIndex,
1606  uint32_t registerNum,
1607  uint32_t dataLength,
1608  uint8_t const* dataBuff);
1609 
1610 
1658  NvMediaStatus (* AuthenticateImage)(
1659  DevBlkCDIDevice const * const handle,
1660  DevBlkImageDesc const * const imageDesc);
1661 
1663 
1681 typedef struct {
1685 
1756 DevBlkCDIDeviceCreate(
1757  DevBlkCDIRootDevice *rootDevice,
1758  uint32_t *deviceAddressList,
1759  uint32_t numDevices,
1760  DevBlkCDIDeviceDriver *deviceDriverParam,
1761  DevBlkCDIAdvancedConfig const *advancedConfig,
1762  uint8_t linkIndex,
1763  NvMediaBool isDeserializer,
1764  NvMediaBool useNativeI2CAddress,
1765  NvMediaBool useCDIv2API
1766 );
1768 
1806 void
1808 DevBlkCDIDeviceDestroy(
1809  DevBlkCDIDevice *device
1810 );
1812 
1813 #if !(NV_IS_SAFETY)
1814 
1858  DevBlkCDIDevice const *device,
1859  uint32_t deviceIndex,
1860  uint32_t regLength,
1861  uint8_t *regData,
1862  uint32_t dataLength,
1863  uint8_t *data
1864 );
1865 #endif
1866 
1867 #if !(NV_IS_SAFETY)
1868 
1911  DevBlkCDIDevice const *device,
1912  uint32_t deviceIndex,
1913  uint32_t dataLength,
1914  const uint8_t *data
1915 );
1916 #endif
1917 
1964  DevBlkCDIDevice *device,
1965  DevBlkCDISensorAttributes *sensorAttr,
1966  const size_t sensorAttrStructSize);
1967 
1987 typedef struct DevBlkCDISensorControl {
1998 
2003 
2008 
2016 
2022 
2029 
2031 
2082  DevBlkCDIDevice *device,
2083  const DevBlkCDISensorControl *sensorControl,
2084  const size_t sensrCtrlStructSize
2085 );
2086 
2141  DevBlkCDIDevice *device,
2142  const DevBlkCDIEmbeddedDataChunk *embeddedTopDataChunk,
2143  const size_t embeddedDataChunkStructSize,
2144  DevBlkCDIEmbeddedDataInfo *embeddedDataInfo,
2145  const size_t dataInfoStructSize);
2146 
2201  DevBlkCDIDevice *device,
2202  const DevBlkCDIEmbeddedDataChunk *embeddedBotDataChunk,
2203  const size_t embeddedDataChunkStructSize,
2204  DevBlkCDIEmbeddedDataInfo *embeddedDataInfo,
2205  const size_t dataInfoStructSize);
2206 
2246  DevBlkCDIDevice *device,
2247  NvMediaBool enable);
2248 
2286  DevBlkCDIRootDevice const *device);
2287 
2327  DevBlkCDIDevice *device,
2328  DevBlkCDIPowerControlInfo *desPwrControlInfo);
2329 
2369  DevBlkCDIDevice *device,
2370  DevBlkCDIPowerControlInfo *camPwrControlInfo);
2371 
2418  DevBlkCDIDevice *device,
2419  uint8_t address,
2420  bool useNativeI2C,
2421  uint32_t *reservedI2CAddr);
2422 
2462  DevBlkCDIDevice *device,
2463  uint32_t fsyncMuxSel,
2464  uint32_t camGrpIdx);
2465 
2517  DevBlkCDIDevice const * const device,
2518  DevBlkImageDesc const * const imageDesc);
2519 
2522 #if !NV_IS_SAFETY
2523 
2530 typedef enum {
2542 
2550 typedef struct DevBlkCDIModuleConfig {
2557 
2616  DevBlkCDIDevice *device,
2617  uint8_t expNo);
2618 
2657  DevBlkCDIDevice *device,
2658  DevBlkCDIModuleConfig *moduleConfig);
2659 
2660 #endif /* #if !NV_IS_SAFETY */
2661 
2664 #ifdef __cplusplus
2665 } /* extern "C" */
2666 #endif
2667 
2668 #endif /* DEVBLK_CDI_H */
DEVBLK_CDI_I2C_BUS_14
@ DEVBLK_CDI_I2C_BUS_14
Specifies i2c-14.
Definition: devblk_cdi.h:195
DevBlkCDIPowerControlInfo::method
uint8_t method
Power control method.
Definition: devblk_cdi.h:219
DEVBLK_CDI_PWR_LINK_1
@ DEVBLK_CDI_PWR_LINK_1
LINK 1 PWR.
Definition: devblk_cdi.h:2536
DEVBLK_CDI_GPIO_EVENT_ERROR_BACKEND
@ DEVBLK_CDI_GPIO_EVENT_ERROR_BACKEND
An error occurred in backend code, potentially resulting in permanent loss of functionality.
Definition: devblk_cdi.h:320
DevBlkCDISensorControl
Holds the sensor control structure.
Definition: devblk_cdi.h:1987
DEVBLK_CDI_I2C_BUS_9
@ DEVBLK_CDI_I2C_BUS_9
Specifies i2c-9.
Definition: devblk_cdi.h:190
DevBlkCDISensorControl::multiCtxIDControl
DevBlkCDIFrameCtxID multiCtxIDControl[DEVBLK_CDI_MAX_SENSOR_CONTEXTS]
Holds the sensor frame context id to be programmed for each context.
Definition: devblk_cdi.h:2028
NvMediaBool
uint32_t NvMediaBool
A boolean value, holding NVMEDIA_TRUE or NVMEDIA_FALSE.
Definition: nvmedia_core.h:79
DevBlkCDIDeviceDriver::regLength
uint32_t regLength
Holds the target device offset length in bytes.
Definition: devblk_cdi.h:1125
DevBlkCDISetFsyncMux
NvMediaStatus DevBlkCDISetFsyncMux(DevBlkCDIDevice *device, uint32_t fsyncMuxSel, uint32_t camGrpIdx)
Set multiplexer to select the FSYNC source for the specific camera group.
DEVBLK_CDI_I2C_BUS_11
@ DEVBLK_CDI_I2C_BUS_11
Specifies i2c-11.
Definition: devblk_cdi.h:192
DevBlkCDIDeviceWrite
NvMediaStatus DevBlkCDIDeviceWrite(DevBlkCDIDevice const *device, uint32_t deviceIndex, uint32_t dataLength, const uint8_t *data)
Performs a write operation over I2C.
DevBlkCDIGPIOIndices::timeout_ms
uint32_t timeout_ms
Error localization timeout duration [ms], 0 to disable.
Definition: devblk_cdi.h:355
DEVBLK_CDI_I2C_BUS_10
@ DEVBLK_CDI_I2C_BUS_10
Specifies i2c-10.
Definition: devblk_cdi.h:191
DevBlkCDIRootDeviceSetGPIOPinLevel
NvMediaStatus DevBlkCDIRootDeviceSetGPIOPinLevel(DevBlkCDIRootDevice const *device, uint32_t gpio_idx, uint32_t level)
Sets the logic level of Tegra GPIO output pin associated with this root device.
DevBlkCDIDeviceDriver
Holds device driver data.
Definition: devblk_cdi.h:1121
DevBlkImageDesc::embDataBottom
const uint8_t * embDataBottom
Pointer to start of a bottom embedded data, if enabled on a sensor.
Definition: devblk_cdi.h:281
DevBlkCDIEmbeddedDataChunk
Holds the sensor embedded data chunk structure.
Definition: NvSIPLCDICommon.h:270
DevBlkCDIGPIOIndices
Structure to hold array of CAMGPIO indices.
Definition: devblk_cdi.h:336
DevBlkCDIParseTopEmbDataInfo
NvMediaStatus DevBlkCDIParseTopEmbDataInfo(DevBlkCDIDevice *device, const DevBlkCDIEmbeddedDataChunk *embeddedTopDataChunk, const size_t embeddedDataChunkStructSize, DevBlkCDIEmbeddedDataInfo *embeddedDataInfo, const size_t dataInfoStructSize)
Parses top sensor embedded data info and provides sensor image settings information for the captured ...
DevBlkCDISensorControl::numSensorContexts
uint8_t numSensorContexts
Holds the number of sensor contexts to activate.
Definition: devblk_cdi.h:1997
DevBlkCDISetSensorCharMode
NvMediaStatus DevBlkCDISetSensorCharMode(DevBlkCDIDevice *device, uint8_t expNo)
Set sensor in characterization mode.
DevBlkCDISensorControl::wbControl
DevBlkCDIWhiteBalance wbControl[DEVBLK_CDI_MAX_SENSOR_CONTEXTS]
Holds the sensor white balance settings to set for each context.
Definition: devblk_cdi.h:2007
DEVBLK_CDI_I2C_BUS_16
@ DEVBLK_CDI_I2C_BUS_16
Specifies i2c-16.
Definition: devblk_cdi.h:197
DevBlkImageDesc::height
uint32_t height
Total height of an image, including top and/or bottom embedded data (if embedded data is put into the...
Definition: devblk_cdi.h:260
DEVBLK_CDI_I2C_SIMULATOR
@ DEVBLK_CDI_I2C_SIMULATOR
Port SIMULATOR (20)
Definition: devblk_cdi.h:198
DevBlkCDIRootDeviceGetGPIOPinLevel
NvMediaStatus DevBlkCDIRootDeviceGetGPIOPinLevel(DevBlkCDIRootDevice const *device, uint32_t gpio_idx, uint32_t *level)
Queries the logic level of a Tegra GPIO input pin associated with the root device.
DEVBLK_CDI_I2C_BUS_7
@ DEVBLK_CDI_I2C_BUS_7
Specifies i2c-7.
Definition: devblk_cdi.h:188
DEVBLK_CDI_PWR_LINK_3
@ DEVBLK_CDI_PWR_LINK_3
LINK 3 PWR.
Definition: devblk_cdi.h:2540
DEVBLK_CDI_GPIO_EVENT_INTR
@ DEVBLK_CDI_GPIO_EVENT_INTR
An interrupt has occurred.
Definition: devblk_cdi.h:308
DevBlkCDIGetDesPowerControlInfo
NvMediaStatus DevBlkCDIGetDesPowerControlInfo(DevBlkCDIDevice *device, DevBlkCDIPowerControlInfo *desPwrControlInfo)
Get the deserialzer's power control information.
DevBlkCDIAdvancedConfig
Holds the description of the target I2C device.
Definition: devblk_cdi.h:1681
DEVBLK_CDI_MAX_SENSOR_CONTEXTS
#define DEVBLK_CDI_MAX_SENSOR_CONTEXTS
Maximum number of sensor contexts.
Definition: NvSIPLCDICommon.h:64
DEVBLK_CDI_I2C_BUS_3
@ DEVBLK_CDI_I2C_BUS_3
Specifies i2c-3.
Definition: devblk_cdi.h:184
DevBlkCDIFrameReport
Holds the sensor report frame report structure.
Definition: NvSIPLCDICommon.h:422
DevBlkCDIPowerItems
DevBlkCDIPowerItems
CDI Power control items.
Definition: devblk_cdi.h:2530
DevBlkCDIParseBotEmbDataInfo
NvMediaStatus DevBlkCDIParseBotEmbDataInfo(DevBlkCDIDevice *device, const DevBlkCDIEmbeddedDataChunk *embeddedBotDataChunk, const size_t embeddedDataChunkStructSize, DevBlkCDIEmbeddedDataInfo *embeddedDataInfo, const size_t dataInfoStructSize)
Parses Bottom sensor embedded data info and provides sensor image settings information for the captur...
DEVBLK_CDI_I2C_BUS_12
@ DEVBLK_CDI_I2C_BUS_12
Specifies i2c-12.
Definition: devblk_cdi.h:193
NvSIPLCapStructs.h
DEVBLK_CDI_GPIO_EVENT_INTR_TIMEOUT
@ DEVBLK_CDI_GPIO_EVENT_INTR_TIMEOUT
An interrupt timeout period has elapsed.
Definition: devblk_cdi.h:310
DEVBLK_CDI_GPIO_EVENT_ERROR_UNKNOWN
@ DEVBLK_CDI_GPIO_EVENT_ERROR_UNKNOWN
A generic error occurred, potentially resulting in permanent loss of functionality.
Definition: devblk_cdi.h:327
DevBlkCDIModuleConfig::cameraModuleConfigPass2
const char * cameraModuleConfigPass2
Definition: devblk_cdi.h:2555
DevBlkImageDesc::imageData
uint8_t * imageData
A CPU pointer to an image buffer.
Definition: devblk_cdi.h:242
DevBlkCDIGetCamPowerControlInfo
NvMediaStatus DevBlkCDIGetCamPowerControlInfo(DevBlkCDIDevice *device, DevBlkCDIPowerControlInfo *camPwrControlInfo)
Get the camera's power control information.
DevBlkCDIDeviceRead
NvMediaStatus DevBlkCDIDeviceRead(DevBlkCDIDevice const *device, uint32_t deviceIndex, uint32_t regLength, uint8_t *regData, uint32_t dataLength, uint8_t *data)
Usage considerations
DevBlkCDIDevice::deviceHandle
void * deviceHandle
Definition: devblk_cdi.h:158
NvSIPLCDICommon.h
DevBlkCDISetDeserPower
NvMediaStatus DevBlkCDISetDeserPower(DevBlkCDIDevice *device, NvMediaBool enable)
Set the deserializer module power.
DevBlkCDIWhiteBalance
Holds the sensor white balance gain structure.
Definition: NvSIPLCDICommon.h:352
DevBlkCDIGPIOIndices::count
uint32_t count
Number of items in indices in pins.
Definition: devblk_cdi.h:366
DevBlkCDISensorControl::exposureControl
DevBlkCDIExposure exposureControl[DEVBLK_CDI_MAX_SENSOR_CONTEXTS]
Holds the sensor exposure settings to set for each context.
Definition: devblk_cdi.h:2002
DEVBLK_CDI_GPIO_EVENT_ERROR_CAMGPIO
@ DEVBLK_CDI_GPIO_EVENT_ERROR_CAMGPIO
An error occurred in CAMGPIO code, potentially resulting in permanent loss of functionality.
Definition: devblk_cdi.h:315
DevBlkCDIGetSensorAttributes
NvMediaStatus DevBlkCDIGetSensorAttributes(DevBlkCDIDevice *device, DevBlkCDISensorAttributes *sensorAttr, const size_t sensorAttrStructSize)
Queries the sensor attributes.
nvmedia_core.h
NVIDIA Media Interface: Core
DevBlkCDIGpioEvent
DevBlkCDIGpioEvent
CDI codes for CAMGPIO Interrupt Events.
Definition: devblk_cdi.h:306
MAX_POWER_LINKS_PER_BLOCK
#define MAX_POWER_LINKS_PER_BLOCK
The maximum number of power links per device block.
Definition: devblk_cdi.h:209
DevBlkCDIFrameCtxID
Holds the sensor frame context id structure.
Definition: NvSIPLCDICommon.h:251
DEVBLK_CDI_I2C_BUS_1
@ DEVBLK_CDI_I2C_BUS_1
Specifies i2c-1.
Definition: devblk_cdi.h:182
DEVBLK_CDI_I2C_BUS_15
@ DEVBLK_CDI_I2C_BUS_15
Specifies i2c-15.
Definition: devblk_cdi.h:196
DEVBLK_CDI_I2C_BUS_5
@ DEVBLK_CDI_I2C_BUS_5
Specifies i2c-5.
Definition: devblk_cdi.h:186
DevBlkCDIModuleConfig::cameraModuleCfgName
char cameraModuleCfgName[128]
Holds the camera module name.
Definition: devblk_cdi.h:2552
DEVBLK_CDI_PWR_LINK_0
@ DEVBLK_CDI_PWR_LINK_0
LINK 0 Power.
Definition: devblk_cdi.h:2534
DevBlkCDIIllumination
Holds the sensor illumination control structure.
Definition: NvSIPLCDICommon.h:376
DevBlkCDIPowerControlInfo::i2cAddr
uint8_t i2cAddr
Power controller i2c slave address.
Definition: devblk_cdi.h:223
DEVBLK_CDI_I2C_BUS_0
@ DEVBLK_CDI_I2C_BUS_0
Specifies i2c-0.
Definition: devblk_cdi.h:181
DevBlkCDISensorControl::illuminationControl
DevBlkCDIIllumination illuminationControl[DEVBLK_CDI_MAX_SENSOR_CONTEXTS]
Holds the illumination settings for each context.
Definition: devblk_cdi.h:2021
DevBlkImageDesc
Structure to describe a RAW image buffer.
Definition: devblk_cdi.h:237
DevBlkImageDesc::embSizeBottom
uint32_t embSizeBottom
Size of a bottom embedded data in bytes, if enabled.
Definition: devblk_cdi.h:286
DevBlkCDIRootDeviceCheckGPIOPinLevel
NvMediaStatus DevBlkCDIRootDeviceCheckGPIOPinLevel(DevBlkCDIRootDevice const *device, uint32_t gpio_idx, uint32_t expected_level)
Compares the logic level of a Tegra GPIO input pin associated with the root device with expected pin ...
DevBlkCDIGetModuleConfig
NvMediaStatus DevBlkCDIGetModuleConfig(DevBlkCDIDevice *device, DevBlkCDIModuleConfig *moduleConfig)
Gets the Module ISP configuration.
DevBlkCDIPowerControlInfo
Structure to hold power control information.
Definition: devblk_cdi.h:217
DEVBLK_CDI_I2C_BUS_13
@ DEVBLK_CDI_I2C_BUS_13
Specifies i2c-13.
Definition: devblk_cdi.h:194
DevBlkCDIEnableErrorReport
NvMediaStatus DevBlkCDIEnableErrorReport(DevBlkCDIRootDevice const *device)
Enable the error report.
DevBlkCDISetSensorControls
NvMediaStatus DevBlkCDISetSensorControls(DevBlkCDIDevice *device, const DevBlkCDISensorControl *sensorControl, const size_t sensrCtrlStructSize)
Sets sensor control parameters.
DevBlkImageDesc::pitch
uint32_t pitch
Length of a single line of an image (with any padding), in bytes.
Definition: devblk_cdi.h:253
DevBlkCDISensorAttributes
Holds the sensor attributes.
Definition: NvSIPLCDICommon.h:128
DEVBLK_CDI_PWR_AGGREGATOR
@ DEVBLK_CDI_PWR_AGGREGATOR
Aggregator Power.
Definition: devblk_cdi.h:2532
DevBlkCDIRootDeviceCheckIntrPin
NvMediaStatus DevBlkCDIRootDeviceCheckIntrPin(DevBlkCDIRootDevice const *device, uint32_t gpio_idx)
Verifies that the level of a GPIO pin configured as an interrupt is at the correct pre-transition lev...
DevBlkImageDesc::embDataTop
const uint8_t * embDataTop
Pointer to start of a top embedded data, if enabled on a sensor.
Definition: devblk_cdi.h:268
DevBlkCDIGPIOIndices::evt
DevBlkCDIGpioEvent evt
CAMGPIO event type @anon_struct_member.
Definition: devblk_cdi.h:360
DEVBLK_CDI_I2C_BUS_8
@ DEVBLK_CDI_I2C_BUS_8
Specifies i2c-8.
Definition: devblk_cdi.h:189
handle
const WFDCommitType const WFDHandle handle
Definition: wfdext.h:532
DevBlkCDIExposure
Holds sensor exposure information.
Definition: NvSIPLCDICommon.h:296
DevBlkImageDesc::imageDataDMA
uint64_t imageDataDMA
An image buffer address which can be used for direct crypto HW access.
Definition: devblk_cdi.h:248
NvMediaStatus
NvMediaStatus
Defines all possible error codes.
Definition: nvmedia_core.h:114
DevBlkCDISensorControl
struct DevBlkCDISensorControl DevBlkCDISensorControl
Holds the sensor control structure.
DevBlkCDIRootDevice
void DevBlkCDIRootDevice
An opaque handle for an DevBlkCDIRootDevice object.
Definition: devblk_cdi.h:372
DevBlkCDI_I2CPort
DevBlkCDI_I2CPort
Defines the I2C buses on the host hardware device.
Definition: devblk_cdi.h:180
DevBlkCDIDevice
Holds the handles for an DevBlkCDIDevice object.
Definition: devblk_cdi.h:157
DevBlkCDIModuleConfig
struct DevBlkCDIModuleConfig DevBlkCDIModuleConfig
Holds the CDI Module ISP configuration.
DevBlkCDIModuleConfig
Holds the CDI Module ISP configuration.
Definition: devblk_cdi.h:2550
DEVBLK_CDI_ROOT_DEVICE_MAX_GPIOS
#define DEVBLK_CDI_ROOT_DEVICE_MAX_GPIOS
The maximum number of GPIOs supported on a CDI Root Device.
Definition: devblk_cdi.h:204
DevBlkCDIModuleConfig::cameraModuleConfigPass1
const char * cameraModuleConfigPass1
Holds the camera-specific configuration string.
Definition: devblk_cdi.h:2554
DevBlkCDIDeviceDriver::deviceName
const char * deviceName
Holds the device name.
Definition: devblk_cdi.h:1123
DevBlkCDIReserveI2CAddr
NvMediaStatus DevBlkCDIReserveI2CAddr(DevBlkCDIDevice *device, uint8_t address, bool useNativeI2C, uint32_t *reservedI2CAddr)
Reserve device I2C address.
DEVBLK_CDI_I2C_BUS_4
@ DEVBLK_CDI_I2C_BUS_4
Specifies i2c-4.
Definition: devblk_cdi.h:185
DevBlkImageDesc::embSizeTop
uint32_t embSizeTop
Size of a top embedded data in bytes, if enabled.
Definition: devblk_cdi.h:273
DevBlkCDIAdvancedConfig::clientContext
void * clientContext
Holds the client context.
Definition: devblk_cdi.h:1683
DevBlkCDIAuthenticateImage
NvMediaStatus DevBlkCDIAuthenticateImage(DevBlkCDIDevice const *const device, DevBlkImageDesc const *const imageDesc)
Authenticate an image data passed in a parameters.
DevBlkCDIEmbeddedDataInfo
Holds the sensor embedded data parsed info structure.
Definition: NvSIPLCDICommon.h:527
DEVBLK_CDI_I2C_BUS_2
@ DEVBLK_CDI_I2C_BUS_2
Specifies i2c-2.
Definition: devblk_cdi.h:183
DevBlkCDIDevice::deviceDriverHandle
void * deviceDriverHandle
Definition: devblk_cdi.h:159
DEVBLK_CDI_GPIO_EVENT_INTR_INJECTED
@ DEVBLK_CDI_GPIO_EVENT_INTR_INJECTED
A synthetic interrupt event is injected to continue fault handling when GPIO is stuck in fault state.
Definition: devblk_cdi.h:322
DevBlkCDIGPIOIndices::idx
uint32_t idx
CAMGPIO index.
Definition: devblk_cdi.h:349
DEVBLK_CDI_I2C_BUS_6
@ DEVBLK_CDI_I2C_BUS_6
Specifies i2c-6.
Definition: devblk_cdi.h:187
DEVBLK_CDI_PWR_LINK_2
@ DEVBLK_CDI_PWR_LINK_2
LINK 2 PWR.
Definition: devblk_cdi.h:2538
DevBlkCDISensorControl::frameReportControl
DevBlkCDIFrameReport frameReportControl
Holds the sensor frame report value to be programmed.
Definition: devblk_cdi.h:2015
DevBlkCDIRootDevicePollGPIOPinLevel
NvMediaStatus DevBlkCDIRootDevicePollGPIOPinLevel(DevBlkCDIDevice const *device, uint32_t gpio_idx, uint32_t expected_level, uint32_t poll_count, uint32_t poll_delay)
Poll the logic level of a Tegra GPIO input pin associated with the root device with expected pin leve...
DevBlkCDIDeviceDriver::dataLength
uint32_t dataLength
Holds the target device data length in bytes.
Definition: devblk_cdi.h:1127