Linux Kernel
3.7.1
|
#include <linux/usb.h>
#include <linux/videodev2.h>
#include <linux/device.h>
#include <linux/stddef.h>
#include <linux/errno.h>
#include <asm/types.h>
Go to the source code of this file.
Data Structures | |
struct | sn9c102_sensor |
Macros | |
#define | sn9c102_write_const_regs(sn9c102_device, data...) |
#define | SN9C102_MAX_CTRLS (V4L2_CID_LASTP1-V4L2_CID_BASE+10) |
#define | SN9C102_V4L2_CID_DAC_MAGNITUDE (V4L2_CID_PRIVATE_BASE + 0) |
#define | SN9C102_V4L2_CID_GREEN_BALANCE (V4L2_CID_PRIVATE_BASE + 1) |
#define | SN9C102_V4L2_CID_RESET_LEVEL (V4L2_CID_PRIVATE_BASE + 2) |
#define | SN9C102_V4L2_CID_PIXEL_BIAS_VOLTAGE (V4L2_CID_PRIVATE_BASE + 3) |
#define | SN9C102_V4L2_CID_GAMMA (V4L2_CID_PRIVATE_BASE + 4) |
#define | SN9C102_V4L2_CID_BAND_FILTER (V4L2_CID_PRIVATE_BASE + 5) |
#define | SN9C102_V4L2_CID_BRIGHT_LEVEL (V4L2_CID_PRIVATE_BASE + 6) |
Enumerations | |
enum | sn9c102_bridge { BRIDGE_SN9C101 = 0x01, BRIDGE_SN9C102 = 0x02, BRIDGE_SN9C103 = 0x04, BRIDGE_SN9C105 = 0x08, BRIDGE_SN9C120 = 0x10 } |
enum | sn9c102_i2c_sysfs_ops { SN9C102_I2C_READ = 0x01, SN9C102_I2C_WRITE = 0x02 } |
enum | sn9c102_i2c_frequency { SN9C102_I2C_100KHZ = 0x01, SN9C102_I2C_400KHZ = 0x02 } |
enum | sn9c102_i2c_interface { SN9C102_I2C_2WIRES, SN9C102_I2C_3WIRES } |
#define SN9C102_MAX_CTRLS (V4L2_CID_LASTP1-V4L2_CID_BASE+10) |
Definition at line 146 of file sn9c102_sensor.h.
#define SN9C102_V4L2_CID_BAND_FILTER (V4L2_CID_PRIVATE_BASE + 5) |
Definition at line 304 of file sn9c102_sensor.h.
#define SN9C102_V4L2_CID_BRIGHT_LEVEL (V4L2_CID_PRIVATE_BASE + 6) |
Definition at line 305 of file sn9c102_sensor.h.
#define SN9C102_V4L2_CID_DAC_MAGNITUDE (V4L2_CID_PRIVATE_BASE + 0) |
Definition at line 299 of file sn9c102_sensor.h.
#define SN9C102_V4L2_CID_GAMMA (V4L2_CID_PRIVATE_BASE + 4) |
Definition at line 303 of file sn9c102_sensor.h.
#define SN9C102_V4L2_CID_GREEN_BALANCE (V4L2_CID_PRIVATE_BASE + 1) |
Definition at line 300 of file sn9c102_sensor.h.
#define SN9C102_V4L2_CID_PIXEL_BIAS_VOLTAGE (V4L2_CID_PRIVATE_BASE + 3) |
Definition at line 302 of file sn9c102_sensor.h.
#define SN9C102_V4L2_CID_RESET_LEVEL (V4L2_CID_PRIVATE_BASE + 2) |
Definition at line 301 of file sn9c102_sensor.h.
#define sn9c102_write_const_regs | ( | sn9c102_device, | |
data... | |||
) |
Definition at line 125 of file sn9c102_sensor.h.
enum sn9c102_bridge |
Definition at line 56 of file sn9c102_sensor.h.
Definition at line 136 of file sn9c102_sensor.h.
Definition at line 141 of file sn9c102_sensor.h.
Definition at line 131 of file sn9c102_sensor.h.
void sn9c102_attach_sensor | ( | struct sn9c102_device * | cam, |
const struct sn9c102_sensor * | sensor | ||
) |
enum sn9c102_bridge sn9c102_get_bridge | ( | struct sn9c102_device * | cam | ) |
|
read |
int sn9c102_i2c_read | ( | struct sn9c102_device * | , |
u8 | address | ||
) |
Definition at line 497 of file sn9c102_core.c.
int sn9c102_i2c_try_raw_read | ( | struct sn9c102_device * | cam, |
const struct sn9c102_sensor * | sensor, | ||
u8 | data0, | ||
u8 | data1, | ||
u8 | n, | ||
u8 | buffer[] | ||
) |
Definition at line 381 of file sn9c102_core.c.
int sn9c102_i2c_try_raw_write | ( | struct sn9c102_device * | cam, |
const struct sn9c102_sensor * | sensor, | ||
u8 | n, | ||
u8 | data0, | ||
u8 | data1, | ||
u8 | data2, | ||
u8 | data3, | ||
u8 | data4, | ||
u8 | data5 | ||
) |
Definition at line 440 of file sn9c102_core.c.
int sn9c102_i2c_try_read | ( | struct sn9c102_device * | , |
const struct sn9c102_sensor * | , | ||
u8 | address | ||
) |
Definition at line 479 of file sn9c102_core.c.
int sn9c102_i2c_write | ( | struct sn9c102_device * | , |
u8 | address, | ||
u8 | value | ||
) |
Definition at line 503 of file sn9c102_core.c.
|
read |
int sn9c102_pread_reg | ( | struct sn9c102_device * | , |
u16 | index | ||
) |
Definition at line 318 of file sn9c102_core.c.
int sn9c102_read_reg | ( | struct sn9c102_device * | , |
u16 | index | ||
) |
Definition at line 302 of file sn9c102_core.c.
int sn9c102_write_reg | ( | struct sn9c102_device * | , |
u8 | value, | ||
u16 | index | ||
) |
Definition at line 276 of file sn9c102_core.c.
Definition at line 240 of file sn9c102_core.c.