RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
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

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.