forked from analogdevicesinc/libiio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
attr.h
30 lines (23 loc) · 816 Bytes
/
attr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* libiio - Library for interfacing industrial I/O (IIO) devices
*
* Copyright (C) 2023 Analog Devices, Inc.
* Author: Paul Cercueil <paul.cercueil@analog.com>
*/
#ifndef __IIO_ATTR_H__
#define __IIO_ATTR_H__
#include <iio/iio-backend.h>
struct iio_attr_list;
struct iio_context;
struct iio_device;
const struct iio_attr *
iio_attr_get(const struct iio_attr_list *attrs, unsigned int idx);
const struct iio_attr *
iio_attr_find(const struct iio_attr_list *attrs, const char *name);
void iio_free_attr_data(struct iio_attr *attr);
void iio_free_attrs(const struct iio_attr_list *attrs);
int iio_add_attr(union iio_pointer p, struct iio_attr_list *attrs,
const char *name, const char *filename,
enum iio_attr_type type);
#endif /* __IIO_ATTR_H__ */