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

#include <iio.h>

Data Fields

struct moduledriver_module
 
struct attribute_groupevent_attrs
 
struct attribute_groupattrs
 
int(* read_raw )(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask)
 
int(* write_raw )(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask)
 
int(* write_raw_get_fmt )(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, long mask)
 
int(* read_event_config )(struct iio_dev *indio_dev, u64 event_code)
 
int(* write_event_config )(struct iio_dev *indio_dev, u64 event_code, int state)
 
int(* read_event_value )(struct iio_dev *indio_dev, u64 event_code, int *val)
 
int(* write_event_value )(struct iio_dev *indio_dev, u64 event_code, int val)
 
int(* validate_trigger )(struct iio_dev *indio_dev, struct iio_trigger *trig)
 
int(* update_scan_mode )(struct iio_dev *indio_dev, const unsigned long *scan_mask)
 
int(* debugfs_reg_access )(struct iio_dev *indio_dev, unsigned reg, unsigned writeval, unsigned *readval)
 

Detailed Description

struct iio_info - constant information about device : module structure used to ensure correct ownership of chrdevs etc : event control attributes : general purpose device attributes : function to request a value from the device. mask specifies which value. Note 0 means a reading of the channel in question. Return value will specify the type of value returned by the device. val and val2 will contain the elements making up the returned value. : function to write a value to the device. Parameters are the same as for read_raw. : callback function to query the expected format/precision. If not set by the driver, write_raw returns IIO_VAL_INT_PLUS_MICRO. : find out if the event is enabled. : set if the event is enabled. : read a value associated with the event. Meaning is event dependant. event_code specifies which event. : write the value associated with the event. Meaning is event dependent. : function to validate the trigger when the current trigger gets changed. : function to configure device and scan buffer when channels have changed : function to read or write register value of device

Definition at line 342 of file iio.h.

Field Documentation

Definition at line 345 of file iio.h.

int(* debugfs_reg_access)(struct iio_dev *indio_dev, unsigned reg, unsigned writeval, unsigned *readval)

Definition at line 380 of file iio.h.

struct module* driver_module

Definition at line 343 of file iio.h.

struct attribute_group* event_attrs

Definition at line 344 of file iio.h.

int(* read_event_config)(struct iio_dev *indio_dev, u64 event_code)

Definition at line 363 of file iio.h.

int(* read_event_value)(struct iio_dev *indio_dev, u64 event_code, int *val)

Definition at line 370 of file iio.h.

int(* read_raw)(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask)

Definition at line 347 of file iio.h.

int(* update_scan_mode)(struct iio_dev *indio_dev, const unsigned long *scan_mask)

Definition at line 378 of file iio.h.

int(* validate_trigger)(struct iio_dev *indio_dev, struct iio_trigger *trig)

Definition at line 376 of file iio.h.

int(* write_event_config)(struct iio_dev *indio_dev, u64 event_code, int state)

Definition at line 366 of file iio.h.

int(* write_event_value)(struct iio_dev *indio_dev, u64 event_code, int val)

Definition at line 373 of file iio.h.

int(* write_raw)(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask)

Definition at line 353 of file iio.h.

int(* write_raw_get_fmt)(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, long mask)

Definition at line 359 of file iio.h.


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