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

Private header file of iiod. More...

#include "iio.h"
Include dependency graph for iiod_private.h:
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.

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

◆ 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