Instrument Neutral Distributed Interface INDI  1.9.2
Classes | Macros | Functions | Variables
pwc-ioctl.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Classes

struct  pwc_coord
 
struct  pwc_probe
 
struct  pwc_serial
 
struct  pwc_whitebalance
 
struct  pwc_wb_speed
 
struct  pwc_leds
 
struct  pwc_imagesize
 
struct  pwc_mpt_angles
 
struct  pwc_mpt_range
 
struct  pwc_mpt_status
 
struct  pwc_video_command
 
struct  pwc_table_init_buffer
 
struct  pwc_raw_frame
 

Macros

#define PSZ_SQCIF   0x00
 
#define PSZ_QSIF   0x01
 
#define PSZ_QCIF   0x02
 
#define PSZ_SIF   0x03
 
#define PSZ_CIF   0x04
 
#define PSZ_VGA   0x05
 
#define PSZ_MAX   6
 
#define PWC_FPS_SHIFT   16
 
#define PWC_FPS_MASK   0x00FF0000
 
#define PWC_FPS_FRMASK   0x003F0000
 
#define PWC_FPS_SNAPSHOT   0x00400000
 
#define PWC_QLT_MASK   0x03000000
 
#define PWC_QLT_SHIFT   24
 
#define PWC_WB_INDOOR   0
 
#define PWC_WB_OUTDOOR   1
 
#define PWC_WB_FL   2
 
#define PWC_WB_MANUAL   3
 
#define PWC_WB_AUTO   4
 
#define PWC_MPT_PAN   0x01
 
#define PWC_MPT_TILT   0x02
 
#define PWC_MPT_TIMEOUT   0x04 /* for status */
 
#define PWCX_FLAG_PLANAR   0x0001
 
#define PWCX_FLAG_BAYER   0x0008
 
#define VIDIOCPWCRUSER   _IO('v', 192)
 
#define VIDIOCPWCSUSER   _IO('v', 193)
 
#define VIDIOCPWCFACTORY   _IO('v', 194)
 
#define VIDIOCPWCSCQUAL   _IOW('v', 195, int)
 
#define VIDIOCPWCGCQUAL   _IOR('v', 195, int)
 
#define VIDIOCPWCGSERIAL   _IOR('v', 198, struct pwc_serial)
 
#define VIDIOCPWCPROBE   _IOR('v', 199, struct pwc_probe)
 
#define VIDIOCPWCSAGC   _IOW('v', 200, int)
 
#define VIDIOCPWCGAGC   _IOR('v', 200, int)
 
#define VIDIOCPWCSSHUTTER   _IOW('v', 201, int)
 
#define VIDIOCPWCSAWB   _IOW('v', 202, struct pwc_whitebalance)
 
#define VIDIOCPWCGAWB   _IOR('v', 202, struct pwc_whitebalance)
 
#define VIDIOCPWCSAWBSPEED   _IOW('v', 203, struct pwc_wb_speed)
 
#define VIDIOCPWCGAWBSPEED   _IOR('v', 203, struct pwc_wb_speed)
 
#define VIDIOCPWCSLED   _IOW('v', 205, struct pwc_leds)
 
#define VIDIOCPWCGLED   _IOR('v', 205, struct pwc_leds)
 
#define VIDIOCPWCSCONTOUR   _IOW('v', 206, int)
 
#define VIDIOCPWCGCONTOUR   _IOR('v', 206, int)
 
#define VIDIOCPWCSBACKLIGHT   _IOW('v', 207, int)
 
#define VIDIOCPWCGBACKLIGHT   _IOR('v', 207, int)
 
#define VIDIOCPWCSFLICKER   _IOW('v', 208, int)
 
#define VIDIOCPWCGFLICKER   _IOR('v', 208, int)
 
#define VIDIOCPWCSDYNNOISE   _IOW('v', 209, int)
 
#define VIDIOCPWCGDYNNOISE   _IOR('v', 209, int)
 
#define VIDIOCPWCGREALSIZE   _IOR('v', 210, struct pwc_imagesize)
 
#define VIDIOCPWCMPTRESET   _IOW('v', 211, int)
 
#define VIDIOCPWCMPTGRANGE   _IOR('v', 211, struct pwc_mpt_range)
 
#define VIDIOCPWCMPTSANGLE   _IOW('v', 212, struct pwc_mpt_angles)
 
#define VIDIOCPWCMPTGANGLE   _IOR('v', 212, struct pwc_mpt_angles)
 
#define VIDIOCPWCMPTSTATUS   _IOR('v', 213, struct pwc_mpt_status)
 
#define VIDIOCPWCGVIDCMD   _IOR('v', 215, struct pwc_video_command)
 
#define VIDIOCPWCGVIDTABLE   _IOR('v', 216, struct pwc_table_init_buffer)
 
#define V4L2_CID_PRIVATE_SAVE_USER   (V4L2_CID_PRIVATE_BASE + 0)
 
#define V4L2_CID_PRIVATE_RESTORE_USER   (V4L2_CID_PRIVATE_BASE + 1)
 
#define V4L2_CID_PRIVATE_RESTORE_FACTORY   (V4L2_CID_PRIVATE_BASE + 2)
 
#define V4L2_CID_PRIVATE_COLOUR_MODE   (V4L2_CID_PRIVATE_BASE + 3)
 
#define V4L2_CID_PRIVATE_AUTOCONTOUR   (V4L2_CID_PRIVATE_BASE + 4)
 
#define V4L2_CID_PRIVATE_CONTOUR   (V4L2_CID_PRIVATE_BASE + 5)
 
#define V4L2_CID_PRIVATE_BACKLIGHT   (V4L2_CID_PRIVATE_BASE + 6)
 
#define V4L2_CID_PRIVATE_FLICKERLESS   (V4L2_CID_PRIVATE_BASE + 7)
 
#define V4L2_CID_PRIVATE_NOISE_REDUCTION   (V4L2_CID_PRIVATE_BASE + 8)
 

Functions

struct pwc_raw_frame __attribute__ ((packed))
 

Variables

__le16 type
 
__le16 vbandlength
 
__u8 cmd [4]
 
__u8 rawframe [0]
 

Macro Definition Documentation

◆ PSZ_CIF

#define PSZ_CIF   0x04

Definition at line 67 of file pwc-ioctl.h.

◆ PSZ_MAX

#define PSZ_MAX   6

Definition at line 69 of file pwc-ioctl.h.

◆ PSZ_QCIF

#define PSZ_QCIF   0x02

Definition at line 65 of file pwc-ioctl.h.

◆ PSZ_QSIF

#define PSZ_QSIF   0x01

Definition at line 64 of file pwc-ioctl.h.

◆ PSZ_SIF

#define PSZ_SIF   0x03

Definition at line 66 of file pwc-ioctl.h.

◆ PSZ_SQCIF

#define PSZ_SQCIF   0x00

Definition at line 63 of file pwc-ioctl.h.

◆ PSZ_VGA

#define PSZ_VGA   0x05

Definition at line 68 of file pwc-ioctl.h.

◆ PWC_FPS_FRMASK

#define PWC_FPS_FRMASK   0x003F0000

Definition at line 82 of file pwc-ioctl.h.

◆ PWC_FPS_MASK

#define PWC_FPS_MASK   0x00FF0000

Definition at line 81 of file pwc-ioctl.h.

◆ PWC_FPS_SHIFT

#define PWC_FPS_SHIFT   16

Definition at line 80 of file pwc-ioctl.h.

◆ PWC_FPS_SNAPSHOT

#define PWC_FPS_SNAPSHOT   0x00400000

Definition at line 83 of file pwc-ioctl.h.

◆ PWC_MPT_PAN

#define PWC_MPT_PAN   0x01

Definition at line 154 of file pwc-ioctl.h.

◆ PWC_MPT_TILT

#define PWC_MPT_TILT   0x02

Definition at line 155 of file pwc-ioctl.h.

◆ PWC_MPT_TIMEOUT

#define PWC_MPT_TIMEOUT   0x04 /* for status */

Definition at line 156 of file pwc-ioctl.h.

◆ PWC_QLT_MASK

#define PWC_QLT_MASK   0x03000000

Definition at line 84 of file pwc-ioctl.h.

◆ PWC_QLT_SHIFT

#define PWC_QLT_SHIFT   24

Definition at line 85 of file pwc-ioctl.h.

◆ PWC_WB_AUTO

#define PWC_WB_AUTO   4

Definition at line 111 of file pwc-ioctl.h.

◆ PWC_WB_FL

#define PWC_WB_FL   2

Definition at line 109 of file pwc-ioctl.h.

◆ PWC_WB_INDOOR

#define PWC_WB_INDOOR   0

Definition at line 107 of file pwc-ioctl.h.

◆ PWC_WB_MANUAL

#define PWC_WB_MANUAL   3

Definition at line 110 of file pwc-ioctl.h.

◆ PWC_WB_OUTDOOR

#define PWC_WB_OUTDOOR   1

Definition at line 108 of file pwc-ioctl.h.

◆ PWCX_FLAG_BAYER

#define PWCX_FLAG_BAYER   0x0008

Definition at line 204 of file pwc-ioctl.h.

◆ PWCX_FLAG_PLANAR

#define PWCX_FLAG_PLANAR   0x0001

Definition at line 203 of file pwc-ioctl.h.

◆ V4L2_CID_PRIVATE_AUTOCONTOUR

#define V4L2_CID_PRIVATE_AUTOCONTOUR   (V4L2_CID_PRIVATE_BASE + 4)

Definition at line 306 of file pwc-ioctl.h.

◆ V4L2_CID_PRIVATE_BACKLIGHT

#define V4L2_CID_PRIVATE_BACKLIGHT   (V4L2_CID_PRIVATE_BASE + 6)

Definition at line 308 of file pwc-ioctl.h.

◆ V4L2_CID_PRIVATE_COLOUR_MODE

#define V4L2_CID_PRIVATE_COLOUR_MODE   (V4L2_CID_PRIVATE_BASE + 3)

Definition at line 305 of file pwc-ioctl.h.

◆ V4L2_CID_PRIVATE_CONTOUR

#define V4L2_CID_PRIVATE_CONTOUR   (V4L2_CID_PRIVATE_BASE + 5)

Definition at line 307 of file pwc-ioctl.h.

◆ V4L2_CID_PRIVATE_FLICKERLESS

#define V4L2_CID_PRIVATE_FLICKERLESS   (V4L2_CID_PRIVATE_BASE + 7)

Definition at line 309 of file pwc-ioctl.h.

◆ V4L2_CID_PRIVATE_NOISE_REDUCTION

#define V4L2_CID_PRIVATE_NOISE_REDUCTION   (V4L2_CID_PRIVATE_BASE + 8)

Definition at line 310 of file pwc-ioctl.h.

◆ V4L2_CID_PRIVATE_RESTORE_FACTORY

#define V4L2_CID_PRIVATE_RESTORE_FACTORY   (V4L2_CID_PRIVATE_BASE + 2)

Definition at line 304 of file pwc-ioctl.h.

◆ V4L2_CID_PRIVATE_RESTORE_USER

#define V4L2_CID_PRIVATE_RESTORE_USER   (V4L2_CID_PRIVATE_BASE + 1)

Definition at line 303 of file pwc-ioctl.h.

◆ V4L2_CID_PRIVATE_SAVE_USER

#define V4L2_CID_PRIVATE_SAVE_USER   (V4L2_CID_PRIVATE_BASE + 0)

Definition at line 302 of file pwc-ioctl.h.

◆ VIDIOCPWCFACTORY

#define VIDIOCPWCFACTORY   _IO('v', 194)

Definition at line 213 of file pwc-ioctl.h.

◆ VIDIOCPWCGAGC

#define VIDIOCPWCGAGC   _IOR('v', 200, int)

Definition at line 245 of file pwc-ioctl.h.

◆ VIDIOCPWCGAWB

#define VIDIOCPWCGAWB   _IOR('v', 202, struct pwc_whitebalance)

Definition at line 251 of file pwc-ioctl.h.

◆ VIDIOCPWCGAWBSPEED

#define VIDIOCPWCGAWBSPEED   _IOR('v', 203, struct pwc_wb_speed)

Definition at line 255 of file pwc-ioctl.h.

◆ VIDIOCPWCGBACKLIGHT

#define VIDIOCPWCGBACKLIGHT   _IOR('v', 207, int)

Definition at line 267 of file pwc-ioctl.h.

◆ VIDIOCPWCGCONTOUR

#define VIDIOCPWCGCONTOUR   _IOR('v', 206, int)

Definition at line 263 of file pwc-ioctl.h.

◆ VIDIOCPWCGCQUAL

#define VIDIOCPWCGCQUAL   _IOR('v', 195, int)

Definition at line 225 of file pwc-ioctl.h.

◆ VIDIOCPWCGDYNNOISE

#define VIDIOCPWCGDYNNOISE   _IOR('v', 209, int)

Definition at line 275 of file pwc-ioctl.h.

◆ VIDIOCPWCGFLICKER

#define VIDIOCPWCGFLICKER   _IOR('v', 208, int)

Definition at line 271 of file pwc-ioctl.h.

◆ VIDIOCPWCGLED

#define VIDIOCPWCGLED   _IOR('v', 205, struct pwc_leds)

Definition at line 259 of file pwc-ioctl.h.

◆ VIDIOCPWCGREALSIZE

#define VIDIOCPWCGREALSIZE   _IOR('v', 210, struct pwc_imagesize)

Definition at line 278 of file pwc-ioctl.h.

◆ VIDIOCPWCGSERIAL

#define VIDIOCPWCGSERIAL   _IOR('v', 198, struct pwc_serial)

Definition at line 228 of file pwc-ioctl.h.

◆ VIDIOCPWCGVIDCMD

#define VIDIOCPWCGVIDCMD   _IOR('v', 215, struct pwc_video_command)

Definition at line 288 of file pwc-ioctl.h.

◆ VIDIOCPWCGVIDTABLE

#define VIDIOCPWCGVIDTABLE   _IOR('v', 216, struct pwc_table_init_buffer)

Definition at line 294 of file pwc-ioctl.h.

◆ VIDIOCPWCMPTGANGLE

#define VIDIOCPWCMPTGANGLE   _IOR('v', 212, struct pwc_mpt_angles)

Definition at line 284 of file pwc-ioctl.h.

◆ VIDIOCPWCMPTGRANGE

#define VIDIOCPWCMPTGRANGE   _IOR('v', 211, struct pwc_mpt_range)

Definition at line 282 of file pwc-ioctl.h.

◆ VIDIOCPWCMPTRESET

#define VIDIOCPWCMPTRESET   _IOW('v', 211, int)

Definition at line 281 of file pwc-ioctl.h.

◆ VIDIOCPWCMPTSANGLE

#define VIDIOCPWCMPTSANGLE   _IOW('v', 212, struct pwc_mpt_angles)

Definition at line 283 of file pwc-ioctl.h.

◆ VIDIOCPWCMPTSTATUS

#define VIDIOCPWCMPTSTATUS   _IOR('v', 213, struct pwc_mpt_status)

Definition at line 285 of file pwc-ioctl.h.

◆ VIDIOCPWCPROBE

#define VIDIOCPWCPROBE   _IOR('v', 199, struct pwc_probe)

Definition at line 240 of file pwc-ioctl.h.

◆ VIDIOCPWCRUSER

#define VIDIOCPWCRUSER   _IO('v', 192)

Definition at line 209 of file pwc-ioctl.h.

◆ VIDIOCPWCSAGC

#define VIDIOCPWCSAGC   _IOW('v', 200, int)

Definition at line 243 of file pwc-ioctl.h.

◆ VIDIOCPWCSAWB

#define VIDIOCPWCSAWB   _IOW('v', 202, struct pwc_whitebalance)

Definition at line 250 of file pwc-ioctl.h.

◆ VIDIOCPWCSAWBSPEED

#define VIDIOCPWCSAWBSPEED   _IOW('v', 203, struct pwc_wb_speed)

Definition at line 254 of file pwc-ioctl.h.

◆ VIDIOCPWCSBACKLIGHT

#define VIDIOCPWCSBACKLIGHT   _IOW('v', 207, int)

Definition at line 266 of file pwc-ioctl.h.

◆ VIDIOCPWCSCONTOUR

#define VIDIOCPWCSCONTOUR   _IOW('v', 206, int)

Definition at line 262 of file pwc-ioctl.h.

◆ VIDIOCPWCSCQUAL

#define VIDIOCPWCSCQUAL   _IOW('v', 195, int)

Definition at line 223 of file pwc-ioctl.h.

◆ VIDIOCPWCSDYNNOISE

#define VIDIOCPWCSDYNNOISE   _IOW('v', 209, int)

Definition at line 274 of file pwc-ioctl.h.

◆ VIDIOCPWCSFLICKER

#define VIDIOCPWCSFLICKER   _IOW('v', 208, int)

Definition at line 270 of file pwc-ioctl.h.

◆ VIDIOCPWCSLED

#define VIDIOCPWCSLED   _IOW('v', 205, struct pwc_leds)

Definition at line 258 of file pwc-ioctl.h.

◆ VIDIOCPWCSSHUTTER

#define VIDIOCPWCSSHUTTER   _IOW('v', 201, int)

Definition at line 247 of file pwc-ioctl.h.

◆ VIDIOCPWCSUSER

#define VIDIOCPWCSUSER   _IO('v', 193)

Definition at line 211 of file pwc-ioctl.h.

Function Documentation

◆ __attribute__()

struct pwc_raw_frame __attribute__ ( (packed)  )

Variable Documentation

◆ cmd

__u8 cmd[4]

Definition at line 4 of file pwc-ioctl.h.

◆ rawframe

__u8 rawframe[0]

Definition at line 6 of file pwc-ioctl.h.

◆ type

__le16 type

Definition at line 2 of file pwc-ioctl.h.

◆ vbandlength

__le16 vbandlength

Definition at line 3 of file pwc-ioctl.h.