File: sisdop.xml

package info (click to toggle)
libwebcam 0.2.5-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 836 kB
  • sloc: ansic: 5,861; xml: 1,574; sh: 57; makefile: 8
file content (119 lines) | stat: -rwxr-xr-x 2,735 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="UTF-8"?>

<config version="1.0"
	xmlns="http://www.saicare.com"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.saicare.com uvcconfig.xsd"
>

	<meta>
		<version>1.0</version>
		<author>Manav Gautama</author>
		<contact>bandwidthcrunch@gmail.com</contact>
		<revision>0.10</revision>
		<copyright>Copyright (c) Manav Gautama 2012 </copyright>
		<history>
		  Initial Import of the vimicro based SIS DOP camera for enabling XU LED flash
		</history>
	</meta>


	<constants>

		<constant type="guid">
                        <id>UVC_GUID_SIS_LED_HW_CONTROL</id>
                        <value>5dc717a9-1941-da11-ae0e-000d56ac7b4c</value>
                </constant>

		<!-- Control selectors for User Hardware Control-->
		
		<constant type="integer">
			<id>XU_HW_CONTROL_FLASH</id>
			<value>4</value>
		</constant>
		
		
		<!-- Public V4L2 control identifiers -->
			<constant type="integer">
			<id>V4L2_CID_FLASH_MODE</id>
			<value>0xb030</value>
		</constant>
		<constant type="integer">
			<id>V4L2_CID_FLASH_FREQUENCY</id>
			<value>0xb031</value>
		</constant>

	</constants>
	
	<devices>
		<device>
			<match>
				<vendor_id>0xa0c8</vendor_id> 
				<product_id>3460</product_id>
			</match>
			
			<controls>
				
	<control id="dop_led_flash">
					<entity>UVC_GUID_SIS_LED_HW_CONTROL</entity>
					<selector>XU_HW_CONTROL_FLASH</selector>
					<index>2</index>
					<size>4`</size>
					<requests>
						<request>SET_CUR</request>
						<request>GET_CUR</request>
						<request>GET_MIN</request>
						<request>GET_MAX</request>
						<request>GET_RES</request>
						<request>GET_DEF</request>
					</requests>
					<description>
						Allows control over the state of the first LED.
						Not much else information available at this time. 
						
					</description>
				</control>
		
	
			</controls>
		</device>
	</devices>

	<!-- V4L2 mappings for the UVC controls defined above -->
	<mappings>
						
			<mapping>
			<name>LED2 Mode</name>
			<uvc>
				<control_ref idref="dop_led_flash"/>
				<size>4</size>
				<offset>0</offset>
				<uvc_type>UVC_CTRL_DATA_TYPE_UNSIGNED</uvc_type>
			</uvc>
			<v4l2>
				<id>V4L2_CID_FLASH_MODE</id>
				<v4l2_type>V4L2_CTRL_TYPE_MENU</v4l2_type>
				<menu_entry name="Off" value="0x20"/>
				<menu_entry name="On" value="0x22"/>
		
			</v4l2>
		</mapping>
		
		<mapping>
			<name>LED2 Frequency</name>
			<uvc>
				<control_ref idref="dop_led_flash"/>
				<size>8</size>
				<offset>16</offset>
				<uvc_type>UVC_CTRL_DATA_TYPE_UNSIGNED</uvc_type>
			</uvc>
			<v4l2>
				<id>V4L2_CID_FLASH_FREQUENCY</id>
				<v4l2_type>V4L2_CTRL_TYPE_INTEGER</v4l2_type>
			</v4l2>
		</mapping>	

		
		
	</mappings>
</config>