no-OS
Classes | Macros | Enumerations
iio_types.h File Reference

Header file for iio_types. More...

#include <stdbool.h>
#include <stdint.h>
#include "no_os_circular_buffer.h"
Include dependency graph for iio_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  iio_ch_info
 Structure holding channel attributess. More...
 
struct  iio_attribute
 Structure holding pointers to show and store functions. More...
 
struct  scan_type
 
struct  iio_channel
 Struct describing the scan type. More...
 
struct  iio_cyclic_buffer_info
 
struct  iio_buffer
 
struct  iio_device_data
 
struct  iio_trigger
 
struct  iio_device
 Structure holding channels and attributes of a device. More...
 

Macros

#define END_ATTRIBUTES_ARRAY   {.name = NULL}
 

Enumerations

enum  iio_val {
  IIO_VAL_INT = 1,
  IIO_VAL_INT_PLUS_MICRO,
  IIO_VAL_INT_PLUS_NANO,
  IIO_VAL_INT_PLUS_MICRO_DB,
  IIO_VAL_INT_MULTIPLE,
  IIO_VAL_FRACTIONAL = 10,
  IIO_VAL_FRACTIONAL_LOG2,
  IIO_VAL_CHAR
}
 
enum  iio_chan_type {
  IIO_VOLTAGE,
  IIO_CURRENT,
  IIO_ALTVOLTAGE,
  IIO_ANGL_VEL,
  IIO_TEMP,
  IIO_CAPACITANCE,
  IIO_ACCEL,
  IIO_RESISTANCE,
  IIO_MAGN,
  IIO_INCLI,
  IIO_VELOCITY,
  IIO_ANGL,
  IIO_ROT,
  IIO_COUNT,
  IIO_DELTA_ANGL,
  IIO_DELTA_VELOCITY,
  IIO_WEIGHT
}
 
enum  iio_modifier {
  IIO_NO_MOD,
  IIO_MOD_X,
  IIO_MOD_Y,
  IIO_MOD_Z,
  IIO_MOD_TEMP_AMBIENT,
  IIO_MOD_PITCH,
  IIO_MOD_YAW,
  IIO_MOD_ROLL
}
 
enum  iio_attribute_shared {
  IIO_SEPARATE,
  IIO_SHARED_BY_TYPE,
  IIO_SHARED_BY_DIR,
  IIO_SHARED_BY_ALL
}
 
enum  iio_buffer_direction {
  IIO_DIRECTION_INPUT,
  IIO_DIRECTION_OUTPUT
}
 

Detailed Description

Header file for iio_types.

Author
Cristian Pop (crist.nosp@m.ian..nosp@m.pop@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2013(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ END_ATTRIBUTES_ARRAY

#define END_ATTRIBUTES_ARRAY   {.name = NULL}

Enumeration Type Documentation

◆ iio_attribute_shared

Enumerator
IIO_SEPARATE 
IIO_SHARED_BY_TYPE 
IIO_SHARED_BY_DIR 
IIO_SHARED_BY_ALL 

◆ iio_buffer_direction

Enumerator
IIO_DIRECTION_INPUT 
IIO_DIRECTION_OUTPUT 

◆ iio_chan_type

Enumerator
IIO_VOLTAGE 
IIO_CURRENT 
IIO_ALTVOLTAGE 
IIO_ANGL_VEL 
IIO_TEMP 
IIO_CAPACITANCE 
IIO_ACCEL 
IIO_RESISTANCE 
IIO_MAGN 
IIO_INCLI 
IIO_VELOCITY 
IIO_ANGL 
IIO_ROT 
IIO_COUNT 
IIO_DELTA_ANGL 
IIO_DELTA_VELOCITY 
IIO_WEIGHT 

◆ iio_modifier

Enumerator
IIO_NO_MOD 
IIO_MOD_X 
IIO_MOD_Y 
IIO_MOD_Z 
IIO_MOD_TEMP_AMBIENT 
IIO_MOD_PITCH 
IIO_MOD_YAW 
IIO_MOD_ROLL 

◆ iio_val

enum iio_val
Enumerator
IIO_VAL_INT 
IIO_VAL_INT_PLUS_MICRO 
IIO_VAL_INT_PLUS_NANO 
IIO_VAL_INT_PLUS_MICRO_DB 
IIO_VAL_INT_MULTIPLE 
IIO_VAL_FRACTIONAL 
IIO_VAL_FRACTIONAL_LOG2 
IIO_VAL_CHAR