1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20#ifndef __PVRUSB2_CTRL_H
21#define __PVRUSB2_CTRL_H
22
23struct pvr2_ctrl;
24
25enum pvr2_ctl_type {
26 pvr2_ctl_int = 0,
27 pvr2_ctl_enum = 1,
28 pvr2_ctl_bitmask = 2,
29 pvr2_ctl_bool = 3,
30};
31
32
33
34int pvr2_ctrl_set_value(struct pvr2_ctrl *,int val);
35
36
37int pvr2_ctrl_set_mask_value(struct pvr2_ctrl *,int mask,int val);
38
39
40int pvr2_ctrl_get_value(struct pvr2_ctrl *,int *valptr);
41
42
43enum pvr2_ctl_type pvr2_ctrl_get_type(struct pvr2_ctrl *);
44
45
46int pvr2_ctrl_get_max(struct pvr2_ctrl *);
47
48
49int pvr2_ctrl_get_min(struct pvr2_ctrl *);
50
51
52int pvr2_ctrl_get_def(struct pvr2_ctrl *, int *valptr);
53
54
55int pvr2_ctrl_get_cnt(struct pvr2_ctrl *);
56
57
58int pvr2_ctrl_get_mask(struct pvr2_ctrl *);
59
60
61const char *pvr2_ctrl_get_name(struct pvr2_ctrl *);
62
63
64const char *pvr2_ctrl_get_desc(struct pvr2_ctrl *);
65
66
67int pvr2_ctrl_get_valname(struct pvr2_ctrl *,int,char *,unsigned int,
68 unsigned int *);
69
70
71int pvr2_ctrl_is_writable(struct pvr2_ctrl *);
72
73
74
75unsigned int pvr2_ctrl_get_v4lflags(struct pvr2_ctrl *);
76
77
78int pvr2_ctrl_get_v4lid(struct pvr2_ctrl *);
79
80
81int pvr2_ctrl_has_custom_symbols(struct pvr2_ctrl *);
82
83
84int pvr2_ctrl_custom_value_to_sym(struct pvr2_ctrl *,
85 int mask,int val,
86 char *buf,unsigned int maxlen,
87 unsigned int *len);
88
89
90int pvr2_ctrl_custom_sym_to_value(struct pvr2_ctrl *,
91 const char *buf,unsigned int len,
92 int *maskptr,int *valptr);
93
94
95int pvr2_ctrl_value_to_sym(struct pvr2_ctrl *,
96 int mask,int val,
97 char *buf,unsigned int maxlen,
98 unsigned int *len);
99
100
101int pvr2_ctrl_sym_to_value(struct pvr2_ctrl *,
102 const char *buf,unsigned int len,
103 int *maskptr,int *valptr);
104
105
106
107int pvr2_ctrl_value_to_sym_internal(struct pvr2_ctrl *,
108 int mask,int val,
109 char *buf,unsigned int maxlen,
110 unsigned int *len);
111
112#endif
113