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

Private header file of iiod. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  iiod_str
 
struct  comand_desc
 
struct  iiod_buff
 
struct  iiod_run_cmd_result
 
struct  iiod_conn_priv
 
struct  iiod_desc
 

Macros

#define IIOD_WR   0x1
 
#define IIOD_ENDL   0x2
 
#define IIOD_RD   0x4
 
#define IIOD_PARSER_MAX_BUF_SIZE   128
 
#define IIOD_STR(cmd)   {(cmd), sizeof(cmd) - 1}
 
#define IIOD_CTX(desc, conn)
 

Enumerations

enum  iiod_cmd {
  IIOD_CMD_HELP,
  IIOD_CMD_EXIT,
  IIOD_CMD_PRINT,
  IIOD_CMD_VERSION,
  IIOD_CMD_TIMEOUT,
  IIOD_CMD_OPEN,
  IIOD_CMD_CLOSE,
  IIOD_CMD_READ,
  IIOD_CMD_WRITE,
  IIOD_CMD_READBUF,
  IIOD_CMD_WRITEBUF,
  IIOD_CMD_GETTRIG,
  IIOD_CMD_SETTRIG,
  IIOD_CMD_SET
}
 

Detailed Description

Private header file of iiod.

Author
Mihail Chindris (mihai.nosp@m.l.ch.nosp@m.indri.nosp@m.s@an.nosp@m.alog..nosp@m.com)

Copyright 2022(c) Analog Devices, Inc.

All rights reserved.

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

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, 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

◆ IIOD_CTX

#define IIOD_CTX (   desc,
  conn 
)
Value:
{.instance = (desc)->app_instance,\
.conn = (conn)->conn}

◆ IIOD_ENDL

#define IIOD_ENDL   0x2

◆ IIOD_PARSER_MAX_BUF_SIZE

#define IIOD_PARSER_MAX_BUF_SIZE   128

◆ IIOD_RD

#define IIOD_RD   0x4

◆ IIOD_STR

#define IIOD_STR (   cmd)    {(cmd), sizeof(cmd) - 1}

◆ IIOD_WR

#define IIOD_WR   0x1

Enumeration Type Documentation

◆ iiod_cmd

enum iiod_cmd
Enumerator
IIOD_CMD_HELP 
IIOD_CMD_EXIT 
IIOD_CMD_PRINT 
IIOD_CMD_VERSION 
IIOD_CMD_TIMEOUT 
IIOD_CMD_OPEN 
IIOD_CMD_CLOSE 
IIOD_CMD_READ 
IIOD_CMD_WRITE 
IIOD_CMD_READBUF 
IIOD_CMD_WRITEBUF 
IIOD_CMD_GETTRIG 
IIOD_CMD_SETTRIG 
IIOD_CMD_SET