no-OS
iio_ad7799.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef IIO_AD7799_H
35 #define IIO_AD7799_H
36 
37 #include "iio_types.h"
38 
40 extern struct iio_device const ad7799_iio_descriptor;
41 
42 #endif //IIO_AD7799_H
ad7799_set_gain
int32_t ad7799_set_gain(struct ad7799_dev *device, uint8_t gain)
Set the ADC gain.
Definition: ad7799.c:277
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
scan_type::sign
char sign
Definition: iio_types.h:153
ad7799_dev
AD7798/AD7799 Device description.
Definition: ad7799.h:164
ad7799_iio_descriptor
struct iio_device const ad7799_iio_descriptor
Definition: iio_ad7799.c:161
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
ad7799_get_channel
int32_t ad7799_get_channel(struct ad7799_dev *device, uint8_t ch, uint32_t *reg_data)
Read specific ADC channel.
Definition: ad7799.c:208
AD7799_IIO_CHANN_DEF
#define AD7799_IIO_CHANN_DEF(nm, ch)
Definition: iio_ad7799.c:130
device
Definition: ad9361_util.h:69
no_os_str_to_uint32
uint32_t no_os_str_to_uint32(const char *str)
no_os_error.h
Error codes definition.
iio_attribute::name
const char * name
Definition: iio_types.h:131
ad7799_read
int32_t ad7799_read(struct ad7799_dev *device, uint8_t reg_addr, uint32_t *reg_data)
Read device register.
Definition: ad7799.c:80
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
ad7799.h
Header file of AD7798/AD7799 Driver.
ad7799_write
int32_t ad7799_write(struct ad7799_dev *device, uint8_t reg_addr, uint32_t reg_data)
Write device register.
Definition: ad7799.c:113
ad7799_iio_descriptor
struct iio_device const ad7799_iio_descriptor
Definition: iio_ad7799.c:161
iio_channel::attributes
struct iio_attribute * attributes
Definition: iio_types.h:186
iio_types.h
Header file for iio_types.
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:252
NULL
#define NULL
Definition: wrapper.h:64
ad7799_get_gain
int32_t ad7799_get_gain(struct ad7799_dev *device, uint8_t *gain)
Get the ADC gain.
Definition: ad7799.c:298
ad7799_dev::gain
uint8_t gain
Definition: ad7799.h:172
iio_ch_info::ch_num
int16_t ch_num
Definition: iio_types.h:105
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
scan_type
Definition: iio_types.h:151
no_os_util.h
Header file of utility functions.