Xenomai  3.0.5
a4l_subdevice Struct Reference

Structure describing the subdevice. More...

Collaboration diagram for a4l_subdevice:

Data Fields

struct list_head list
 List stuff.
 
struct a4l_device * dev
 Containing device.
 
unsigned int idx
 Subdevice index.
 
struct a4l_buffer * buf
 Linked buffer.
 
unsigned long status
 Subdevice's status.
 
unsigned long flags
 Type flags.
 
struct a4l_channels_descchan_desc
 Tab of channels descriptors pointers.
 
struct a4l_rngdesc * rng_desc
 Tab of ranges descriptors pointers.
 
struct a4l_cmd_desccmd_mask
 Command capabilities mask.
 
int(* insn_read )(struct a4l_subdevice *, struct a4l_kernel_instruction *)
 Callback for the instruction "read".
 
int(* insn_write )(struct a4l_subdevice *, struct a4l_kernel_instruction *)
 Callback for the instruction "write".
 
int(* insn_bits )(struct a4l_subdevice *, struct a4l_kernel_instruction *)
 Callback for the instruction "bits".
 
int(* insn_config )(struct a4l_subdevice *, struct a4l_kernel_instruction *)
 Callback for the configuration instruction.
 
int(* do_cmd )(struct a4l_subdevice *, struct a4l_cmd_desc *)
 Callback for command handling.
 
int(* do_cmdtest )(struct a4l_subdevice *, struct a4l_cmd_desc *)
 Callback for command checking.
 
void(* cancel )(struct a4l_subdevice *)
 Callback for asynchronous transfer cancellation.
 
void(* munge )(struct a4l_subdevice *, void *, unsigned long)
 Callback for munge operation.
 
int(* trigger )(struct a4l_subdevice *, lsampl_t)
 Callback for trigger operation.
 
char priv [0]
 Private data.
 

Detailed Description

Structure describing the subdevice.

See also
a4l_add_subd()

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