libiio  1.0
Library for interfacing with IIO devices
attr.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /*
3  * libiio - Library for interfacing industrial I/O (IIO) devices
4  *
5  * Copyright (C) 2023 Analog Devices, Inc.
6  * Author: Paul Cercueil <paul.cercueil@analog.com>
7  */
8 
9 #ifndef __IIO_ATTR_H__
10 #define __IIO_ATTR_H__
11 
12 #include <iio/iio-backend.h>
13 
14 struct iio_attr_list;
15 struct iio_context;
16 struct iio_device;
17 
18 const struct iio_attr *
19 iio_attr_get(const struct iio_attr_list *attrs, unsigned int idx);
20 const struct iio_attr *
21 iio_attr_find(const struct iio_attr_list *attrs, const char *name);
22 
23 void iio_free_attr_data(struct iio_attr *attr);
24 void iio_free_attrs(const struct iio_attr_list *attrs);
25 
26 int iio_add_attr(union iio_pointer p, struct iio_attr_list *attrs,
27  const char *name, const char *filename,
28  enum iio_attr_type type);
29 
30 #endif /* __IIO_ATTR_H__ */
iiopp::value
double value(Channel ch)
Reads the value of a channel by using "input" or "raw" attribute and applying "scale" and "offset" if...
Definition: iiopp.h:707