Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
v4l2_ctrl_ops Struct Reference

#include <v4l2-ctrls.h>

Data Fields

int(* g_volatile_ctrl )(struct v4l2_ctrl *ctrl)
int(* try_ctrl )(struct v4l2_ctrl *ctrl)
int(* s_ctrl )(struct v4l2_ctrl *ctrl)

Detailed Description

struct v4l2_ctrl_ops - The control operations that the driver has to provide. : Get a new value for this control. Generally only relevant for volatile (and usually read-only) controls such as a control that returns the current signal strength which changes continuously. If not set, then the currently cached value will be returned. : Test whether the control's value is valid. Only relevant when the usual min/max/step checks are not sufficient. : Actually set the new control value. s_ctrl is compulsory. The ctrl->handler->lock is held when these ops are called, so no one else can access controls owned by that handler.

Definition at line 50 of file v4l2-ctrls.h.

Field Documentation

int(* g_volatile_ctrl)(struct v4l2_ctrl *ctrl)

Definition at line 51 of file v4l2-ctrls.h.

int(* s_ctrl)(struct v4l2_ctrl *ctrl)

Definition at line 53 of file v4l2-ctrls.h.

int(* try_ctrl)(struct v4l2_ctrl *ctrl)

Definition at line 52 of file v4l2-ctrls.h.

The documentation for this struct was generated from the following file: