1 What: /config/usb-gadget/gadget/functions/uvc.name
4 Description: UVC function directory
6 =================== =============================
7 streaming_maxburst 0..15 (ss only)
8 streaming_maxpacket 1..1023 (fs), 1..3072 (hs/ss)
9 streaming_interval 1..16
10 function_name string [32]
11 =================== =============================
13 What: /config/usb-gadget/gadget/functions/uvc.name/control
16 Description: Control descriptors
18 All attributes read only except enable_interrupt_ep:
20 =================== =============================
21 bInterfaceNumber USB interface number for this
23 enable_interrupt_ep flag to enable the interrupt
24 endpoint for the VC interface
25 =================== =============================
27 What: /config/usb-gadget/gadget/functions/uvc.name/control/class
30 Description: Class descriptors
32 What: /config/usb-gadget/gadget/functions/uvc.name/control/class/ss
35 Description: Super speed control class descriptors
37 What: /config/usb-gadget/gadget/functions/uvc.name/control/class/fs
40 Description: Full speed control class descriptors
42 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal
45 Description: Terminal descriptors
47 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/output
50 Description: Output terminal descriptors
52 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/output/default
55 Description: Default output terminal descriptors
57 All attributes read only except bSourceID:
59 ============== =============================================
60 iTerminal index of string descriptor
61 bSourceID id of the terminal to which this terminal
63 bAssocTerminal id of the input terminal to which this output
64 terminal is associated
65 wTerminalType terminal type
66 bTerminalID a non-zero id of this terminal
67 ============== =============================================
69 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/camera
72 Description: Camera terminal descriptors
74 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/camera/default
77 Description: Default camera terminal descriptors
79 All attributes read only except bmControls, which is read/write:
81 ======================== ====================================
82 bmControls bitmap specifying which controls are
83 supported for the video stream
84 wOcularFocalLength the value of Locular
85 wObjectiveFocalLengthMax the value of Lmin
86 wObjectiveFocalLengthMin the value of Lmax
87 iTerminal index of string descriptor
88 bAssocTerminal id of the output terminal to which
89 this terminal is connected
90 wTerminalType terminal type
91 bTerminalID a non-zero id of this terminal
92 ======================== ====================================
94 What: /config/usb-gadget/gadget/functions/uvc.name/control/processing
97 Description: Processing unit descriptors
99 What: /config/usb-gadget/gadget/functions/uvc.name/control/processing/default
102 Description: Default processing unit descriptors
104 All attributes read only except bmControls, which is read/write:
106 =============== ========================================
107 iProcessing index of string descriptor
108 bmControls bitmap specifying which controls are
109 supported for the video stream
110 wMaxMultiplier maximum digital magnification x100
111 bSourceID id of the terminal to which this unit is
113 bUnitID a non-zero id of this unit
114 =============== ========================================
116 What: /config/usb-gadget/gadget/functions/uvc.name/control/extensions
119 Description: Extension unit descriptors
121 What: /config/usb-gadget/gadget/functions/uvc.name/control/extensions/name
124 Description: Extension Unit (XU) Descriptor
126 bLength, bUnitID and iExtension are read-only. All others are
129 ================= ========================================
130 bLength size of the descriptor in bytes
131 bUnitID non-zero ID of this unit
132 guidExtensionCode Vendor-specific code identifying the XU
133 bNumControls number of controls in this XU
134 bNrInPins number of input pins for this unit
135 baSourceID list of the IDs of the units or terminals
136 to which this XU is connected
137 bControlSize size of the bmControls field in bytes
138 bmControls list of bitmaps detailing which vendor
139 specific controls are supported
140 iExtension index of a string descriptor that describes
142 ================= ========================================
144 What: /config/usb-gadget/gadget/functions/uvc.name/control/header
147 Description: Control header descriptors
149 What: /config/usb-gadget/gadget/functions/uvc.name/control/header/name
152 Description: Specific control header descriptors
156 What: /config/usb-gadget/gadget/functions/uvc.name/streaming
159 Description: Streaming descriptors
161 All attributes read only:
163 ================ =============================
164 bInterfaceNumber USB interface number for this
166 ================ =============================
168 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/class
171 Description: Streaming class descriptors
173 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/class/ss
176 Description: Super speed streaming class descriptors
178 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/class/hs
181 Description: High speed streaming class descriptors
183 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/class/fs
186 Description: Full speed streaming class descriptors
188 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/color_matching
191 Description: Color matching descriptors
193 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/color_matching/default
196 Description: Default color matching descriptors
198 All attributes read/write:
200 ======================== ======================================
201 bMatrixCoefficients matrix used to compute luma and
202 chroma values from the color primaries
203 bTransferCharacteristics optoelectronic transfer
204 characteristic of the source picture,
205 also called the gamma function
206 bColorPrimaries color primaries and the reference
208 ======================== ======================================
210 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/color_matching/name
213 Description: Additional color matching descriptors
215 All attributes read/write:
217 ======================== ======================================
218 bMatrixCoefficients matrix used to compute luma and
219 chroma values from the color primaries
220 bTransferCharacteristics optoelectronic transfer
221 characteristic of the source picture,
222 also called the gamma function
223 bColorPrimaries color primaries and the reference
225 ======================== ======================================
227 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/mjpeg
230 Description: MJPEG format descriptors
232 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/mjpeg/name
235 Description: Specific MJPEG format descriptors
237 All attributes read only,
238 except bmaControls and bDefaultFrameIndex:
240 =================== =====================================
241 bFormatIndex unique id for this format descriptor;
242 only defined after parent header is
243 linked into the streaming class;
245 bmaControls this format's data for bmaControls in
247 bmInterlaceFlags specifies interlace information,
249 bAspectRatioY the X dimension of the picture aspect
251 bAspectRatioX the Y dimension of the picture aspect
253 bmFlags characteristics of this format,
255 bDefaultFrameIndex optimum frame index for this stream
256 =================== =====================================
258 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/mjpeg/name/name
261 Description: Specific MJPEG frame descriptors
263 ========================= =====================================
264 bFrameIndex unique id for this framedescriptor;
265 only defined after parent format is
266 linked into the streaming header;
268 dwFrameInterval indicates how frame interval can be
269 programmed; a number of values
270 separated by newline can be specified
271 dwDefaultFrameInterval the frame interval the device would
272 like to use as default
273 dwMaxVideoFrameBufferSize the maximum number of bytes the
274 compressor will produce for a video
276 dwMaxBitRate the maximum bit rate at the shortest
277 frame interval in bps
278 dwMinBitRate the minimum bit rate at the longest
279 frame interval in bps
280 wHeight height of decoded bitmap frame in px
281 wWidth width of decoded bitmam frame in px
282 bmCapabilities still image support, fixed frame-rate
284 ========================= =====================================
286 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/uncompressed
289 Description: Uncompressed format descriptors
291 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/uncompressed/name
294 Description: Specific uncompressed format descriptors
296 ================== =======================================
297 bFormatIndex unique id for this format descriptor;
298 only defined after parent header is
299 linked into the streaming class;
301 bmaControls this format's data for bmaControls in
303 bmInterlaceFlags specifies interlace information,
305 bAspectRatioY the X dimension of the picture aspect
307 bAspectRatioX the Y dimension of the picture aspect
309 bDefaultFrameIndex optimum frame index for this stream
310 bBitsPerPixel number of bits per pixel used to
311 specify color in the decoded video
313 guidFormat globally unique id used to identify
314 stream-encoding format
315 ================== =======================================
317 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/uncompressed/name/name
320 Description: Specific uncompressed frame descriptors
322 ========================= =====================================
323 bFrameIndex unique id for this framedescriptor;
324 only defined after parent format is
325 linked into the streaming header;
327 dwFrameInterval indicates how frame interval can be
328 programmed; a number of values
329 separated by newline can be specified
330 dwDefaultFrameInterval the frame interval the device would
331 like to use as default
332 dwMaxVideoFrameBufferSize the maximum number of bytes the
333 compressor will produce for a video
335 dwMaxBitRate the maximum bit rate at the shortest
336 frame interval in bps
337 dwMinBitRate the minimum bit rate at the longest
338 frame interval in bps
339 wHeight height of decoded bitmap frame in px
340 wWidth width of decoded bitmam frame in px
341 bmCapabilities still image support, fixed frame-rate
343 ========================= =====================================
345 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/framebased
348 Description: Framebased format descriptors
350 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/framebased/name
353 Description: Specific framebased format descriptors
355 ================== =======================================
356 bFormatIndex unique id for this format descriptor;
357 only defined after parent header is
358 linked into the streaming class;
360 bmaControls this format's data for bmaControls in
362 bmInterlaceFlags specifies interlace information,
364 bAspectRatioY the X dimension of the picture aspect
366 bAspectRatioX the Y dimension of the picture aspect
368 bDefaultFrameIndex optimum frame index for this stream
369 bBitsPerPixel number of bits per pixel used to
370 specify color in the decoded video
372 guidFormat globally unique id used to identify
373 stream-encoding format
374 ================== =======================================
376 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/framebased/name/name
379 Description: Specific framebased frame descriptors
381 ========================= =====================================
382 bFrameIndex unique id for this framedescriptor;
383 only defined after parent format is
384 linked into the streaming header;
386 dwFrameInterval indicates how frame interval can be
387 programmed; a number of values
388 separated by newline can be specified
389 dwDefaultFrameInterval the frame interval the device would
390 like to use as default
391 dwBytesPerLine Specifies the number of bytes per line
392 of video for packed fixed frame size
393 formats, allowing the receiver to
394 perform stride alignment of the video.
395 If the bVariableSize value (above) is
396 TRUE (1), or if the format does not
397 permit such alignment, this value shall
399 dwMaxBitRate the maximum bit rate at the shortest
400 frame interval in bps
401 dwMinBitRate the minimum bit rate at the longest
402 frame interval in bps
403 wHeight height of decoded bitmap frame in px
404 wWidth width of decoded bitmam frame in px
405 bmCapabilities still image support, fixed frame-rate
407 ========================= =====================================
409 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/header
412 Description: Streaming header descriptors
414 What: /config/usb-gadget/gadget/functions/uvc.name/streaming/header/name
417 Description: Specific streaming header descriptors
419 All attributes read only:
421 ==================== =====================================
422 bTriggerUsage how the host software will respond to
423 a hardware trigger interrupt event
424 bTriggerSupport flag specifying if hardware
425 triggering is supported
426 bStillCaptureMethod method of still image capture
428 bTerminalLink id of the output terminal to which
429 the video endpoint of this interface
431 bmInfo capabilities of this video streaming
433 ==================== =====================================
435 What: /sys/class/udc/udc.name/device/gadget/video4linux/video.name/function_name
438 Description: UVC configfs function instance name