no-OS
iio_ad7799.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef IIO_AD7799_H
41 #define IIO_AD7799_H
42 
43 #include "iio_types.h"
44 
46 extern struct iio_device const ad7799_iio_descriptor;
47 
48 #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:282
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:114
iio_channel
Struct describing the scan type.
Definition: iio_types.h:177
scan_type::sign
char sign
Definition: iio_types.h:162
ad7799_dev
AD7798/AD7799 Device description.
Definition: ad7799.h:170
ad7799_iio_descriptor
struct iio_device const ad7799_iio_descriptor
Definition: iio_ad7799.c:167
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:101
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:213
AD7799_IIO_CHANN_DEF
#define AD7799_IIO_CHANN_DEF(nm, ch)
Definition: iio_ad7799.c:136
device
Definition: ad9361_util.h:75
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:140
ad7799_read
int32_t ad7799_read(struct ad7799_dev *device, uint8_t reg_addr, uint32_t *reg_data)
Read device register.
Definition: ad7799.c:85
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:138
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:118
ad7799_iio_descriptor
struct iio_device const ad7799_iio_descriptor
Definition: iio_ad7799.c:167
iio_channel::attributes
struct iio_attribute * attributes
Definition: iio_types.h:195
iio_types.h
Header file for iio_types.
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:259
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:303
ad7799_dev::gain
uint8_t gain
Definition: ad7799.h:178
iio_ch_info::ch_num
int16_t ch_num
Definition: iio_types.h:103
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:254
scan_type
Definition: iio_types.h:160
no_os_util.h
Header file of utility functions.