Functions for manipulating device settings and stream parameters.
More...
Functions |
int | uvc_get_ctrl (uvc_device_handle_t *devh, uint8_t unit, uint8_t ctrl, void *data, int len, enum uvc_req_code req_code) |
| Perform a GET_* request from an extension unit.
|
int | uvc_get_ctrl_len (uvc_device_handle_t *devh, uint8_t unit, uint8_t ctrl) |
| Get the length of a control on a terminal or unit.
|
int | uvc_set_ctrl (uvc_device_handle_t *devh, uint8_t unit, uint8_t ctrl, void *data, int len) |
| Perform a SET_CUR request to a terminal or unit.
|
Detailed Description
Functions for manipulating device settings and stream parameters.
The `uvc_get_*` and `uvc_set_*` functions are used to read and write the settings associated with the device's input, processing and output units.
Function Documentation
Perform a GET_* request from an extension unit.
- Parameters:
-
devh | UVC device handle |
unit | Unit ID; obtain this from the uvc_extension_unit_t describing the extension unit |
ctrl | Control number to query |
data | Data buffer to be filled by the device |
len | Size of data buffer |
req_code | GET_* request to execute |
- Returns:
- On success, the number of bytes actually transferred. Otherwise, a uvc_error_t error describing the error encountered.
Definition at line 90 of file ctrl.c.
Get the length of a control on a terminal or unit.
- Parameters:
-
devh | UVC device handle |
unit | Unit or Terminal ID; obtain this from the uvc_extension_unit_t describing the extension unit |
ctrl | Vendor-specific control number to query |
- Returns:
- On success, the length of the control as reported by the device. Otherwise, a uvc_error_t error describing the error encountered.
Definition at line 59 of file ctrl.c.
Perform a SET_CUR request to a terminal or unit.
- Parameters:
-
devh | UVC device handle |
unit | Unit or Terminal ID |
ctrl | Control number to set |
data | Data buffer to be sent to the device |
len | Size of data buffer |
- Returns:
- On success, the number of bytes actually transferred. Otherwise, a uvc_error_t error describing the error encountered.
Definition at line 113 of file ctrl.c.