#include <linux/device.h>
#include <linux/cdev.h>
#include <linux/iio/types.h>
Go to the source code of this file.
|
enum | iio_chan_info_enum {
IIO_CHAN_INFO_RAW = 0,
IIO_CHAN_INFO_PROCESSED,
IIO_CHAN_INFO_SCALE,
IIO_CHAN_INFO_OFFSET,
IIO_CHAN_INFO_CALIBSCALE,
IIO_CHAN_INFO_CALIBBIAS,
IIO_CHAN_INFO_PEAK,
IIO_CHAN_INFO_PEAK_SCALE,
IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW,
IIO_CHAN_INFO_AVERAGE_RAW,
IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY,
IIO_CHAN_INFO_SAMP_FREQ,
IIO_CHAN_INFO_FREQUENCY,
IIO_CHAN_INFO_PHASE,
IIO_CHAN_INFO_HARDWAREGAIN,
IIO_CHAN_INFO_HYSTERESIS
} |
|
enum | iio_endian { IIO_CPU,
IIO_BE,
IIO_LE
} |
|
|
struct iio_chan_spec_ext_info - Extended channel info attribute
: Whether this attribute is shared between all channels. : Read callback for this info attribute, may be NULL. : Write callback for this info attribute, may be NULL. : Data private to the driver.
|
#define | IIO_ENUM(_name, _shared, _e) |
|
#define | IIO_ENUM_AVAILABLE(_name, _e) |
|
#define | IIO_ST(si, rb, sb, sh) { .sign = si, .realbits = rb, .storagebits = sb, .shift = sh } |
|
#define | IIO_CHAN_SOFT_TIMESTAMP(_si) |
|
#define | INDIO_DIRECT_MODE 0x01 |
|
#define | INDIO_BUFFER_TRIGGERED 0x02 |
|
#define | INDIO_BUFFER_HARDWARE 0x08 |
|
#define | INDIO_ALL_BUFFER_MODES (INDIO_BUFFER_TRIGGERED | INDIO_BUFFER_HARDWARE) |
|
ssize_t | iio_enum_available_read (struct iio_dev *indio_dev, uintptr_t priv, const struct iio_chan_spec *chan, char *buf) |
|
ssize_t | iio_enum_read (struct iio_dev *indio_dev, uintptr_t priv, const struct iio_chan_spec *chan, char *buf) |
|
ssize_t | iio_enum_write (struct iio_dev *indio_dev, uintptr_t priv, const struct iio_chan_spec *chan, const char *buf, size_t len) |
|
|
struct iio_dev - industrial I/O device : [INTERN] used to identify device internally : [DRIVER] operating modes supported by device : [DRIVER] current operating mode : [DRIVER] device structure, should be assigned a parent and owner : [INTERN] event chrdevs associated with interrupt lines : [DRIVER] any buffer present : [INTERN] num bytes captured to be fed to buffer demux : [INTERN] lock used to prevent simultaneous device state changes : [DRIVER] optional array of allowed bitmasks : [INTERN] the length of the mask established from channels : [INTERN] union of all scan masks requested by buffers : [INTERN] set if any buffers have requested timestamp :[INTERN] cache of the index to the timestamp : [INTERN] current device trigger (buffer modes) : [DRIVER] function run on trigger being received : [DRIVER] channel specification structure table : [DRIVER] number of channels specified in . : [INTERN] keep track of automatically created channel attributes : [INTERN] group for all attrs in base directory
: [DRIVER] callbacks and constant info from driver : [INTERN] lock to prevent use during removal : [DRIVER] callbacks to call before and after buffer enable/disable : [INTERN] associated character device : [INTERN] attribute groups : [INTERN] index of next attribute group : [INTERN] file ops related flags including busy flag. : [INTERN] device specific debugfs dentry. : [INTERN] cached register address for debugfs reads.
|
#define | IIO_ALIGN L1_CACHE_BYTES |
|
#define | IIO_DEGREE_TO_RAD(deg) (((deg) * 314159ULL + 9000000ULL) / 18000000ULL) |
|
#define | IIO_G_TO_M_S_2(g) ((g) * 980665ULL / 100000ULL) |
|
struct bus_type | iio_bus_type |
|
struct iio_chan_spec * | iio_find_channel_from_si (struct iio_dev *indio_dev, int si) |
|
int | iio_device_register (struct iio_dev *indio_dev) |
|
void | iio_device_unregister (struct iio_dev *indio_dev) |
|
int | iio_push_event (struct iio_dev *indio_dev, u64 ev_code, s64 timestamp) |
|
struct iio_dev * | iio_device_alloc (int sizeof_priv) |
|
void | iio_device_free (struct iio_dev *indio_dev) |
|
Definition at line 80 of file iio.h.
Definition at line 82 of file iio.h.
#define IIO_CHAN_INFO_BITS |
( |
|
type | ) |
|
Value:
IIO_CHAN_INFO_SEPARATE_BIT(
type))
Definition at line 43 of file iio.h.
Definition at line 62 of file iio.h.
Definition at line 64 of file iio.h.
Definition at line 58 of file iio.h.
Definition at line 60 of file iio.h.
Definition at line 94 of file iio.h.
Definition at line 96 of file iio.h.
#define IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY_SEPARATE_BIT |
Value:
Definition at line 87 of file iio.h.
#define IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY_SHARED_BIT |
Value:
Definition at line 84 of file iio.h.
Definition at line 54 of file iio.h.
Definition at line 56 of file iio.h.
Definition at line 66 of file iio.h.
Definition at line 68 of file iio.h.
Definition at line 70 of file iio.h.
Definition at line 72 of file iio.h.
Definition at line 98 of file iio.h.
Definition at line 48 of file iio.h.
#define IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW_SEPARATE_BIT |
Value:
Definition at line 74 of file iio.h.
#define IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW_SHARED_BIT |
Value:
Definition at line 77 of file iio.h.
Definition at line 46 of file iio.h.
Definition at line 90 of file iio.h.
Definition at line 92 of file iio.h.
Definition at line 50 of file iio.h.
Definition at line 52 of file iio.h.
#define IIO_CHAN_INFO_SEPARATE_BIT |
( |
|
type | ) |
BIT(type*2 + 1) |
Definition at line 42 of file iio.h.
Definition at line 41 of file iio.h.
#define IIO_CHAN_SOFT_TIMESTAMP |
( |
|
_si | ) |
|
Value:
.scan_index = _si, .scan_type =
IIO_ST(
's', 64, 64, 0) }
Definition at line 284 of file iio.h.
#define IIO_DEGREE_TO_RAD |
( |
|
deg | ) |
(((deg) * 314159ULL + 9000000ULL) / 18000000ULL) |
IIO_DEGREE_TO_RAD() - Convert degree to rad : A value in degree
Returns the given value converted from degree to rad
Definition at line 627 of file iio.h.
#define IIO_ENUM |
( |
|
_name, |
|
|
|
_shared, |
|
|
|
_e |
|
) |
| |
Value:IIO_ENUM() - Initialize enum extended channel attribute : Attribute name : Whether the attribute is shared between all channels : Pointer to an iio_enum struct
This should usually be used together with IIO_ENUM_AVAILABLE()
Definition at line 178 of file iio.h.
#define IIO_ENUM_AVAILABLE |
( |
|
_name, |
|
|
|
_e |
|
) |
| |
Value:{ \
.name = (_name "_available"), \
}
IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute : Attribute name ("_available" will be appended to the name) : Pointer to an iio_enum struct
Creates a read only attribute which lists all the available enum items in a space separated list. This should usually be used together with IIO_ENUM()
Definition at line 195 of file iio.h.
#define IIO_G_TO_M_S_2 |
( |
|
g | ) |
((g) * 980665ULL / 100000ULL) |
IIO_G_TO_M_S_2() - Convert g to meter / second**2 : A value in g
Returns the given value converted from g to meter / second**2
Definition at line 635 of file iio.h.
#define IIO_ST |
( |
|
si, |
|
|
|
rb, |
|
|
|
sb, |
|
|
|
sh |
|
) |
| { .sign = si, .realbits = rb, .storagebits = sb, .shift = sh } |
#define INDIO_BUFFER_HARDWARE 0x08 |
#define INDIO_BUFFER_TRIGGERED 0x02 |
#define INDIO_DIRECT_MODE 0x01 |
- Enumerator:
IIO_CHAN_INFO_RAW |
|
IIO_CHAN_INFO_PROCESSED |
|
IIO_CHAN_INFO_SCALE |
|
IIO_CHAN_INFO_OFFSET |
|
IIO_CHAN_INFO_CALIBSCALE |
|
IIO_CHAN_INFO_CALIBBIAS |
|
IIO_CHAN_INFO_PEAK |
|
IIO_CHAN_INFO_PEAK_SCALE |
|
IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW |
|
IIO_CHAN_INFO_AVERAGE_RAW |
|
IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY |
|
IIO_CHAN_INFO_SAMP_FREQ |
|
IIO_CHAN_INFO_FREQUENCY |
|
IIO_CHAN_INFO_PHASE |
|
IIO_CHAN_INFO_HARDWAREGAIN |
|
IIO_CHAN_INFO_HYSTERESIS |
|
Definition at line 22 of file iio.h.
- Enumerator:
-
Definition at line 111 of file iio.h.