Classes | Defines | Functions
dynctrl.h File Reference
#include <linux/videodev2.h>
#include "v4l2uvc.h"
Include dependency graph for dynctrl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uvc_xu_control
struct  uvc_xu_control_info
struct  uvc_xu_control_mapping

Defines

#define UVC_CONTROL_AUTO_UPDATE   (1 << 7)
#define UVC_CONTROL_GET_CUR   (1 << 1)
#define UVC_CONTROL_GET_DEF   (1 << 5)
#define UVC_CONTROL_GET_MAX   (1 << 3)
#define UVC_CONTROL_GET_MIN   (1 << 2)
#define UVC_CONTROL_GET_RANGE
#define UVC_CONTROL_GET_RES   (1 << 4)
#define UVC_CONTROL_RESTORE   (1 << 6)
#define UVC_CONTROL_SET_CUR   (1 << 0)
#define UVC_CTRL_DATA_TYPE_BITMASK   5
#define UVC_CTRL_DATA_TYPE_BOOLEAN   3
#define UVC_CTRL_DATA_TYPE_ENUM   4
#define UVC_CTRL_DATA_TYPE_RAW   0
#define UVC_CTRL_DATA_TYPE_SIGNED   1
#define UVC_CTRL_DATA_TYPE_UNSIGNED   2
#define UVC_GUID_LOGITECH_MOTOR_CONTROL   {0x82, 0x06, 0x61, 0x63, 0x70, 0x50, 0xab, 0x49, 0xb8, 0xcc, 0xb3, 0x85, 0x5e, 0x8d, 0x22, 0x56}
#define UVC_GUID_LOGITECH_USER_HW_CONTROL   {0x82, 0x06, 0x61, 0x63, 0x70, 0x50, 0xab, 0x49, 0xb8, 0xcc, 0xb3, 0x85, 0x5e, 0x8d, 0x22, 0x1f}
#define UVC_GUID_LOGITECH_VIDEO_PIPE   {0x82, 0x06, 0x61, 0x63, 0x70, 0x50, 0xab, 0x49, 0xb8, 0xcc, 0xb3, 0x85, 0x5e, 0x8d, 0x22, 0x50}
#define UVCIOC_CTRL_ADD   _IOW('U', 1, struct uvc_xu_control_info)
#define UVCIOC_CTRL_GET   _IOWR('U', 3, struct uvc_xu_control)
#define UVCIOC_CTRL_MAP   _IOWR('U', 2, struct uvc_xu_control_mapping)
#define UVCIOC_CTRL_SET   _IOW('U', 4, struct uvc_xu_control)
#define V4L2_CID_BASE_EXTCTR   0x0A046D01
#define V4L2_CID_BASE_LOGITECH   V4L2_CID_BASE_EXTCTR
#define V4L2_CID_DISABLE_PROCESSING_LOGITECH   V4L2_CID_BASE_LOGITECH+0x70
#define V4L2_CID_FOCUS_LOGITECH   V4L2_CID_BASE_LOGITECH+3
#define V4L2_CID_LAST_EXTCTR   V4L2_CID_RAW_BITS_PER_PIXEL_LOGITECH
#define V4L2_CID_LED1_FREQUENCY_LOGITECH   V4L2_CID_BASE_LOGITECH+5
#define V4L2_CID_LED1_MODE_LOGITECH   V4L2_CID_BASE_LOGITECH+4
#define V4L2_CID_PANTILT_RESET_LOGITECH   V4L2_CID_BASE_LOGITECH+2
#define V4L2_CID_RAW_BITS_PER_PIXEL_LOGITECH   V4L2_CID_BASE_LOGITECH+0x71
#define XU_COLOR_PROCESSING_DISABLE   5
#define XU_HW_CONTROL_LED1   1
#define XU_MOTORCONTROL_FOCUS   3
#define XU_MOTORCONTROL_PANTILT_RELATIVE   1
#define XU_MOTORCONTROL_PANTILT_RESET   2
#define XU_RAW_DATA_BITS_PER_PIXEL   8

Functions

int initDynCtrls (int fd)
int uvcPanTilt (int dev, int pan, int tilt, int reset)

Define Documentation

#define UVC_CONTROL_AUTO_UPDATE   (1 << 7)

Definition at line 72 of file dynctrl.h.

#define UVC_CONTROL_GET_CUR   (1 << 1)

Definition at line 64 of file dynctrl.h.

#define UVC_CONTROL_GET_DEF   (1 << 5)

Definition at line 68 of file dynctrl.h.

#define UVC_CONTROL_GET_MAX   (1 << 3)

Definition at line 66 of file dynctrl.h.

#define UVC_CONTROL_GET_MIN   (1 << 2)

Definition at line 65 of file dynctrl.h.

Value:
(UVC_CONTROL_GET_CUR | UVC_CONTROL_GET_MIN | \
                                 UVC_CONTROL_GET_MAX | UVC_CONTROL_GET_RES | \
                                 UVC_CONTROL_GET_DEF)

Definition at line 74 of file dynctrl.h.

#define UVC_CONTROL_GET_RES   (1 << 4)

Definition at line 67 of file dynctrl.h.

#define UVC_CONTROL_RESTORE   (1 << 6)

Definition at line 70 of file dynctrl.h.

#define UVC_CONTROL_SET_CUR   (1 << 0)

Definition at line 63 of file dynctrl.h.

Definition at line 36 of file dynctrl.h.

Definition at line 34 of file dynctrl.h.

#define UVC_CTRL_DATA_TYPE_ENUM   4

Definition at line 35 of file dynctrl.h.

#define UVC_CTRL_DATA_TYPE_RAW   0

Definition at line 31 of file dynctrl.h.

#define UVC_CTRL_DATA_TYPE_SIGNED   1

Definition at line 32 of file dynctrl.h.

Definition at line 33 of file dynctrl.h.

#define UVC_GUID_LOGITECH_MOTOR_CONTROL   {0x82, 0x06, 0x61, 0x63, 0x70, 0x50, 0xab, 0x49, 0xb8, 0xcc, 0xb3, 0x85, 0x5e, 0x8d, 0x22, 0x56}

Definition at line 53 of file dynctrl.h.

#define UVC_GUID_LOGITECH_USER_HW_CONTROL   {0x82, 0x06, 0x61, 0x63, 0x70, 0x50, 0xab, 0x49, 0xb8, 0xcc, 0xb3, 0x85, 0x5e, 0x8d, 0x22, 0x1f}

Definition at line 54 of file dynctrl.h.

#define UVC_GUID_LOGITECH_VIDEO_PIPE   {0x82, 0x06, 0x61, 0x63, 0x70, 0x50, 0xab, 0x49, 0xb8, 0xcc, 0xb3, 0x85, 0x5e, 0x8d, 0x22, 0x50}

Definition at line 52 of file dynctrl.h.

#define UVCIOC_CTRL_ADD   _IOW('U', 1, struct uvc_xu_control_info)

Definition at line 105 of file dynctrl.h.

#define UVCIOC_CTRL_GET   _IOWR('U', 3, struct uvc_xu_control)

Definition at line 107 of file dynctrl.h.

#define UVCIOC_CTRL_MAP   _IOWR('U', 2, struct uvc_xu_control_mapping)

Definition at line 106 of file dynctrl.h.

#define UVCIOC_CTRL_SET   _IOW('U', 4, struct uvc_xu_control)

Definition at line 108 of file dynctrl.h.

#define V4L2_CID_BASE_EXTCTR   0x0A046D01

Definition at line 38 of file dynctrl.h.

Definition at line 39 of file dynctrl.h.

Definition at line 48 of file dynctrl.h.

Definition at line 45 of file dynctrl.h.

Definition at line 50 of file dynctrl.h.

Definition at line 47 of file dynctrl.h.

Definition at line 46 of file dynctrl.h.

Definition at line 42 of file dynctrl.h.

Definition at line 49 of file dynctrl.h.

Definition at line 60 of file dynctrl.h.

#define XU_HW_CONTROL_LED1   1

Definition at line 56 of file dynctrl.h.

#define XU_MOTORCONTROL_FOCUS   3

Definition at line 59 of file dynctrl.h.

Definition at line 57 of file dynctrl.h.

Definition at line 58 of file dynctrl.h.

Definition at line 61 of file dynctrl.h.


Function Documentation

int initDynCtrls ( int  fd)

Definition at line 190 of file dynctrl.c.

int uvcPanTilt ( int  dev,
int  pan,
int  tilt,
int  reset 
)

Definition at line 225 of file dynctrl.c.



corobot_pantilt
Author(s): Morgan Cormier/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:39:02