no-OS
iio_ad413x.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef IIO_AD413X_H
35 #define IIO_AD413X_H
36 
37 #include "iio.h"
38 #include "ad413x.h"
39 
43 };
44 
47 };
48 
49 int32_t ad413x_iio_init(struct ad413x_iio_dev **iio_dev,
51 int32_t ad413x_iio_remove(struct ad413x_iio_dev *desc);
52 
53 #endif
CH11
@ CH11
Definition: iio_ad413x.c:380
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
ad413x_set_int_ref
int32_t ad413x_set_int_ref(struct ad413x_dev *dev, enum ad413x_int_ref int_ref)
Definition: ad413x.c:121
ad413x_channel::preset
enum ad413x_preset_nb preset
Definition: ad413x.h:456
ad413x_init_param
Initial parameter structure.
Definition: ad413x.h:492
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:50
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
ad413x_preset::gain
enum ad413x_gain gain
Definition: ad413x.h:443
scan_type::sign
char sign
Definition: iio_types.h:153
AD413X_GAIN_128
@ AD413X_GAIN_128
Definition: ad413x.h:379
IIO_SEPARATE
@ IIO_SEPARATE
Definition: iio_types.h:119
ad413x_iio_remove
int32_t ad413x_iio_remove(struct ad413x_iio_dev *desc)
Definition: iio_ad413x.c:457
CH7
@ CH7
Definition: iio_ad413x.c:376
AD413X_GAIN_8
@ AD413X_GAIN_8
Definition: ad413x.h:375
ad413x_iio_scan_type
struct scan_type ad413x_iio_scan_type
Definition: iio_ad413x.c:14
AD413X_GAIN_64
@ AD413X_GAIN_64
Definition: ad413x.h:378
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
CH1
@ CH1
Definition: iio_ad413x.c:370
ad413x_dev::preset
struct ad413x_preset preset[8]
Definition: ad413x.h:475
IIO_VAL_FRACTIONAL
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
no_os_delay.h
Header file of Delay functions.
AD413X_GAIN_16
@ AD413X_GAIN_16
Definition: ad413x.h:376
AD413X_REG_CHN
#define AD413X_REG_CHN(x)
Definition: ad413x.h:69
ad413x_iio_init
int32_t ad413x_iio_init(struct ad413x_iio_dev **iio_dev, struct ad413x_iio_init_param init_param)
Definition: iio_ad413x.c:432
device
Definition: ad9361_util.h:69
ad413x_iio_remove
int32_t ad413x_iio_remove(struct ad413x_iio_dev *desc)
Definition: iio_ad413x.c:457
ad413x_gain
ad413x_gain
Gain options.
Definition: ad413x.h:371
no_os_calloc
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
CH2
@ CH2
Definition: iio_ad413x.c:371
AD413X_GAIN_2
@ AD413X_GAIN_2
Definition: ad413x.h:373
CH4
@ CH4
Definition: iio_ad413x.c:373
IIO_SHARED_BY_ALL
@ IIO_SHARED_BY_ALL
Definition: iio_types.h:122
CH0
@ CH0
Definition: iio_ad413x.c:369
AD413X_GAIN_32
@ AD413X_GAIN_32
Definition: ad413x.h:377
iio.h
Header file of iio.
no_os_error.h
Error codes definition.
ad413x.h
Header file of AD413X Driver.
iio_attribute::name
const char * name
Definition: iio_types.h:131
AD413X_ADC_DATA_STATUS
#define AD413X_ADC_DATA_STATUS
Definition: ad413x.h:86
AD413X_ADC_REF_VAL
#define AD413X_ADC_REF_VAL
Definition: ad413x.h:83
ad413x_adc_bipolar
int32_t ad413x_adc_bipolar(struct ad413x_dev *dev, uint8_t enable)
Definition: ad413x.c:511
AD413X_INTREF_1_25V
@ AD413X_INTREF_1_25V
Definition: ad413x.h:348
ad413x_single_conv
int32_t ad413x_single_conv(struct ad413x_dev *dev, uint32_t *buffer, uint8_t ch_nb)
Definition: ad413x.c:766
ad413x_dev::ch
struct ad413x_channel ch[16]
Definition: ad413x.h:476
ad413x_iio_dev::iio_dev
struct iio_device * iio_dev
Definition: iio_ad413x.h:42
ad413x_iio_dev::ad413x_dev
struct ad413x_dev * ad413x_dev
Definition: iio_ad413x.h:41
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
CH9
@ CH9
Definition: iio_ad413x.c:378
AD413X_ENABLE_M
#define AD413X_ENABLE_M
Definition: ad413x.h:153
ad413x_iio_dev
Definition: iio_ad413x.h:40
ad413x_reg_write
int32_t ad413x_reg_write(struct ad413x_dev *dev, uint32_t reg_addr, uint32_t reg_data)
Definition: ad413x.c:650
AD413X_REG_ADC_CTRL
#define AD413X_REG_ADC_CTRL
Definition: ad413x.h:61
ad413x_remove
int32_t ad413x_remove(struct ad413x_dev *dev)
Free the resources allocated by ad413x_init().
Definition: ad413x.c:1073
CH10
@ CH10
Definition: iio_ad413x.c:379
AD413X_GAIN_1
@ AD413X_GAIN_1
Definition: ad413x.h:372
CH15
@ CH15
Definition: iio_ad413x.c:384
AD413X_IIO_CHANN_DEF
#define AD413X_IIO_CHANN_DEF(nm, ch_nb)
Definition: iio_ad413x.c:387
ad413x_init
int32_t ad413x_init(struct ad413x_dev **device, struct ad413x_init_param init_param)
Definition: ad413x.c:908
iio_format_value
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
iio_channel::attributes
struct iio_attribute * attributes
Definition: iio_types.h:186
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:252
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
ad413x_continuous_conv
int32_t ad413x_continuous_conv(struct ad413x_dev *dev, uint32_t *buffer, uint8_t ch_nb, uint32_t sample_nb)
Definition: ad413x.c:818
ad413x_ch_en
int32_t ad413x_ch_en(struct ad413x_dev *dev, uint8_t ch_nb, uint8_t enable)
Definition: ad413x.c:461
ad413x_iio_init_param
Definition: iio_ad413x.h:45
NULL
#define NULL
Definition: wrapper.h:64
ad413x_dev
Device structure.
Definition: ad413x.h:469
CH6
@ CH6
Definition: iio_ad413x.c:375
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
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
CH8
@ CH8
Definition: iio_ad413x.c:377
AD413X_INTREF_2_5V
@ AD413X_INTREF_2_5V
Definition: ad413x.h:347
CH5
@ CH5
Definition: iio_ad413x.c:374
AD413X_GAIN_4
@ AD413X_GAIN_4
Definition: ad413x.h:374
AD413X_ADC_BIPOLAR
#define AD413X_ADC_BIPOLAR
Definition: ad413x.h:82
scan_type
Definition: iio_types.h:151
CH14
@ CH14
Definition: iio_ad413x.c:383
CH3
@ CH3
Definition: iio_ad413x.c:372
no_os_util.h
Header file of utility functions.
no_os_find_first_set_bit
uint32_t no_os_find_first_set_bit(uint32_t word)
CH12
@ CH12
Definition: iio_ad413x.c:381
ad413x_chan
ad413x_chan
Definition: iio_ad413x.c:368
iio_ad413x.h
Header file of iio_ad413x.
ad413x_iio_init
int32_t ad413x_iio_init(struct ad413x_iio_dev **iio_dev, struct ad413x_iio_init_param init_param)
Definition: iio_ad413x.c:432
CH13
@ CH13
Definition: iio_ad413x.c:382
ad413x_iio_init_param::ad413x_ip
struct ad413x_init_param ad413x_ip
Definition: iio_ad413x.h:46
ad413x_reg_read
int32_t ad413x_reg_read(struct ad413x_dev *dev, uint32_t reg_addr, uint32_t *reg_data)
Definition: ad413x.c:695