struct iio_device iio_ad7124_device
Definition: iio_ad7124.c:702
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
Struct describing the scan type.
Definition: iio_types.h:168
char sign
Definition: iio_types.h:153
Device Structure.
Definition: ad7124.h:481
Structure holding channel attributess.
Definition: iio_types.h:103
#define AD7124_CH0_MAP_REG
Definition: ad7124.h:81
Definition: ad9361_util.h:69
struct scan_type ad7124_iio_scan_type
Definition: iio_ad7124.c:113
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
int32_t ad7124_read_data(struct ad7124_dev *dev, int32_t *p_data)
Reads the conversion result from the device.
Definition: ad7124.c:396
#define AD7124_CFG0_REG
Definition: ad7124.h:97
int channel
Definition: iio_types.h:174
const char * name
Definition: iio_types.h:131
#define AD7124_FILT_REG_FILTER(x)
Definition: ad7124.h:266
#define AD7124_CH_MAP_REG_SETUP(x)
Definition: ad7124.h:251
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
#define AD7124_FILT0_REG
Definition: ad7124.h:105
#define AD7124_CH_MAP_REG_CH_ENABLE
Definition: ad7124.h:250
#define AD7124_IIO_CHANN_DEF(nm, ch1, ch2)
Definition: iio_ad7124.c:121
Header file of iio_ad7124.
int32_t ad7124_wait_for_conv_ready(struct ad7124_dev *dev, uint32_t timeout)
Waits until a new conversion result is available.
Definition: ad7124.c:362
struct iio_attribute * attributes
Definition: iio_types.h:186
uint16_t num_ch
Definition: iio_types.h:252
#define NULL
Definition: wrapper.h:64
#define AD7124_OFFS0_REG
Definition: ad7124.h:113
int32_t ad7124_set_odr(struct ad7124_dev *dev, float odr, int16_t chn_num)
Set ODR of the device.
Definition: ad7124.c:651
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
@ bipolar
Definition: ad5446.h:71
AD7124 header file. Devices: AD7124-4, AD7124-8.
#define AD7124_CFG_REG_PGA(x)
Definition: ad7124.h:263
Definition: iio_types.h:151
float ad7124_get_odr(struct ad7124_dev *dev, int16_t chn_num)
Calculate ODR of the device.
Definition: ad7124.c:602
struct iio_device iio_ad7124_device
Definition: iio_ad7124.c:702
Header file of utility functions.
int32_t ad7124_read_register2(struct ad7124_dev *dev, uint32_t reg, uint32_t *readval)
Wrap the read register function to give it a modern signature.
Definition: ad7124.c:197
int32_t ad7124_write_register2(struct ad7124_dev *dev, uint32_t reg, uint32_t writeval)
Wrap the write register function to give it a modern signature.
Definition: ad7124.c:244
int32_t ad7124_get_read_chan_id(struct ad7124_dev *dev, uint32_t *status)
Get the ID of the channel of the latest conversion.
Definition: ad7124.c:422