Tiny IIO Daemon Library

Dependents:  

Committer:
mahphalke
Date:
Wed Oct 07 15:36:37 2020 +0530
Revision:
2:2119a523fbbc
Parent:
1:6cb62c8c58d6
Added dual license support (LGPL and ADI-BSD)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mahphalke 1:6cb62c8c58d6 1 /***************************************************************************//**
mahphalke 1:6cb62c8c58d6 2 * @file tinyiiod-private.h
mahphalke 1:6cb62c8c58d6 3 * @brief Tiny IIO Daemon Library private defines
mahphalke 1:6cb62c8c58d6 4 * @author Paul Cercueil <paul.cercueil@analog.com>
mahphalke 1:6cb62c8c58d6 5 ********************************************************************************
mahphalke 1:6cb62c8c58d6 6 * Copyright (c) 2016, 2020 Analog Devices, Inc.
mahphalke 1:6cb62c8c58d6 7 *
mahphalke 1:6cb62c8c58d6 8 * All rights reserved.
mahphalke 1:6cb62c8c58d6 9 *
mahphalke 1:6cb62c8c58d6 10 * This software is proprietary to Analog Devices, Inc. and its licensors.
mahphalke 1:6cb62c8c58d6 11 * By using this software you agree to the terms of the associated
mahphalke 1:6cb62c8c58d6 12 * Analog Devices Software License Agreement.
mahphalke 1:6cb62c8c58d6 13 *******************************************************************************/
mahphalke 1:6cb62c8c58d6 14
mahphalke 1:6cb62c8c58d6 15 #ifndef TINYIIOD_PRIVATE_H
mahphalke 1:6cb62c8c58d6 16 #define TINYIIOD_PRIVATE_H
mahphalke 1:6cb62c8c58d6 17
mahphalke 1:6cb62c8c58d6 18 #include "tinyiiod.h"
mahphalke 1:6cb62c8c58d6 19
mahphalke 1:6cb62c8c58d6 20 char tinyiiod_read_char(struct tinyiiod *iiod);
mahphalke 1:6cb62c8c58d6 21 ssize_t tinyiiod_read(struct tinyiiod *iiod, char *buf, size_t len);
mahphalke 1:6cb62c8c58d6 22 ssize_t tinyiiod_read_line(struct tinyiiod *iiod, char *buf, size_t len);
mahphalke 1:6cb62c8c58d6 23
mahphalke 1:6cb62c8c58d6 24 ssize_t tinyiiod_write_char(struct tinyiiod *iiod, char c);
mahphalke 1:6cb62c8c58d6 25 ssize_t tinyiiod_write(struct tinyiiod *iiod, const char *data, size_t len);
mahphalke 1:6cb62c8c58d6 26 ssize_t tinyiiod_write_string(struct tinyiiod *iiod, const char *str);
mahphalke 1:6cb62c8c58d6 27 ssize_t tinyiiod_write_value(struct tinyiiod *iiod, int32_t value);
mahphalke 1:6cb62c8c58d6 28
mahphalke 1:6cb62c8c58d6 29 void tinyiiod_write_xml(struct tinyiiod *iiod);
mahphalke 1:6cb62c8c58d6 30
mahphalke 1:6cb62c8c58d6 31 void tinyiiod_do_read_attr(struct tinyiiod *iiod, const char *device,
mahphalke 1:6cb62c8c58d6 32 const char *channel, bool ch_out, const char *attr, bool debug);
mahphalke 1:6cb62c8c58d6 33
mahphalke 1:6cb62c8c58d6 34 void tinyiiod_do_write_attr(struct tinyiiod *iiod, const char *device,
mahphalke 1:6cb62c8c58d6 35 const char *channel, bool ch_out, const char *attr,
mahphalke 1:6cb62c8c58d6 36 size_t bytes, bool debug);
mahphalke 1:6cb62c8c58d6 37
mahphalke 1:6cb62c8c58d6 38 void tinyiiod_do_open(struct tinyiiod *iiod, const char *device,
mahphalke 1:6cb62c8c58d6 39 size_t sample_size, uint32_t mask);
mahphalke 1:6cb62c8c58d6 40 void tinyiiod_do_close(struct tinyiiod *iiod, const char *device);
mahphalke 1:6cb62c8c58d6 41
mahphalke 1:6cb62c8c58d6 42 int32_t tinyiiod_do_open_instance(struct tinyiiod *iiod);
mahphalke 1:6cb62c8c58d6 43
mahphalke 1:6cb62c8c58d6 44 int32_t tinyiiod_do_close_instance(struct tinyiiod *iiod);
mahphalke 1:6cb62c8c58d6 45
mahphalke 1:6cb62c8c58d6 46 int32_t tinyiiod_do_readbuf(struct tinyiiod *iiod,
mahphalke 1:6cb62c8c58d6 47 const char *device, size_t bytes_count);
mahphalke 1:6cb62c8c58d6 48
mahphalke 1:6cb62c8c58d6 49 int32_t tinyiiod_do_writebuf(struct tinyiiod *iiod, const char *device,
mahphalke 1:6cb62c8c58d6 50 size_t bytes_count);
mahphalke 1:6cb62c8c58d6 51
mahphalke 1:6cb62c8c58d6 52 int32_t tinyiiod_parse_string(struct tinyiiod *iiod, char *str);
mahphalke 1:6cb62c8c58d6 53
mahphalke 1:6cb62c8c58d6 54 int32_t tinyiiod_set_timeout(struct tinyiiod *iiod, uint32_t timeout);
mahphalke 1:6cb62c8c58d6 55
mahphalke 1:6cb62c8c58d6 56 #endif /* TINYIIOD_PRIVATE_H */