no-OS
iio.h
Go to the documentation of this file.
1 /***************************************************************************/
41 #ifndef IIO_H_
42 #define IIO_H_
43 
44 /******************************************************************************/
45 /***************************** Include Files **********************************/
46 /******************************************************************************/
47 
48 #include "iio_types.h"
49 #include "no_os_uart.h"
50 #ifdef ENABLE_IIO_NETWORK
51 #include "tcp_socket.h"
52 #endif
53 
54 /******************************************************************************/
55 /*************************** Types Declarations *******************************/
56 /******************************************************************************/
57 
60 #ifdef ENABLE_IIO_NETWORK
61  USE_NETWORK
62 #endif
63 };
64 
65 struct iio_desc;
66 
68  char *name;
69  void *dev;
71  /*
72  * IIO buffer implementation can use a user provided buffer in raw_buf.
73  * If raw_buf is NULL and iio_device has buffer callback function set,
74  * it will allocate memory for it when needed.
75  */
76  int8_t *raw_buf;
77  /* Length of raw_buf */
78  uint32_t raw_buf_len;
79  /* If set, trigger will be linked to this device */
80  char *trigger_id;
81 };
82 
84  char *name;
85  void *trig;
87 };
88 
91  union {
93 #ifdef ENABLE_IIO_NETWORK
94  struct tcp_socket_init_param *tcp_socket_init_param;
95 #endif
96  };
98  uint32_t nb_devs;
100  uint32_t nb_trigs;
101 };
102 
103 /******************************************************************************/
104 /************************ Functions Declarations ******************************/
105 /******************************************************************************/
106 
107 /* Set communication ops and read/write ops that will be called from
108  * "libtinyiiod". */
109 int iio_init(struct iio_desc **desc, struct iio_init_param *init_param);
110 /* Free the resources allocated by iio_init(). */
111 int iio_remove(struct iio_desc *desc);
112 /* Execut an iio step. */
113 int iio_step(struct iio_desc *desc);
114 /* Signal iio that a trigger has been triggered.
115  * This will be called in interrupt context. An application callback will be
116  called in interrupt context if trigger is synchronous with the interrupt
117  (is_synchronous = true) or will be called from iio_step if trigger is
118  asynchronous (is_synchronous = false) */
119 int iio_process_trigger_type(struct iio_desc *desc, char *trigger_name);
120 
121 int32_t iio_parse_value(char *buf, enum iio_val fmt,
122  int32_t *val, int32_t *val2);
123 int iio_format_value(char *buf, uint32_t len, enum iio_val fmt,
124  int32_t size, int32_t *vals);
125 
126 /* DMA buffer functions. */
127 /* Get buffer addr where to write iio_buffer.size bytes */
128 int iio_buffer_get_block(struct iio_buffer *buffer, void **addr);
129 /* To be called to mark last iio_buffer_read as done */
130 int iio_buffer_block_done(struct iio_buffer *buffer);
131 
132 /* Trigger buffer functions. */
133 /* Write to buffer iio_buffer.bytes_per_scan bytes from data */
134 int iio_buffer_push_scan(struct iio_buffer *buffer, void *data);
135 /* Read from buffer iio_buffer.bytes_per_scan bytes into data */
136 int iio_buffer_pop_scan(struct iio_buffer *buffer, void *data);
137 
138 #endif /* IIO_H_ */
IIO_ACCEL
@ IIO_ACCEL
Definition: iio_types.h:77
iio_device::read_dev
int32_t(* read_dev)(void *dev, void *buff, uint32_t nb_samples)
Definition: iio_types.h:262
IIO_DIRECTION_INPUT
@ IIO_DIRECTION_INPUT
Definition: iio_types.h:204
IIO_VAL_INT_PLUS_MICRO_DB
@ IIO_VAL_INT_PLUS_MICRO_DB
Definition: iio_types.h:59
iio_init_param::phy_type
enum pysical_link_type phy_type
Definition: iio.h:90
iio_remove
int iio_remove(struct iio_desc *desc)
Free the resources allocated by "iio_init()".
Definition: iio.c:1867
no_os_div_s64_rem
int64_t no_os_div_s64_rem(int64_t dividend, int32_t divisor, int32_t *remainder)
IIO_ANGL_VEL
@ IIO_ANGL_VEL
Definition: iio_types.h:74
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:56
iio_channel
Struct describing the scan type.
Definition: iio_types.h:172
IIO_VAL_INT_PLUS_NANO
@ IIO_VAL_INT_PLUS_NANO
Definition: iio_types.h:58
scan_type::sign
char sign
Definition: iio_types.h:157
iio_buffer_pop_scan
int iio_buffer_pop_scan(struct iio_buffer *buffer, void *data)
Definition: iio.c:1352
no_os_uart_write
int32_t no_os_uart_write(struct no_os_uart_desc *desc, const uint8_t *data, uint32_t bytes_number)
Write data to UART. Blocking function.
Definition: no_os_uart.c:210
IIO_SHARED_BY_TYPE
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:113
iio_remove
int iio_remove(struct iio_desc *desc)
Free the resources allocated by "iio_init()".
Definition: iio.c:1867
iio_init_param::nb_trigs
uint32_t nb_trigs
Definition: iio.h:100
IIO_SEPARATE
@ IIO_SEPARATE
Definition: iio_types.h:112
iio_device::channels
struct iio_channel * channels
Definition: iio_types.h:249
iiod_ops::open
int(* open)(struct iiod_ctx *ctx, const char *device, uint32_t samples, uint32_t mask, bool cyclic)
Definition: iiod.h:108
iio_dev_priv::name
const char * name
Definition: iio.c:155
iiod_ctx::instance
void * instance
Definition: iiod.h:72
IIO_VAL_FRACTIONAL_LOG2
@ IIO_VAL_FRACTIONAL_LOG2
Definition: iio_types.h:62
iio_device_data::dev
void * dev
Definition: iio_types.h:222
iio_init
int iio_init(struct iio_desc **desc, struct iio_init_param *init_param)
Set communication ops and read/write ops that will be called from "libtinyiiod".
Definition: iio.c:1743
no_os_bswap_constant_32
#define no_os_bswap_constant_32(x)
Definition: no_os_util.h:93
iio_trig_priv::descriptor
struct iio_trigger * descriptor
Definition: iio.c:183
iiod.h
Header file of iiod.
iiod_conn_data::conn
void * conn
Definition: iiod.h:79
iio_desc
Definition: iio.c:188
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:96
iio_trigger_init
Definition: iio.h:83
iio_dev_priv::dev_id
char dev_id[21]
Definition: iio.c:153
IIO_VAL_INT_PLUS_MICRO
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:57
NO_OS_EOVERRUN
#define NO_OS_EOVERRUN
Definition: no_os_error.h:53
iio_buffer::bytes_per_scan
uint32_t bytes_per_scan
Definition: iio_types.h:214
no_os_uart_read
int32_t no_os_uart_read(struct no_os_uart_desc *desc, uint8_t *data, uint32_t bytes_number)
Read data from UART. Blocking function.
Definition: no_os_uart.c:154
iio_attribute::show
int(* show)(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv)
Definition: iio_types.h:144
iio_trig_priv::id
char id[22]
Definition: iio.c:177
scan_type::is_big_endian
bool is_big_endian
Definition: iio_types.h:165
iio_channel::diferential
bool diferential
Definition: iio_types.h:200
iiod_desc
Definition: iiod_private.h:163
IIO_MOD_Z
@ IIO_MOD_Z
Definition: iio_types.h:88
scan_type::storagebits
uint8_t storagebits
Definition: iio_types.h:161
IIO_VAL_FRACTIONAL
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:61
NO_OS_IS_ERR_VALUE
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:56
iio_dev_priv::dev_descriptor
struct iio_device * dev_descriptor
Definition: iio.c:163
iiod_attr::channel
const char * channel
Definition: iiod.h:67
no_os_delay.h
Header file of Delay functions.
no_os_max
#define no_os_max(x, y)
Definition: no_os_util.h:68
iio_buffer_push_scan
int iio_buffer_push_scan(struct iio_buffer *buffer, void *data)
Definition: iio.c:1343
iio_desc::xml_desc
char * xml_desc
Definition: iio.c:192
iio_trigger::disable
int(* disable)(void *trig)
Definition: iio_types.h:235
iio_buffer_priv::public
struct iio_buffer public
Definition: iio.c:133
iiod_init_param::xml_len
uint32_t xml_len
Definition: iiod.h:169
iio_init_param
Definition: iio.h:89
iio_desc::iiod
struct iiod_desc * iiod
Definition: iio.c:189
device
Definition: ad9361_util.h:75
iio_buffer_priv::raw_buf
int8_t * raw_buf
Definition: iio.c:137
iio_device::write_dev
int32_t(* write_dev)(void *dev, void *buff, uint32_t nb_samples)
Definition: iio_types.h:267
IIO_ALTVOLTAGE
@ IIO_ALTVOLTAGE
Definition: iio_types.h:73
iio_channel::ch_type
enum iio_chan_type ch_type
Definition: iio_types.h:176
no_os_circular_buffer::buff
int8_t * buff
Definition: no_os_circular_buffer.h:77
iio_buffer_block_done
int iio_buffer_block_done(struct iio_buffer *buffer)
Definition: iio.c:1331
iio_trig_priv::triggered
bool triggered
Definition: iio.c:185
no_os_cb_prepare_async_write
int32_t no_os_cb_prepare_async_write(struct no_os_circular_buffer *desc, uint32_t raw_size_to_write, void **write_buff, uint32_t *raw_size_avilable)
iio_device::post_disable
int32_t(* post_disable)(void *dev)
Definition: iio_types.h:273
attr_fun_params::ch_info
struct iio_ch_info * ch_info
Definition: iio.c:128
iio_attr_type
iio_attr_type
Definition: iiod.h:51
iio_buffer_priv
Definition: iio.c:131
iio_buffer_pop_scan
int iio_buffer_pop_scan(struct iio_buffer *buffer, void *data)
Definition: iio.c:1352
iio_channel::channel2
int channel2
Definition: iio_types.h:182
iiod_ops::close
int(* close)(struct iiod_ctx *ctx, const char *device)
Definition: iiod.h:111
iio_device::debug_reg_read
int32_t(* debug_reg_read)(void *dev, uint32_t reg, uint32_t *readval)
Definition: iio_types.h:280
iiod_conn_add
int32_t iiod_conn_add(struct iiod_desc *desc, struct iiod_conn_data *data, uint32_t *new_conn_id)
Definition: iiod.c:399
iiod_init_param::instance
void * instance
Definition: iiod.h:162
iio_init
int iio_init(struct iio_desc **desc, struct iio_init_param *init_param)
Set communication ops and read/write ops that will be called from "libtinyiiod".
Definition: iio.c:1743
iio_channel::ch_out
bool ch_out
Definition: iio_types.h:192
iio_device_init::trigger_id
char * trigger_id
Definition: iio.h:80
no_os_div_s64
int64_t no_os_div_s64(int64_t dividend, int32_t divisor)
iio_trigger_init::trig
void * trig
Definition: iio.h:85
no_os_cb_end_async_write
int32_t no_os_cb_end_async_write(struct no_os_circular_buffer *desc)
IIOD_PORT
#define IIOD_PORT
Definition: iio.c:70
IIO_SHARED_BY_ALL
@ IIO_SHARED_BY_ALL
Definition: iio_types.h:115
no_os_min
#define no_os_min(x, y)
Definition: no_os_util.h:63
iiod_ctx
Definition: iiod.h:70
iiod_init_param
Definition: iiod.h:159
iio_init_param::uart_desc
struct no_os_uart_desc * uart_desc
Definition: iio.h:92
iio_channel::channel
int channel
Definition: iio_types.h:178
iio_device::pre_enable
int32_t(* pre_enable)(void *dev, uint32_t mask)
Definition: iio_types.h:271
no_os_uart_desc
Stucture holding the UART descriptor.
Definition: no_os_uart.h:126
iio.h
Header file of iio.
no_os_error.h
Error codes definition.
iio_attribute::shared
enum iio_attribute_shared shared
Definition: iio_types.h:142
iio_trig_priv
Links a physical trigger instance "void *instance" with a "iio_trigger *descriptor" that describes ca...
Definition: iio.c:175
scan_type::shift
uint8_t shift
Definition: iio_types.h:163
IIOD_MAX_CONNECTIONS
#define IIOD_MAX_CONNECTIONS
Definition: iiod.h:47
iio_attribute::store
int(* store)(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv)
Definition: iio_types.h:147
IIO_MOD_Y
@ IIO_MOD_Y
Definition: iio_types.h:87
iio_attribute::name
const char * name
Definition: iio_types.h:135
iio_buffer_priv::allocated
bool allocated
Definition: iio.c:143
iio_desc::devs
struct iio_dev_priv * devs
Definition: iio.c:194
iio_buffer_block_done
int iio_buffer_block_done(struct iio_buffer *buffer)
Definition: iio.c:1331
iiod_init_param::xml
char * xml
Definition: iiod.h:167
iiod_ops::refill_buffer
int(* refill_buffer)(struct iiod_ctx *ctx, const char *device)
Definition: iiod.h:117
iio_channel::name
const char * name
Definition: iio_types.h:174
iio_device::debug_attributes
struct iio_attribute * debug_attributes
Definition: iio_types.h:255
iiod_init_param::ops
struct iiod_ops * ops
Definition: iiod.h:160
IIO_VAL_CHAR
@ IIO_VAL_CHAR
Definition: iio_types.h:63
iio_device::submit
int32_t(* submit)(struct iio_device_data *dev)
Definition: iio_types.h:275
iiod_conn_data::buf
char * buf
Definition: iiod.h:81
iiod_init
int32_t iiod_init(struct iiod_desc **desc, struct iiod_init_param *param)
Definition: iiod.c:354
iio_buffer::size
uint32_t size
Definition: iio_types.h:212
iiod_ops::write_buffer
int(* write_buffer)(struct iiod_ctx *ctx, const char *device, const char *buf, uint32_t bytes)
Definition: iiod.h:120
iio_buffer_get_block
int iio_buffer_get_block(struct iio_buffer *buffer, void **addr)
Definition: iio.c:1298
iio_trigger_init::descriptor
struct iio_trigger * descriptor
Definition: iio.h:86
iio_device_init::name
char * name
Definition: iio.h:68
IIO_ATTR_TYPE_DEVICE
@ IIO_ATTR_TYPE_DEVICE
Definition: iiod.h:56
iio_buffer_direction
iio_buffer_direction
Definition: iio_types.h:203
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:133
iiod_ops::get_trigger
int(* get_trigger)(struct iiod_ctx *ctx, const char *device, char *trigger, uint32_t len)
Definition: iiod.h:135
iiod_ctx::conn
void * conn
Definition: iiod.h:74
iiod_remove
void iiod_remove(struct iiod_desc *desc)
Definition: iiod.c:382
attr_fun_params::len
uint32_t len
Definition: iio.c:127
iio_desc::uart_desc
struct no_os_uart_desc * uart_desc
Definition: iio.c:198
iio_buffer
Definition: iio_types.h:208
REG_ACCESS_ATTRIBUTE
#define REG_ACCESS_ATTRIBUTE
Definition: iio.c:72
iio_buffer_priv::initalized
bool initalized
Definition: iio.c:141
iio_buffer::active_mask
uint32_t active_mask
Definition: iio_types.h:210
iiod_ops::read_attr
int(* read_attr)(struct iiod_ctx *ctx, const char *device, struct iiod_attr *attr, char *buf, uint32_t len)
Definition: iiod.h:129
no_os_circular_buffer.h
Circular buffer library header.
iio_init_param::devs
struct iio_device_init * devs
Definition: iio.h:97
iio_buffer::buf
struct no_os_circular_buffer * buf
Definition: iio_types.h:218
IIO_ATTR_TYPE_DEBUG
@ IIO_ATTR_TYPE_DEBUG
Definition: iiod.h:52
IIO_CURRENT
@ IIO_CURRENT
Definition: iio_types.h:72
iio_parse_value
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:568
iio_desc::recv
int(* recv)(void *conn, uint8_t *buf, uint32_t len)
Definition: iio.c:199
IIO_VOLTAGE
@ IIO_VOLTAGE
Definition: iio_types.h:71
IIOD_CONN_BUFFER_SIZE
#define IIOD_CONN_BUFFER_SIZE
Definition: iio.c:73
IIO_MOD_TEMP_AMBIENT
@ IIO_MOD_TEMP_AMBIENT
Definition: iio_types.h:89
iio_dev_priv::dev_data
struct iio_device_data dev_data
Definition: iio.c:159
iio_dev_priv
Links a physical device instance "void *dev_instance" with a "iio_device *iio" that describes capabil...
Definition: iio.c:151
iio_device_data::buffer
struct iio_buffer * buffer
Definition: iio_types.h:223
iio_val
iio_val
Definition: iio_types.h:55
iio_dev_priv::buffer
struct iio_buffer_priv buffer
Definition: iio.c:165
IIO_CAPACITANCE
@ IIO_CAPACITANCE
Definition: iio_types.h:76
iio_trigger_init::name
char * name
Definition: iio.h:84
IIO_DIRECTION_OUTPUT
@ IIO_DIRECTION_OUTPUT
Definition: iio_types.h:205
iio_buffer_priv::cb
struct no_os_circular_buffer cb
Definition: iio.c:135
iiod_attr::name
const char * name
Definition: iiod.h:66
iiod_conn_data
Definition: iiod.h:77
no_os_cb_prepare_async_read
int32_t no_os_cb_prepare_async_read(struct no_os_circular_buffer *desc, uint32_t raw_size_to_read, void **read_buff, uint32_t *raw_size_avilable)
iiod_ops::set_trigger
int(* set_trigger)(struct iiod_ctx *ctx, const char *device, const char *trigger, uint32_t len)
Definition: iiod.h:141
iio_init_param::trigs
struct iio_trigger_init * trigs
Definition: iio.h:99
iio_format_value
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:619
iio_desc::send
int(* send)(void *conn, uint8_t *buf, uint32_t len)
Definition: iio.c:200
no_os_cb_init
int32_t no_os_cb_init(struct no_os_circular_buffer **desc, uint32_t size)
no_os_cb_remove
int32_t no_os_cb_remove(struct no_os_circular_buffer *desc)
iio_device::buffer_attributes
struct iio_attribute * buffer_attributes
Definition: iio_types.h:257
iiod_ops::read_buffer
int(* read_buffer)(struct iiod_ctx *ctx, const char *device, char *buf, uint32_t bytes)
Definition: iiod.h:114
iio_init_param::nb_devs
uint32_t nb_devs
Definition: iio.h:98
iio_dev_priv::dev_instance
void * dev_instance
Definition: iio.c:157
iio_process_trigger_type
int iio_process_trigger_type(struct iio_desc *desc, char *trigger_name)
Searches for trigger name and processes the trigger based on its type (sync or async with the interru...
Definition: iio.c:995
attr_fun_params::buf
char * buf
Definition: iio.c:126
iio_channel::attributes
struct iio_attribute * attributes
Definition: iio_types.h:190
iio_types.h
Header file for iio_types.
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:247
iio_channel::scan_type
struct scan_type * scan_type
Definition: iio_types.h:188
USE_UART
@ USE_UART
Definition: iio.h:59
IIO_MOD_X
@ IIO_MOD_X
Definition: iio_types.h:86
iio_device_init::dev_descriptor
struct iio_device * dev_descriptor
Definition: iio.h:70
IIO_TEMP
@ IIO_TEMP
Definition: iio_types.h:75
iio_dev_priv::active_reg_addr
uint32_t active_reg_addr
Definition: iio.c:161
iio_process_trigger_type
int iio_process_trigger_type(struct iio_desc *desc, char *trigger_name)
Searches for trigger name and processes the trigger based on its type (sync or async with the interru...
Definition: iio.c:995
iio_device::trigger_handler
int32_t(* trigger_handler)(struct iio_device_data *dev)
Definition: iio_types.h:277
no_os_list.h
List library header.
iio_desc::phy_desc
void * phy_desc
Definition: iio.c:191
iio_buffer::dir
enum iio_buffer_direction dir
Definition: iio_types.h:216
IIO_ATTR_TYPE_CH_IN
@ IIO_ATTR_TYPE_CH_IN
Definition: iiod.h:55
iio_device_init::dev
void * dev
Definition: iio.h:69
NULL
#define NULL
Definition: wrapper.h:64
iio_trigger
Definition: iio_types.h:226
iiod_attr::type
enum iio_attr_type type
Definition: iiod.h:60
no_os_cb_cfg
int32_t no_os_cb_cfg(struct no_os_circular_buffer *desc, int8_t *buf, uint32_t size)
iio_channel::modified
bool modified
Definition: iio_types.h:195
iio_desc::nb_devs
uint32_t nb_devs
Definition: iio.c:195
iio_channel::scan_index
int scan_index
Definition: iio_types.h:186
iio_dev_priv::trig_idx
uint32_t trig_idx
Definition: iio.c:167
IIO_ATTR_TYPE_CH_OUT
@ IIO_ATTR_TYPE_CH_OUT
Definition: iiod.h:54
no_os_shift_right
#define no_os_shift_right(x, s)
Definition: no_os_util.h:117
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
iio_desc::trigs
struct iio_trig_priv * trigs
Definition: iio.c:196
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:242
no_os_cb_write
int32_t no_os_cb_write(struct no_os_circular_buffer *desc, const void *data, uint32_t nb_elements)
iio_device_init::raw_buf_len
uint32_t raw_buf_len
Definition: iio.h:78
iiod_ops::send
int(* send)(struct iiod_ctx *ctx, uint8_t *buf, uint32_t len)
Definition: iiod.h:97
iiod_ops::write_attr
int(* write_attr)(struct iiod_ctx *ctx, const char *device, struct iiod_attr *attr, char *buf, uint32_t len)
Definition: iiod.h:132
no_os_circular_buffer
Circular buffer descriptor.
Definition: no_os_circular_buffer.h:73
iiod_ops::push_buffer
int(* push_buffer)(struct iiod_ctx *ctx, const char *device)
Definition: iiod.h:123
attr_fun_params
Definition: iio.c:124
iio_trigger::attributes
struct iio_attribute * attributes
Definition: iio_types.h:231
iio_step
int iio_step(struct iio_desc *desc)
Execute an iio step.
Definition: iio.c:1395
iio_trig_priv::name
char * name
Definition: iio.c:179
iio_desc::nb_trigs
uint32_t nb_trigs
Definition: iio.c:197
iio_trigger::enable
int(* enable)(void *trig)
Definition: iio_types.h:233
NO_TRIGGER
#define NO_TRIGGER
Definition: iio.c:74
iiod_conn_step
int32_t iiod_conn_step(struct iiod_desc *desc, uint32_t conn_id)
Definition: iiod.c:833
attr_fun_params::dev_instance
void * dev_instance
Definition: iio.c:125
iiod_ops
Definition: iiod.h:87
IIO_ATTR_TYPE_BUFFER
@ IIO_ATTR_TYPE_BUFFER
Definition: iiod.h:53
iiod_attr
Definition: iiod.h:59
iio_desc::conns
struct no_os_circular_buffer * conns
Definition: iio.c:202
no_os_uart.h
Header file of UART interface.
iio_trigger::is_synchronous
bool is_synchronous
Definition: iio_types.h:229
iio_trig_priv::instance
void * instance
Definition: iio.c:181
pysical_link_type
pysical_link_type
Definition: iio.h:58
iio_buffer_get_block
int iio_buffer_get_block(struct iio_buffer *buffer, void **addr)
Definition: iio.c:1298
no_os_util.h
Header file of utility functions.
iio_format_value
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:619
iio_device_data
Definition: iio_types.h:221
iio_device::debug_reg_write
int32_t(* debug_reg_write)(void *dev, uint32_t reg, uint32_t writeval)
Definition: iio_types.h:282
iio_device_init
Definition: iio.h:67
iio_desc::xml_size
uint32_t xml_size
Definition: iio.c:193
no_os_cb_size
int32_t no_os_cb_size(struct no_os_circular_buffer *desc, uint32_t *size)
iio_device_init::raw_buf
int8_t * raw_buf
Definition: iio.h:76
dev_id
dev_id
Definition: ad9361.h:3334
no_os_cb_end_async_read
int32_t no_os_cb_end_async_read(struct no_os_circular_buffer *desc)
iiod_conn_remove
int32_t iiod_conn_remove(struct iiod_desc *desc, uint32_t conn_id, struct iiod_conn_data *data)
Definition: iiod.c:429
iiod_ops::recv
int(* recv)(struct iiod_ctx *ctx, uint8_t *buf, uint32_t len)
Definition: iiod.h:98
IIO_SHARED_BY_DIR
@ IIO_SHARED_BY_DIR
Definition: iio_types.h:114
iio_buffer_priv::raw_buf_len
uint32_t raw_buf_len
Definition: iio.c:139
iio_step
int iio_step(struct iio_desc *desc)
Execute an iio step.
Definition: iio.c:1395
iio_channel::address
unsigned long address
Definition: iio_types.h:184
iio_buffer_push_scan
int iio_buffer_push_scan(struct iio_buffer *buffer, void *data)
Definition: iio.c:1343
iio_device::attributes
struct iio_attribute * attributes
Definition: iio_types.h:253
IIO_VAL_INT_MULTIPLE
@ IIO_VAL_INT_MULTIPLE
Definition: iio_types.h:60
iio_parse_value
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:568
iio_channel::indexed
bool indexed
Definition: iio_types.h:198
no_os_cb_read
int32_t no_os_cb_read(struct no_os_circular_buffer *desc, void *data, uint32_t nb_elements)
iio_desc::iiod_ops
struct iiod_ops iiod_ops
Definition: iio.c:190
scan_type::realbits
uint8_t realbits
Definition: iio_types.h:159