Loading [MathJax]/extensions/tex2jax.js
|
NVIDIA DRIVE OS Linux SDK API Reference
|
6.0.4 Release
|
Go to the documentation of this file.
20 #include "NvSIPLCDICommon.h"
55 #define DEVBLK_CDI_SIMULATOR_ADDRESS 0xFF1U
57 #define RDEV_CFG_I2C_BITS 8
59 #define RDEV_CFG_CSI_BITS (RDEV_CFG_I2C_BITS + 8)
61 #define RDEV_CFG_SLV_BIT (RDEV_CFG_CSI_BITS + 1)
68 #define CDI_RDEV_CFG(csi, i2c) (((uint32_t)(csi) << (uint32_t)RDEV_CFG_I2C_BITS) | (i2c))
86 #define CDI_RDEV_CFG_EX(csi, i2c, disPwrCtrl) \
88 ((uint32_t)(csi & 0xffU) << (uint32_t)RDEV_CFG_I2C_BITS) | \
89 ((uint32_t)(disPwrCtrl & 1U) << (uint32_t)RDEV_CFG_SLV_BIT))
98 #define CDI_SLV_RDEV_CFG(csi, i2c) \
99 ((i2c) | ((uint32_t)(csi) << RDEV_CFG_I2C_BITS) | ((uint32_t)(1U) << RDEV_CFG_CSI_BITS))
104 struct DevBlkCDIEmbeddedDataChunk;
106 struct DevBlkCDIEmbeddedDataInfo;
108 struct DevBlkCDISensorAttributes;
157 #define DEVBLK_CDI_ROOT_DEVICE_MAX_GPIOS (8U)
192 #define DEVBLK_CDI_GPIO_LEVEL_LOW (1U)
193 #define DEVBLK_CDI_GPIO_LEVEL_HIGH (2U)
308 DevBlkCDIRootDeviceCreate(
311 const bool useCDIv2API
348 DevBlkCDIRootDeviceDestroy(
549 DevBlkCDIRootDeviceWaitForError(
638 DevBlkCDIRootDeviceAbortWaitForError(
784 void const* clientContext);
868 const size_t sensrCtrlStructSize);
907 const struct DevBlkCDIEmbeddedDataChunk *topEmbDataChunk,
908 const size_t topChunkStructSize,
909 struct DevBlkCDIEmbeddedDataInfo *embeddedDataInfo,
910 const size_t dataInfoStructSize);
962 const struct DevBlkCDIEmbeddedDataChunk *botEmbDataChunk,
963 const size_t botChunkStructSize,
964 struct DevBlkCDIEmbeddedDataInfo *embeddedDataInfo,
965 const size_t dataInfoStructSize);
1002 struct DevBlkCDISensorAttributes *sensorAttr,
1003 const size_t sensorAttrStructSize);
1111 uint32_t deviceIndex,
1112 uint32_t registerNum,
1113 uint32_t dataLength,
1138 uint32_t deviceIndex,
1139 uint32_t registerNum,
1140 uint32_t dataLength,
1141 uint8_t
const* dataBuff);
1223 DevBlkCDIDeviceCreate(
1225 uint32_t *deviceAddressList,
1226 uint32_t numDevices,
1269 DevBlkCDIDeviceDestroy(
1314 uint32_t deviceIndex,
1317 uint32_t dataLength,
1360 uint32_t deviceIndex,
1361 uint32_t dataLength,
1407 DevBlkCDISensorAttributes *sensorAttr,
1408 const size_t sensorAttrStructSize);
1446 DevBlkCDIWhiteBalance
wbControl[DEVBLK_CDI_MAX_SENSOR_CONTEXTS];
1503 const size_t sensrCtrlStructSize
1559 const DevBlkCDIEmbeddedDataChunk *embeddedTopDataChunk,
1560 const size_t embeddedDataChunkStructSize,
1561 DevBlkCDIEmbeddedDataInfo *embeddedDataInfo,
1562 const size_t dataInfoStructSize);
1567 const DevBlkCDIEmbeddedDataChunk *embeddedBotDataChunk,
1568 const size_t embeddedDataChunkStructSize,
1569 DevBlkCDIEmbeddedDataInfo *embeddedDataInfo,
1570 const size_t dataInfoStructSize);
uint8_t method
Power control method.
@ DEVBLK_CDI_GPIO_EVENT_ERROR_BACKEND
An error occurred in backend code, potentially resulting in permanent loss of functionality.
Holds the sensor control structure.
@ DEVBLK_CDI_I2C_BUS_9
Specifies i2c-9.
@ DEVBLK_CDI_PWR_LINK_3
LINK 3 PWR.
uint32_t regLength
Holds the target device offset length in bytes.
uint32_t NvSiplBool
A boolean value, holding SIPL_TRUE or SIPL_FALSE.
@ DEVBLK_CDI_I2C_BUS_11
Specifies i2c-11.
NvMediaStatus DevBlkCDIDeviceWrite(DevBlkCDIDevice const *device, uint32_t deviceIndex, uint32_t dataLength, const uint8_t *data)
Performs a write operation over I2C.
@ DEVBLK_CDI_I2C_BUS_10
Specifies i2c-10.
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.
Holds device driver data.
Structure to hold array of CDAC GPIO indices.
NvMediaStatus DevBlkCDIParseTopEmbDataInfo(DevBlkCDIDevice *device, const DevBlkCDIEmbeddedDataChunk *embeddedTopDataChunk, const size_t embeddedDataChunkStructSize, DevBlkCDIEmbeddedDataInfo *embeddedDataInfo, const size_t dataInfoStructSize)
Parses sensor embedded data info and provides sensor image settings information for the captured fram...
uint8_t numSensorContexts
Holds the number of sensor contexts to activate.
NvMediaStatus DevBlkCDISetSensorCharMode(DevBlkCDIDevice *device, uint8_t expNo)
Set sensor in characterization mode.
NvMediaStatus
Defines all possible error codes.
DevBlkCDIWhiteBalance wbControl[DEVBLK_CDI_MAX_SENSOR_CONTEXTS]
Holds the sensor white balance settings to set for each context.
NvMediaStatus DevBlkCDIRootDeviceCheckAndClearIntr(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...
@ DEVBLK_CDI_I2C_SIMULATOR
Port SIMULATOR (20)
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
Specifies i2c-7.
@ DEVBLK_CDI_GPIO_EVENT_INTR
An interrupt has occurred.
NvMediaStatus DevBlkCDIGetDesPowerControlInfo(DevBlkCDIDevice *device, DevBlkCDIPowerControlInfo *desPwrControlInfo)
Get the deserialzer's power control information.
Holds the description of the target I2C device.
@ DEVBLK_CDI_I2C_BUS_3
Specifies i2c-3.
NvMediaStatus DevBlkCDIParseBotEmbDataInfo(DevBlkCDIDevice *device, const DevBlkCDIEmbeddedDataChunk *embeddedBotDataChunk, const size_t embeddedDataChunkStructSize, DevBlkCDIEmbeddedDataInfo *embeddedDataInfo, const size_t dataInfoStructSize)
@ DEVBLK_CDI_GPIO_EVENT_ERROR_WAIT_CANCELLED
Waiting for an interrupt was unexpectedly cancelled, potentially resulting in permanent loss of funct...
@ DEVBLK_CDI_PWR_LINK_0
LINK 0 Power.
@ DEVBLK_CDI_GPIO_EVENT_ERROR_UNKNOWN
A generic error occurred, potentially resulting in permanent loss of functionality.
const char * cameraModuleConfigPass2
NvMediaStatus DevBlkCDIGetCamPowerControlInfo(DevBlkCDIDevice *device, DevBlkCDIPowerControlInfo *camPwrControlInfo)
Get the camera's power control information.
@ DEVBLK_CDI_GPIO_EVENT_ERROR_CDAC
An error occurred in CDAC code, potentially resulting in permanent loss of functionality.
@ DEVBLK_CDI_PWR_LINK_1
LINK 1 PWR.
@ DEVBLK_CDI_PWR_LINK_2
LINK 2 PWR.
NvMediaStatus DevBlkCDIDeviceRead(DevBlkCDIDevice const *device, uint32_t deviceIndex, uint32_t regLength, uint8_t *regData, uint32_t dataLength, uint8_t *data)
Usage considerations
uint32_t count
Number of items in indices in gpio_idxs.
DevBlkCDIExposure exposureControl[DEVBLK_CDI_MAX_SENSOR_CONTEXTS]
Holds the sensor exposure settings to set for each context.
DevBlkCDIPowerItems
CDI Power control items.
NvMediaStatus DevBlkCDIGetSensorAttributes(DevBlkCDIDevice *device, DevBlkCDISensorAttributes *sensorAttr, const size_t sensorAttrStructSize)
Queries the sensor attributes.
DevBlkCDIGpioEvent
CDI codes for CDAC GPIO Interrupt Events.
@ DEVBLK_CDI_I2C_BUS_1
Specifies i2c-1.
@ DEVBLK_CDI_I2C_BUS_5
Specifies i2c-5.
char cameraModuleCfgName[128]
Holds the camera module name.
struct DevBlkCDIModuleConfig DevBlkCDIModuleConfig
Holds the CDI Module ISP configuration.
uint8_t i2cAddr
power controller i2c slave address.
@ DEVBLK_CDI_I2C_BUS_0
Specifies i2c-0.
Structure to hold power control information.
NvMediaStatus DevBlkCDIGetModuleConfig(DevBlkCDIDevice *device, DevBlkCDIModuleConfig *moduleConfig)
Gets the Module ISP configuration.
@ DEVBLK_CDI_GPIO_EVENT_NOTHING
There is no pending event.
NvMediaStatus DevBlkCDIEnableErrorReport(DevBlkCDIRootDevice const *device)
Enable the error report.
NvMediaStatus DevBlkCDISetSensorControls(DevBlkCDIDevice *device, const DevBlkCDISensorControl *sensorControl, const size_t sensrCtrlStructSize)
Sets sensor control parameters.
NvMediaStatus DevBlkCDIRootDeviceGetGpioIntrEvent(DevBlkCDIRootDevice const *device, uint32_t gpio_idx, DevBlkCDIGpioEvent *event_code)
Usage considerations
@ DEVBLK_CDI_I2C_BUS_8
Specifies i2c-8.
struct DevBlkCDISensorControl DevBlkCDISensorControl
Holds the sensor control structure.
void DevBlkCDIRootDevice
An opaque handle for an DevBlkCDIRootDevice object.
DevBlkCDI_I2CPort
Defines the I2C buses on the host hardware device.
Holds the handle for an DevBlkCDIDevice object.
Holds the CDI Module ISP configuration.
#define DEVBLK_CDI_ROOT_DEVICE_MAX_GPIOS
The maximum number of GPIOs supported on a CDI Root Device.
const char * cameraModuleConfigPass1
Holds the camera-specific configuration string.
const char * deviceName
Holds the device name.
@ DEVBLK_CDI_I2C_BUS_4
Specifies i2c-4.
void * clientContext
Holds the client context.
@ DEVBLK_CDI_PWR_AGGREGATOR
Aggregator Power.
@ DEVBLK_CDI_I2C_BUS_2
Specifies i2c-2.
void * deviceDriverHandle
@ DEVBLK_CDI_I2C_BUS_6
Specifies i2c-6.
DevBlkCDIFrameReport frameReportControl
Holds the sensor frame report value to be programmed.
uint32_t dataLength
Holds the target device data length in bytes.
人人超碰97caoporen国产