precision-converters-firmware
Loading...
Searching...
No Matches
Macros
ad4692_attrs.h File Reference

Header file of ad4692 IIO attributes. More...

#include "app_config.h"
#include "iio.h"
#include "ad4692_iio.h"
Include dependency graph for ad4692_attrs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AD4692_CHN_ATTR(_name, _priv)
 
#define AD4692_CHN_AVAIL_ATTR(_name, _priv)
 

Detailed Description

Header file of ad4692 IIO attributes.

Copyright (c) 2025 Analog Devices, Inc.

All rights reserved. This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Macro Definition Documentation

◆ AD4692_CHN_ATTR

#define AD4692_CHN_ATTR (   _name,
  _priv 
)
Value:
{\
.name = _name,\
.priv = _priv,\
}
int ad4692_iio_attr_set(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv)
Setter function for AD4692 attributes.
Definition ad4692_iio.c:649
int ad4692_iio_attr_get(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv)
Getter/Setter for the raw, offset and scale attribute value.
Definition ad4692_iio.c:531

◆ AD4692_CHN_AVAIL_ATTR

#define AD4692_CHN_AVAIL_ATTR (   _name,
  _priv 
)
Value:
{\
.name = _name,\
.priv = _priv,\
}
int ad4692_iio_attr_available_get(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv)
Attribute available getter function for AD4692 attributes.
Definition ad4692_iio.c:825
int ad4692_iio_attr_available_set(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv)
Attribute available setter function for AD4692 attributes.
Definition ad4692_iio.c:915