Functions
Video capture and processing controls

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

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.

Parameters:
devhUVC device handle
unitUnit ID; obtain this from the uvc_extension_unit_t describing the extension unit
ctrlControl number to query
dataData buffer to be filled by the device
lenSize of data buffer
req_codeGET_* 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.

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.

Parameters:
devhUVC device handle
unitUnit or Terminal ID; obtain this from the uvc_extension_unit_t describing the extension unit
ctrlVendor-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.

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.

Parameters:
devhUVC device handle
unitUnit or Terminal ID
ctrlControl number to set
dataData buffer to be sent to the device
lenSize 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.



librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Tue Jun 25 2019 19:54:40