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... | |
#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.
[in] | csi | The CSI port number defined in NvSiplCapInterfaceType. |
[in] | i2c | The I2C bus number defined in DevBlkCDI_I2CPort. |
Definition at line 68 of file devblk_cdi.h.
#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.
[in] | csi | The CSI port number defined in NvSiplCapInterfaceType. |
[in] | i2c | The I2C bus number defined in DevBlkCDI_I2CPort. |
[in] | disPwrCtrl | A 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.
#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.
[in] | csi | The CSI port number defined in NvSiplCapInterfaceType. |
[in] | i2c | The I2C bus number defined in DevBlkCDI_I2CPort. |
Definition at line 98 of file devblk_cdi.h.
#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.
#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.
#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.
#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.