NVIDIA DRIVE OS Linux SDK API Reference

6.0.3 Release

Detailed Description

The Camera Device Interface API provides common CDI processing functions.

Macros

#define DEVBLK_CDI_SIMULATOR_ADDRESS   0xFF1U
 Device address to use for an CDI simulator device. More...
 
#define RDEV_CFG_I2C_BITS   8
 Bits reserved for the I2C bus number in CDI_RDEV_CFG(csi, i2c). More...
 
#define RDEV_CFG_CSI_BITS   (RDEV_CFG_I2C_BITS + 8)
 Bits reserved for the CSI port in CDI_SLV_RDEV_CFG(csi, i2c). More...
 
#define RDEV_CFG_SLV_BIT   (RDEV_CFG_CSI_BITS + 1)
 Bit reserved for the passive mode flag in CDI_SLV_RDEV_CFG(csi, i2c). More...
 
#define CDI_RDEV_CFG(csi, i2c)   (((uint32_t)(csi) << (uint32_t)RDEV_CFG_I2C_BITS) | (i2c))
 Macro to create root device configuration with the connected CSI port and I2C bus. More...
 
#define CDI_RDEV_CFG_EX(csi, i2c, disPwrCtrl)
 Extended macro to create root device configuration with the connected CSI port, I2C bus, and an option to disable power control from root device. More...
 
#define CDI_SLV_RDEV_CFG(csi, i2c)   ((i2c) | ((uint32_t)(csi) << RDEV_CFG_I2C_BITS) | ((uint32_t)(1U) << RDEV_CFG_CSI_BITS))
 Macro to create a passive root device configuration with the connected CSI port and I2C bus when the application is run on a passive SoC. More...
 

Macro Definition Documentation

◆ CDI_RDEV_CFG

#define CDI_RDEV_CFG (   csi,
  i2c 
)    (((uint32_t)(csi) << (uint32_t)RDEV_CFG_I2C_BITS) | (i2c))

Macro to create root device configuration with the connected CSI port and I2C bus.

Parameters
[in]csiThe CSI port number defined in NvSiplCapInterfaceType.
[in]i2cThe I2C bus number defined in DevBlkCDI_I2CPort.

Definition at line 68 of file devblk_cdi.h.

◆ CDI_RDEV_CFG_EX

#define CDI_RDEV_CFG_EX (   csi,
  i2c,
  disPwrCtrl 
)
Value:
((i2c & 0xffU) | \
((uint32_t)(csi & 0xffU) << (uint32_t)RDEV_CFG_I2C_BITS) | \
((uint32_t)(disPwrCtrl & 1U) << (uint32_t)RDEV_CFG_SLV_BIT))

Extended macro to create root device configuration with the connected CSI port, I2C bus, and an option to disable power control from root device.

Parameters
[in]csiThe CSI port number defined in NvSiplCapInterfaceType.
[in]i2cThe I2C bus number defined in DevBlkCDI_I2CPort.
[in]disPwrCtrlA flag to disable power control. Value must be 0 (root device turns on power for devices in DevBlkCDIRootDeviceCreate() and turns off power for devices in DevBlkCDIRootDeviceDestroy()) or 1 (root device does not control power for devices in DevBlkCDIRootDeviceCreate() and DevBlkCDIRootDeviceDestroy()). Valid range: [0, 1].

Definition at line 86 of file devblk_cdi.h.

◆ CDI_SLV_RDEV_CFG

#define CDI_SLV_RDEV_CFG (   csi,
  i2c 
)    ((i2c) | ((uint32_t)(csi) << RDEV_CFG_I2C_BITS) | ((uint32_t)(1U) << RDEV_CFG_CSI_BITS))

Macro to create a passive root device configuration with the connected CSI port and I2C bus when the application is run on a passive SoC.

Parameters
[in]csiThe CSI port number defined in NvSiplCapInterfaceType.
[in]i2cThe I2C bus number defined in DevBlkCDI_I2CPort.

Definition at line 98 of file devblk_cdi.h.

◆ DEVBLK_CDI_SIMULATOR_ADDRESS

#define DEVBLK_CDI_SIMULATOR_ADDRESS   0xFF1U

Device address to use for an CDI simulator device.

Select the DEVBLK_CDI_I2C_SIMULATOR port to use simulator mode for all devices.

Definition at line 55 of file devblk_cdi.h.

◆ RDEV_CFG_CSI_BITS

#define RDEV_CFG_CSI_BITS   (RDEV_CFG_I2C_BITS + 8)

Bits reserved for the CSI port in CDI_SLV_RDEV_CFG(csi, i2c).

Definition at line 59 of file devblk_cdi.h.

◆ RDEV_CFG_I2C_BITS

#define RDEV_CFG_I2C_BITS   8

Bits reserved for the I2C bus number in CDI_RDEV_CFG(csi, i2c).

Definition at line 57 of file devblk_cdi.h.

◆ RDEV_CFG_SLV_BIT

#define RDEV_CFG_SLV_BIT   (RDEV_CFG_CSI_BITS + 1)

Bit reserved for the passive mode flag in CDI_SLV_RDEV_CFG(csi, i2c).

Definition at line 61 of file devblk_cdi.h.

RDEV_CFG_SLV_BIT
#define RDEV_CFG_SLV_BIT
Bit reserved for the passive mode flag in CDI_SLV_RDEV_CFG(csi, i2c).
Definition: devblk_cdi.h:61
RDEV_CFG_I2C_BITS
#define RDEV_CFG_I2C_BITS
Bits reserved for the I2C bus number in CDI_RDEV_CFG(csi, i2c).
Definition: devblk_cdi.h:57