Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
indycam.h File Reference

Go to the source code of this file.

Macros

#define INDYCAM_ADDR   0x56
 
#define CAMERA_VERSION_INDY   0x10 /* v1.0 */
 
#define CAMERA_VERSION_MOOSE   0x12 /* v1.2 */
 
#define INDYCAM_VERSION_MAJOR(x)   (((x) & 0xf0) >> 4)
 
#define INDYCAM_VERSION_MINOR(x)   ((x) & 0x0f)
 
#define INDYCAM_REG_CONTROL   0x00
 
#define INDYCAM_REG_SHUTTER   0x01
 
#define INDYCAM_REG_GAIN   0x02
 
#define INDYCAM_REG_BRIGHTNESS   0x03 /* read-only */
 
#define INDYCAM_REG_RED_BALANCE   0x04
 
#define INDYCAM_REG_BLUE_BALANCE   0x05
 
#define INDYCAM_REG_RED_SATURATION   0x06
 
#define INDYCAM_REG_BLUE_SATURATION   0x07
 
#define INDYCAM_REG_GAMMA   0x08
 
#define INDYCAM_REG_VERSION   0x0e /* read-only */
 
#define INDYCAM_REG_RESET   0x0f /* write-only */
 
#define INDYCAM_REG_LED   0x46
 
#define INDYCAM_REG_ORIENTATION   0x47
 
#define INDYCAM_REG_BUTTON   0x48
 
#define INDYCAM_CONTROL_AGCENA   (1<<0) /* automatic gain control */
 
#define INDYCAM_CONTROL_AWBCTL   (1<<1) /* automatic white balance */
 
#define INDYCAM_CONTROL_EVNFLD   (1<<4) /* read-only */
 
#define INDYCAM_SHUTTER_10000   0x02 /* 1/10000 second */
 
#define INDYCAM_SHUTTER_4000   0x04 /* 1/4000 second */
 
#define INDYCAM_SHUTTER_2000   0x08 /* 1/2000 second */
 
#define INDYCAM_SHUTTER_1000   0x10 /* 1/1000 second */
 
#define INDYCAM_SHUTTER_500   0x20 /* 1/500 second */
 
#define INDYCAM_SHUTTER_250   0x3f /* 1/250 second */
 
#define INDYCAM_SHUTTER_125   0x7e /* 1/125 second */
 
#define INDYCAM_SHUTTER_100   0x9e /* 1/100 second */
 
#define INDYCAM_SHUTTER_60   0x00 /* 1/60 second */
 
#define INDYCAM_LED_ACTIVE   0x10
 
#define INDYCAM_LED_INACTIVE   0x30
 
#define INDYCAM_ORIENTATION_BOTTOM_TO_TOP   0x40
 
#define INDYCAM_BUTTON_RELEASED   0x10
 
#define INDYCAM_SHUTTER_MIN   0x00
 
#define INDYCAM_SHUTTER_MAX   0xff
 
#define INDYCAM_GAIN_MIN   0x00
 
#define INDYCAM_GAIN_MAX   0xff
 
#define INDYCAM_RED_BALANCE_MIN   0x00
 
#define INDYCAM_RED_BALANCE_MAX   0xff
 
#define INDYCAM_BLUE_BALANCE_MIN   0x00
 
#define INDYCAM_BLUE_BALANCE_MAX   0xff
 
#define INDYCAM_RED_SATURATION_MIN   0x00
 
#define INDYCAM_RED_SATURATION_MAX   0xff
 
#define INDYCAM_BLUE_SATURATION_MIN   0x00
 
#define INDYCAM_BLUE_SATURATION_MAX   0xff
 
#define INDYCAM_GAMMA_MIN   0x00
 
#define INDYCAM_GAMMA_MAX   0xff
 
#define INDYCAM_AGC_DEFAULT   1
 
#define INDYCAM_AWB_DEFAULT   0
 
#define INDYCAM_SHUTTER_DEFAULT   0xff
 
#define INDYCAM_GAIN_DEFAULT   0x80
 
#define INDYCAM_RED_BALANCE_DEFAULT   0x18
 
#define INDYCAM_BLUE_BALANCE_DEFAULT   0xa4
 
#define INDYCAM_RED_SATURATION_DEFAULT   0x80
 
#define INDYCAM_BLUE_SATURATION_DEFAULT   0xc0
 
#define INDYCAM_GAMMA_DEFAULT   0x80
 
#define INDYCAM_CONTROL_RED_SATURATION   (V4L2_CID_PRIVATE_BASE + 0)
 
#define INDYCAM_CONTROL_BLUE_SATURATION   (V4L2_CID_PRIVATE_BASE + 1)
 

Macro Definition Documentation

#define CAMERA_VERSION_INDY   0x10 /* v1.0 */

Definition at line 19 of file indycam.h.

#define CAMERA_VERSION_MOOSE   0x12 /* v1.2 */

Definition at line 20 of file indycam.h.

#define INDYCAM_ADDR   0x56

Definition at line 16 of file indycam.h.

#define INDYCAM_AGC_DEFAULT   1

Definition at line 78 of file indycam.h.

#define INDYCAM_AWB_DEFAULT   0

Definition at line 79 of file indycam.h.

#define INDYCAM_BLUE_BALANCE_DEFAULT   0xa4

Definition at line 83 of file indycam.h.

#define INDYCAM_BLUE_BALANCE_MAX   0xff

Definition at line 70 of file indycam.h.

#define INDYCAM_BLUE_BALANCE_MIN   0x00

Definition at line 69 of file indycam.h.

#define INDYCAM_BLUE_SATURATION_DEFAULT   0xc0

Definition at line 85 of file indycam.h.

#define INDYCAM_BLUE_SATURATION_MAX   0xff

Definition at line 74 of file indycam.h.

#define INDYCAM_BLUE_SATURATION_MIN   0x00

Definition at line 73 of file indycam.h.

#define INDYCAM_BUTTON_RELEASED   0x10

Definition at line 60 of file indycam.h.

#define INDYCAM_CONTROL_AGCENA   (1<<0) /* automatic gain control */

Definition at line 42 of file indycam.h.

#define INDYCAM_CONTROL_AWBCTL   (1<<1) /* automatic white balance */

Definition at line 43 of file indycam.h.

#define INDYCAM_CONTROL_BLUE_SATURATION   (V4L2_CID_PRIVATE_BASE + 1)

Definition at line 91 of file indycam.h.

#define INDYCAM_CONTROL_EVNFLD   (1<<4) /* read-only */

Definition at line 45 of file indycam.h.

#define INDYCAM_CONTROL_RED_SATURATION   (V4L2_CID_PRIVATE_BASE + 0)

Definition at line 90 of file indycam.h.

#define INDYCAM_GAIN_DEFAULT   0x80

Definition at line 81 of file indycam.h.

#define INDYCAM_GAIN_MAX   0xff

Definition at line 66 of file indycam.h.

#define INDYCAM_GAIN_MIN   0x00

Definition at line 65 of file indycam.h.

#define INDYCAM_GAMMA_DEFAULT   0x80

Definition at line 86 of file indycam.h.

#define INDYCAM_GAMMA_MAX   0xff

Definition at line 76 of file indycam.h.

#define INDYCAM_GAMMA_MIN   0x00

Definition at line 75 of file indycam.h.

#define INDYCAM_LED_ACTIVE   0x10

Definition at line 57 of file indycam.h.

#define INDYCAM_LED_INACTIVE   0x30

Definition at line 58 of file indycam.h.

#define INDYCAM_ORIENTATION_BOTTOM_TO_TOP   0x40

Definition at line 59 of file indycam.h.

#define INDYCAM_RED_BALANCE_DEFAULT   0x18

Definition at line 82 of file indycam.h.

#define INDYCAM_RED_BALANCE_MAX   0xff

Definition at line 68 of file indycam.h.

#define INDYCAM_RED_BALANCE_MIN   0x00

Definition at line 67 of file indycam.h.

#define INDYCAM_RED_SATURATION_DEFAULT   0x80

Definition at line 84 of file indycam.h.

#define INDYCAM_RED_SATURATION_MAX   0xff

Definition at line 72 of file indycam.h.

#define INDYCAM_RED_SATURATION_MIN   0x00

Definition at line 71 of file indycam.h.

#define INDYCAM_REG_BLUE_BALANCE   0x05

Definition at line 30 of file indycam.h.

#define INDYCAM_REG_BLUE_SATURATION   0x07

Definition at line 32 of file indycam.h.

#define INDYCAM_REG_BRIGHTNESS   0x03 /* read-only */

Definition at line 28 of file indycam.h.

#define INDYCAM_REG_BUTTON   0x48

Definition at line 39 of file indycam.h.

#define INDYCAM_REG_CONTROL   0x00

Definition at line 25 of file indycam.h.

#define INDYCAM_REG_GAIN   0x02

Definition at line 27 of file indycam.h.

#define INDYCAM_REG_GAMMA   0x08

Definition at line 33 of file indycam.h.

#define INDYCAM_REG_LED   0x46

Definition at line 37 of file indycam.h.

#define INDYCAM_REG_ORIENTATION   0x47

Definition at line 38 of file indycam.h.

#define INDYCAM_REG_RED_BALANCE   0x04

Definition at line 29 of file indycam.h.

#define INDYCAM_REG_RED_SATURATION   0x06

Definition at line 31 of file indycam.h.

#define INDYCAM_REG_RESET   0x0f /* write-only */

Definition at line 35 of file indycam.h.

#define INDYCAM_REG_SHUTTER   0x01

Definition at line 26 of file indycam.h.

#define INDYCAM_REG_VERSION   0x0e /* read-only */

Definition at line 34 of file indycam.h.

#define INDYCAM_SHUTTER_100   0x9e /* 1/100 second */

Definition at line 54 of file indycam.h.

#define INDYCAM_SHUTTER_1000   0x10 /* 1/1000 second */

Definition at line 50 of file indycam.h.

#define INDYCAM_SHUTTER_10000   0x02 /* 1/10000 second */

Definition at line 47 of file indycam.h.

#define INDYCAM_SHUTTER_125   0x7e /* 1/125 second */

Definition at line 53 of file indycam.h.

#define INDYCAM_SHUTTER_2000   0x08 /* 1/2000 second */

Definition at line 49 of file indycam.h.

#define INDYCAM_SHUTTER_250   0x3f /* 1/250 second */

Definition at line 52 of file indycam.h.

#define INDYCAM_SHUTTER_4000   0x04 /* 1/4000 second */

Definition at line 48 of file indycam.h.

#define INDYCAM_SHUTTER_500   0x20 /* 1/500 second */

Definition at line 51 of file indycam.h.

#define INDYCAM_SHUTTER_60   0x00 /* 1/60 second */

Definition at line 55 of file indycam.h.

#define INDYCAM_SHUTTER_DEFAULT   0xff

Definition at line 80 of file indycam.h.

#define INDYCAM_SHUTTER_MAX   0xff

Definition at line 64 of file indycam.h.

#define INDYCAM_SHUTTER_MIN   0x00

Definition at line 63 of file indycam.h.

#define INDYCAM_VERSION_MAJOR (   x)    (((x) & 0xf0) >> 4)

Definition at line 21 of file indycam.h.

#define INDYCAM_VERSION_MINOR (   x)    ((x) & 0x0f)

Definition at line 22 of file indycam.h.