libiio 1.0
Library for interfacing with IIO devices
Loading...
Searching...
No Matches
attr.h
1/* SPDX-License-Identifier: MIT */
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
14struct iio_attr_list;
15struct iio_context;
16struct iio_device;
17
18const struct iio_attr *
19iio_attr_get(const struct iio_attr_list *attrs, unsigned int idx);
20const struct iio_attr *
21iio_attr_find(const struct iio_attr_list *attrs, const char *name);
22
23void iio_free_attr_data(struct iio_attr *attr);
24void iio_free_attrs(const struct iio_attr_list *attrs);
25
26int 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__ */
Structure holding meta-data for an attribute.
Definition iio-backend.h:83
Contains the representation of an IIO context.
Represents a device in the IIO context.