Go to the documentation of this file.
43 #define IIOD_MAX_CONNECTIONS 10
44 #define IIOD_VERSION "1.1.0000000"
45 #define IIOD_VERSION_LEN (sizeof(IIOD_VERSION) - 1)
48 #define MAX_TRIG_ID 64
50 #define MAX_ATTR_NAME 256
110 uint32_t mask,
bool cyclic);
122 const char *buf, uint32_t bytes);
131 struct iiod_attr *attr,
char *buf, uint32_t len);
134 struct iiod_attr *attr,
char *buf, uint32_t len);
137 char *trigger, uint32_t len);
143 const char *trigger, uint32_t len);
150 uint32_t buffers_count);
185 uint32_t *new_conn_id);
char trigger[MAX_TRIG_ID]
Definition: iiod_private.h:92
uint32_t timeout
Definition: ad413x.c:49
void * app_instance
Definition: iiod_private.h:169
@ IIOD_LINE_DONE
Definition: iiod_private.h:136
enum physical_link_type phy_type
Definition: iiod_private.h:175
@ IIOD_CMD_EXIT
Definition: iiod_private.h:62
bool used
Definition: iiod_private.h:117
uint32_t timeout
Definition: iiod_private.h:84
int(* open)(struct iiod_ctx *ctx, const char *device, uint32_t samples, uint32_t mask, bool cyclic)
Definition: iiod.h:109
void * instance
Definition: iiod.h:73
Definition: iiod_private.h:97
void * conn
Definition: iiod_private.h:115
@ IIOD_CMD_OPEN
Definition: iiod_private.h:66
void * conn
Definition: iiod.h:80
@ IIOD_CMD_SET
Definition: iiod_private.h:74
char buf_mask[10]
Definition: iiod_private.h:155
Definition: iiod_private.h:163
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
const char * channel
Definition: iiod.h:68
uint32_t xml_len
Definition: iiod.h:170
char * str
Definition: iiod_private.h:52
bool write_val
Definition: iiod_private.h:107
#define IIOD_RD
Definition: iiod_private.h:41
Definition: iiod_private.h:51
Definition: ad9361_util.h:69
uint32_t xml_len
Definition: iiod_private.h:173
enum physical_link_type phy_type
Definition: iiod.h:172
char * xml
Definition: iiod_private.h:171
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
#define IIOD_ENDL
Definition: iiod_private.h:40
void iiod_remove(struct iiod_desc *desc)
Definition: iiod.c:376
iio_attr_type
Definition: iiod.h:52
int(* close)(struct iiod_ctx *ctx, const char *device)
Definition: iiod.h:112
@ IIOD_CMD_READ
Definition: iiod_private.h:68
char * payload_buf
Definition: iiod_private.h:146
int32_t iiod_conn_add(struct iiod_desc *desc, struct iiod_conn_data *data, uint32_t *new_conn_id)
Definition: iiod.c:393
void * instance
Definition: iiod.h:163
@ IIOD_CMD_WRITEBUF
Definition: iiod_private.h:71
uint32_t len
Definition: iiod_private.h:53
uint32_t idx
Definition: iiod_private.h:99
#define no_os_min(x, y)
Definition: no_os_util.h:59
Definition: iiod_private.h:113
int32_t iiod_conn_add(struct iiod_desc *desc, struct iiod_conn_data *data, uint32_t *new_conn_id)
Definition: iiod.c:393
@ USE_NETWORK
Definition: iio.h:55
#define IIOD_STR(cmd)
Definition: iiod_private.h:44
#define IIOD_MAX_CONNECTIONS
Definition: iiod.h:43
char * xml
Definition: iiod.h:168
enum iio_attr_type type
Definition: iiod_private.h:93
int(* refill_buffer)(struct iiod_ctx *ctx, const char *device)
Definition: iiod.h:118
int32_t iiod_conn_step(struct iiod_desc *desc, uint32_t conn_id)
Definition: iiod.c:905
enum iiod_conn_priv::@2 state
uint32_t mask
Definition: iiod_private.h:83
struct iiod_ops * ops
Definition: iiod.h:161
#define IIOD_VERSION_LEN
Definition: iiod.h:45
char * buf
Definition: iiod.h:82
int32_t iiod_init(struct iiod_desc **desc, struct iiod_init_param *param)
Definition: iiod.c:347
int(* write_buffer)(struct iiod_ctx *ctx, const char *device, const char *buf, uint32_t bytes)
Definition: iiod.h:121
uint32_t mask
Definition: iiod_private.h:153
@ IIOD_CMD_PRINT
Definition: iiod_private.h:63
@ IIO_ATTR_TYPE_DEVICE
Definition: iiod.h:57
int(* set_buffers_count)(struct iiod_ctx *ctx, const char *device, uint32_t buffers_count)
Definition: iiod.h:149
bool cyclic
Definition: iiod_private.h:88
int(* get_trigger)(struct iiod_ctx *ctx, const char *device, char *trigger, uint32_t len)
Definition: iiod.h:136
struct iiod_conn_priv conns[IIOD_MAX_CONNECTIONS]
Definition: iiod_private.h:165
void * conn
Definition: iiod.h:75
enum iiod_cmd cmd
Definition: iiod_private.h:82
void iiod_remove(struct iiod_desc *desc)
Definition: iiod.c:376
char * buf
Definition: iiod_private.h:98
int32_t iiod_conn_remove(struct iiod_desc *desc, uint32_t conn_id, struct iiod_conn_data *data)
Definition: iiod.c:423
#define IIOD_PARSER_MAX_BUF_SIZE
Definition: iiod_private.h:42
#define SET_DUMMY_IF_NULL(func, dummy)
Definition: iiod.c:46
char device[MAX_DEV_ID]
Definition: iiod_private.h:89
#define IIOD_CTX(desc, conn)
Definition: iiod_private.h:46
int(* read_attr)(struct iiod_ctx *ctx, const char *device, struct iiod_attr *attr, char *buf, uint32_t len)
Definition: iiod.h:130
struct iiod_buff nb_buf
Definition: iiod_private.h:150
@ IIO_ATTR_TYPE_DEBUG
Definition: iiod.h:53
uint32_t count
Definition: iiod_private.h:87
struct iiod_ops ops
Definition: iiod_private.h:167
char attr[MAX_ATTR_NAME]
Definition: iiod_private.h:91
int32_t iiod_copy_ops(struct iiod_ops *ops, struct iiod_ops *new_ops)
Definition: iiod.c:320
#define IIOD_VERSION
Definition: iiod.h:44
struct comand_desc cmd_data
Definition: iiod_private.h:120
@ IIOD_CMD_CLOSE
Definition: iiod_private.h:67
const char * name
Definition: iiod.h:67
int(* set_trigger)(struct iiod_ctx *ctx, const char *device, const char *trigger, uint32_t len)
Definition: iiod.h:142
int(* read_buffer)(struct iiod_ctx *ctx, const char *device, char *buf, uint32_t bytes)
Definition: iiod.h:115
@ IIOD_CMD_GETTRIG
Definition: iiod_private.h:72
struct iiod_buff buf
Definition: iiod_private.h:109
uint32_t len
Definition: iiod.h:84
uint32_t sample_count
Definition: iiod_private.h:85
@ IIO_ATTR_TYPE_CH_IN
Definition: iiod.h:56
#define NULL
Definition: wrapper.h:64
int32_t iiod_parse_line(char *buf, struct comand_desc *res, char **ctx)
Definition: iiod.c:226
enum iio_attr_type type
Definition: iiod.h:61
@ IIO_ATTR_TYPE_CH_OUT
Definition: iiod.h:55
int(* set_timeout)(struct iiod_ctx *ctx, uint32_t timeout)
Definition: iiod.h:146
Private header file of iiod.
@ IIOD_CMD_WRITE
Definition: iiod_private.h:69
uint32_t payload_buf_len
Definition: iiod_private.h:148
uint32_t bytes_count
Definition: iiod_private.h:86
int(* send)(struct iiod_ctx *ctx, uint8_t *buf, uint32_t len)
Definition: iiod.h:98
int(* write_attr)(struct iiod_ctx *ctx, const char *device, struct iiod_attr *attr, char *buf, uint32_t len)
Definition: iiod.h:133
int(* push_buffer)(struct iiod_ctx *ctx, const char *device)
Definition: iiod.h:124
#define IIOD_WR
Definition: iiod_private.h:39
uint32_t len
Definition: iiod_private.h:100
int32_t iiod_conn_step(struct iiod_desc *desc, uint32_t conn_id)
Definition: iiod.c:905
@ IIO_ATTR_TYPE_BUFFER
Definition: iiod.h:54
@ IIOD_CMD_SETTRIG
Definition: iiod_private.h:73
int32_t iiod_init(struct iiod_desc **desc, struct iiod_init_param *param)
Definition: iiod.c:347
@ IIOD_CMD_HELP
Definition: iiod_private.h:61
Header file of utility functions.
char channel[MAX_CHN_ID]
Definition: iiod_private.h:90
struct iiod_run_cmd_result res
Definition: iiod_private.h:122
int32_t iiod_conn_remove(struct iiod_desc *desc, uint32_t conn_id, struct iiod_conn_data *data)
Definition: iiod.c:423
@ IIOD_CMD_READBUF
Definition: iiod_private.h:70
@ IIOD_CMD_TIMEOUT
Definition: iiod_private.h:65
@ IIOD_CMD_VERSION
Definition: iiod_private.h:64
uint32_t parser_idx
Definition: iiod_private.h:144
int(* recv)(struct iiod_ctx *ctx, uint8_t *buf, uint32_t len)
Definition: iiod.h:99
bool is_cyclic_buffer
Definition: iiod_private.h:159
physical_link_type
Definition: iio.h:52
uint32_t val
Definition: iiod_private.h:105
Definition: iiod_private.h:81