62 int ret = libusb_control_transfer(
74 return (
unsigned short)SW_TO_SHORT(buf);
91 return libusb_control_transfer(
114 return libusb_control_transfer(
129 ret = libusb_control_transfer(
132 UVC_VC_VIDEO_POWER_MODE_CONTROL << 8,
147 uint8_t mode_char =
mode;
150 ret = libusb_control_transfer(
153 UVC_VC_VIDEO_POWER_MODE_CONTROL << 8,
uvc_error_t uvc_set_power_mode(uvc_device_handle_t *devh, enum uvc_device_power_mode mode)
enum uvc_error uvc_error_t
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.
static const int REQ_TYPE_GET
GLenum GLuint GLenum GLsizei const GLchar * buf
Implementation-specific UVC constants and structures.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const void * data
uvc_error_t uvc_get_power_mode(uvc_device_handle_t *devh, enum uvc_device_power_mode *mode, enum uvc_req_code req_code)
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.
struct uvc_device_handle uvc_device_handle_t
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.
static const int REQ_TYPE_SET