Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

ov2640.c File Reference


Detailed Description

ov2640 camera driver functions

Definition in file ov2640.c.

#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/i2c.h>
#include <linux/regulator/consumer.h>
#include <mach/hardware.h>
#include <media/v4l2-int-device.h>
#include "mxc_v4l2_capture.h"

Go to the source code of this file.

Classes

struct  reg_value
struct  sensor

Defines

#define DEFAULT_FPS   30
#define MAX_FPS   30
#define MIN_FPS   5
#define OV2640_XCLK_MAX   27000000
#define OV2640_XCLK_MIN   6000000

Functions

void gpio_sensor_active (void)
void gpio_sensor_inactive (void)
static int ioctl_dev_exit (struct v4l2_int_device *s)
static int ioctl_dev_init (struct v4l2_int_device *s)
static int ioctl_g_ctrl (struct v4l2_int_device *s, struct v4l2_control *vc)
static int ioctl_g_fmt_cap (struct v4l2_int_device *s, struct v4l2_format *f)
static int ioctl_g_ifparm (struct v4l2_int_device *s, struct v4l2_ifparm *p)
static int ioctl_g_parm (struct v4l2_int_device *s, struct v4l2_streamparm *a)
static int ioctl_init (struct v4l2_int_device *s)
static int ioctl_s_ctrl (struct v4l2_int_device *s, struct v4l2_control *vc)
static int ioctl_s_fmt_cap (struct v4l2_int_device *s, struct v4l2_format *f)
static int ioctl_s_parm (struct v4l2_int_device *s, struct v4l2_streamparm *a)
static int ioctl_s_power (struct v4l2_int_device *s, int on)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("OV2640 Camera Driver")
 MODULE_DEVICE_TABLE (i2c, ov2640_id)
 module_exit (ov2640_clean)
 module_init (ov2640_init)
 MODULE_LICENSE ("GPL")
static void __exit ov2640_clean (void)
static __init int ov2640_init (void)
static int ov2640_init_mode (struct sensor *s)
static int ov2640_probe (struct i2c_client *client, const struct i2c_device_id *id)
static int ov2640_remove (struct i2c_client *client)
static int ov2640_set_format (struct sensor *s, int format)
static int ov2640_set_fps (struct sensor *s, int fps)

Variables

static struct regulator * analog_regulator
static struct regulator * core_regulator
static struct regulator * gpo_regulator
static struct regulator * io_regulator
struct sensor ov2640_data
static struct i2c_driver ov2640_i2c_driver
static struct i2c_device_id ov2640_id []
static struct v4l2_int_device ov2640_int_device
static struct v4l2_int_ioctl_desc ov2640_ioctl_desc []
static struct reg_value ov2640_setting_1600_1120 []
static struct reg_value ov2640_setting_800_600 []
static struct v4l2_int_slave ov2640_slave


Generated by  Doxygen 1.6.0   Back to index