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
Driver Configuration

Overview

Automatic hardware selection logic.

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).

Macro Definition Documentation

◆ CAM_CTRL

#define CAM_CTRL   CAM_IMX708_ADDR

#include <cam_config.h>

I2C Address for the currently selected cam (IMX708).

Note
User can switch to different cam device by changing ACTIVE_CAM_TYPE macro in userDef.h. cam_CTRL used for Address of cam controller

Definition at line 53 of file cam_config.h.

◆ CAM_DRIVER

#define CAM_DRIVER   IMX708_DRIVER

#include <cam_config.h>

Driver Interface Table for the currently selected cam (IMX708).

Note
User can switch to different cam device by changing ACTIVE_CAM_TYPE macro in userDef.h. cam_DRIVER used for Driver API Table of Camera controller

Definition at line 58 of file cam_config.h.