int32_t ad7799_set_gain(struct ad7799_dev *device, uint8_t gain)
Set the ADC gain.
Definition: ad7799.c:277
#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
AD7798/AD7799 Device description.
Definition: ad7799.h:164
struct iio_device const ad7799_iio_descriptor
Definition: iio_ad7799.c:161
Structure holding channel attributess.
Definition: iio_types.h:103
int32_t ad7799_get_channel(struct ad7799_dev *device, uint8_t ch, uint32_t *reg_data)
Read specific ADC channel.
Definition: ad7799.c:208
#define AD7799_IIO_CHANN_DEF(nm, ch)
Definition: iio_ad7799.c:130
Definition: ad9361_util.h:69
uint32_t no_os_str_to_uint32(const char *str)
const char * name
Definition: iio_types.h:131
int32_t ad7799_read(struct ad7799_dev *device, uint8_t reg_addr, uint32_t *reg_data)
Read device register.
Definition: ad7799.c:80
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
Header file of AD7798/AD7799 Driver.
int32_t ad7799_write(struct ad7799_dev *device, uint8_t reg_addr, uint32_t reg_data)
Write device register.
Definition: ad7799.c:113
struct iio_device const ad7799_iio_descriptor
Definition: iio_ad7799.c:161
struct iio_attribute * attributes
Definition: iio_types.h:186
Header file for iio_types.
uint16_t num_ch
Definition: iio_types.h:252
#define NULL
Definition: wrapper.h:64
int32_t ad7799_get_gain(struct ad7799_dev *device, uint8_t *gain)
Get the ADC gain.
Definition: ad7799.c:298
uint8_t gain
Definition: ad7799.h:172
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
Definition: iio_types.h:151
Header file of utility functions.