Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches
cam_config.h File Reference
#include "userDef.h"
#include "cam/device/IMX708.h"

Go to the source code of this file.

Overview

Camera Configuration and Driver Selection.

Author
Efinix Inc

This file automatically selects the correct I2C address and driver structure based on the user-defined ACTIVE_CAM_TYPE.

Definition in file cam_config.h.

Macros

Automatic Driver Selection

Resolves the low-level driver implementation based on ACTIVE_CAM_TYPE. This allows the user to switch camera devices by changing a single configuration value in userDef.h.

Note
  • User can switch between supported camera devices by changing the ACTIVE_CAM_TYPE macro.
    • Add #define ACTIVE_CAM_TYPE CAM_TYPE_IMX708 in userDef.h to use IMX708 Camera.
    • Add #define ACTIVE_CAM_TYPE CAM_TYPE_IMX219 in userDef.h to use IMX219 Camera.
  • For custom cam devices, include the custom driver header and define CAM_CTRL and CAM_DRIVER macros accordingly.
    • Refer to userDef.h in cameraStreaming_HDMI of including a custom camera driver.
#define CAM_CTRL   CAM_IMX708_ADDR
 I2C Address for the currently selected cam (IMX708).
#define CAM_DRIVER   IMX708_DRIVER
 Driver Interface Table for the currently selected cam (IMX708).