Go to the documentation of this file.
34 #ifndef IIOD_PRIVATE_H
35 #define IIOD_PRIVATE_H
42 #define IIOD_PARSER_MAX_BUF_SIZE 128
44 #define IIOD_STR(cmd) {(cmd), sizeof(cmd) - 1}
46 #define IIOD_CTX(desc, conn) {.instance = (desc)->app_instance,\
178 #endif //IIOD_PRIVATE_H
char trigger[MAX_TRIG_ID]
Definition: iiod_private.h:92
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
Definition: iiod_private.h:97
void * conn
Definition: iiod_private.h:115
@ IIOD_CMD_OPEN
Definition: iiod_private.h:66
#define MAX_TRIG_ID
Definition: iiod.h:48
@ IIOD_CMD_SET
Definition: iiod_private.h:74
char buf_mask[10]
Definition: iiod_private.h:155
Definition: iiod_private.h:163
@ IIOD_READING_WRITE_DATA
Definition: iiod_private.h:134
char * str
Definition: iiod_private.h:52
bool write_val
Definition: iiod_private.h:107
Definition: iiod_private.h:51
Definition: ad9361_util.h:69
char parser_buf[IIOD_PARSER_MAX_BUF_SIZE]
Definition: iiod_private.h:142
uint32_t xml_len
Definition: iiod_private.h:173
char * xml
Definition: iiod_private.h:171
iio_attr_type
Definition: iiod.h:52
@ IIOD_CMD_READ
Definition: iiod_private.h:68
char * payload_buf
Definition: iiod_private.h:146
@ IIOD_CMD_WRITEBUF
Definition: iiod_private.h:71
uint32_t len
Definition: iiod_private.h:53
uint32_t idx
Definition: iiod_private.h:99
Definition: iiod_private.h:113
#define IIOD_MAX_CONNECTIONS
Definition: iiod.h:43
enum iio_attr_type type
Definition: iiod_private.h:93
enum iiod_conn_priv::@2 state
uint32_t mask
Definition: iiod_private.h:83
@ IIOD_RW_BUF
Definition: iiod_private.h:132
uint32_t mask
Definition: iiod_private.h:153
@ IIOD_CMD_PRINT
Definition: iiod_private.h:63
bool cyclic
Definition: iiod_private.h:88
struct iiod_conn_priv conns[IIOD_MAX_CONNECTIONS]
Definition: iiod_private.h:165
enum iiod_cmd cmd
Definition: iiod_private.h:82
char * buf
Definition: iiod_private.h:98
#define IIOD_PARSER_MAX_BUF_SIZE
Definition: iiod_private.h:42
struct iiod_buff nb_buf
Definition: iiod_private.h:150
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
@ IIOD_READING_LINE
Definition: iiod_private.h:126
struct comand_desc cmd_data
Definition: iiod_private.h:120
#define MAX_DEV_ID
Definition: iiod.h:47
@ IIOD_CMD_CLOSE
Definition: iiod_private.h:67
#define MAX_CHN_ID
Definition: iiod.h:49
@ IIOD_CMD_GETTRIG
Definition: iiod_private.h:72
struct iiod_buff buf
Definition: iiod_private.h:109
@ IIOD_WRITING_CMD_RESULT
Definition: iiod_private.h:130
uint32_t sample_count
Definition: iiod_private.h:85
@ IIOD_CMD_WRITE
Definition: iiod_private.h:69
@ IIOD_RUNNING_CMD
Definition: iiod_private.h:128
uint32_t payload_buf_len
Definition: iiod_private.h:148
uint32_t bytes_count
Definition: iiod_private.h:86
uint32_t len
Definition: iiod_private.h:100
Definition: iiod_private.h:104
#define MAX_ATTR_NAME
Definition: iiod.h:50
char * strtok_ctx
Definition: iiod_private.h:157
@ IIOD_CMD_SETTRIG
Definition: iiod_private.h:73
@ IIOD_CMD_HELP
Definition: iiod_private.h:61
char channel[MAX_CHN_ID]
Definition: iiod_private.h:90
struct iiod_run_cmd_result res
Definition: iiod_private.h:122
@ IIOD_PUSH_CYCLIC_BUFFER
Definition: iiod_private.h:138
@ 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
bool is_cyclic_buffer
Definition: iiod_private.h:159
physical_link_type
Definition: iio.h:52
iiod_cmd
Definition: iiod_private.h:60
uint32_t val
Definition: iiod_private.h:105
Definition: iiod_private.h:81