no-OS
iio_ad7124.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef IIO_AD7124_H
41 #define IIO_AD7124_H
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 
47 #include "iio.h"
48 
49 extern struct iio_device iio_ad7124_device;
50 
51 #endif
iio_ad7124_device
struct iio_device iio_ad7124_device
Definition: iio_ad7124.c:708
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:121
iio_channel
Struct describing the scan type.
Definition: iio_types.h:173
scan_type::sign
char sign
Definition: iio_types.h:158
ad7124_dev
Device Structure.
Definition: ad7124.h:488
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:108
AD7124_CH0_MAP_REG
#define AD7124_CH0_MAP_REG
Definition: ad7124.h:88
device
Definition: ad9361_util.h:75
ad7124_iio_scan_type
struct scan_type ad7124_iio_scan_type
Definition: iio_ad7124.c:119
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:53
ad7124_read_data
int32_t ad7124_read_data(struct ad7124_dev *dev, int32_t *p_data)
Reads the conversion result from the device.
Definition: ad7124.c:403
AD7124_CFG0_REG
#define AD7124_CFG0_REG
Definition: ad7124.h:104
iio_channel::channel
int channel
Definition: iio_types.h:179
iio.h
Header file of iio.
no_os_error.h
Error codes definition.
iio_attribute::name
const char * name
Definition: iio_types.h:136
AD7124_FILT_REG_FILTER
#define AD7124_FILT_REG_FILTER(x)
Definition: ad7124.h:273
AD7124_CH_MAP_REG_SETUP
#define AD7124_CH_MAP_REG_SETUP(x)
Definition: ad7124.h:258
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:134
AD7124_FILT0_REG
#define AD7124_FILT0_REG
Definition: ad7124.h:112
AD7124_CH_MAP_REG_CH_ENABLE
#define AD7124_CH_MAP_REG_CH_ENABLE
Definition: ad7124.h:257
AD7124_IIO_CHANN_DEF
#define AD7124_IIO_CHANN_DEF(nm, ch1, ch2)
Definition: iio_ad7124.c:127
iio_ad7124.h
Header file of iio_ad7124.
ad7124_wait_for_conv_ready
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:369
iio_channel::attributes
struct iio_attribute * attributes
Definition: iio_types.h:191
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:257
NULL
#define NULL
Definition: wrapper.h:64
AD7124_OFFS0_REG
#define AD7124_OFFS0_REG
Definition: ad7124.h:120
ad7124_set_odr
int32_t ad7124_set_odr(struct ad7124_dev *dev, float odr, int16_t chn_num)
Set ODR of the device.
Definition: ad7124.c:658
iio_ch_info::ch_num
int16_t ch_num
Definition: iio_types.h:110
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:252
bipolar
@ bipolar
Definition: ad5446.h:79
ad7124.h
AD7124 header file. Devices: AD7124-4, AD7124-8.
AD7124_CFG_REG_PGA
#define AD7124_CFG_REG_PGA(x)
Definition: ad7124.h:270
scan_type
Definition: iio_types.h:156
ad7124_get_odr
float ad7124_get_odr(struct ad7124_dev *dev, int16_t chn_num)
Calculate ODR of the device.
Definition: ad7124.c:609
iio_ad7124_device
struct iio_device iio_ad7124_device
Definition: iio_ad7124.c:708
no_os_util.h
Header file of utility functions.
ad7124_read_register2
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:204
ad7124_write_register2
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:251
ad7124_get_read_chan_id
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:429