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.h File Reference
#include "i2c/i2c.h"
#include "cam/cam_config.h"

Go to the source code of this file.

Overview

CAM driver API definitions.

Author
Efinix Inc

This file provides data structures and APIs for controlling the CAM peripheral on the EfxSapphireSoC platform.

Definition in file cam.h.

Data Structures

struct  cam_api_t
 CAM API structure. More...
struct  cam_instance
 CAM instance structure. More...

Typedefs

typedef struct cam_instance cam_instance_t
 Forward declaration of CAM instance.

Enumerations

Callback Enums

Enums used for driver callback handling.

Note
Used to indicate success or failure of CAM operations.
enum  cam_status_t { CAM_OK = 0 , CAM_ERR = 1 , CAM_USER_ERR = 2 , CAM_SKIP = 3 }
 CAM Status List. More...

Functions

Camera Common Function (read/write register)

Helper function.

void cam_writeReg (cam_instance_t *cam, u16 reg, u8 data)
 Write Data to specific register in camera.
u8 cam_readReg (cam_instance_t *cam, u16 reg)
 Read Data from specific register in camera.