Go to the documentation of this file.
55 struct ad713x_iio_init_param {
67 void (*dcache_invalidate_range)(uint32_t address, uint32_t bytes_count);
73 int iio_ad713x_init(
struct ad713x_iio **desc,
74 struct ad713x_iio_init_param *param);
77 int iio_ad713x_remove(
struct ad713x_iio *desc);
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
uint32_t no_commands
Definition: spi_engine.h:165
Header file for the ad713x Driver.
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
#define dev_err(dev, format,...)
Definition: ad9361_util.h:63
char sign
Definition: iio_types.h:153
@ SINC6
Definition: ad713x.h:639
@ SINC3
Definition: ad713x.h:641
@ IIO_SEPARATE
Definition: iio_types.h:119
#define AD713X_REG_CH1_OFFSET_LSB
Definition: ad713x.h:106
Header file of SPI Interface.
Structure holding channel attributess.
Definition: iio_types.h:103
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
uint32_t * commands_data
Definition: spi_engine.h:167
ad713x_channels
AD713x list of channels.
Definition: ad713x.h:650
@ AD713X_CH_MAX
Definition: ad713x.h:660
Structure representing an offload message.
Definition: spi_engine.h:158
Definition: ad9361_util.h:69
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
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
@ FIR
Definition: ad713x.h:637
#define AD713X_CH_OFFSET_CAL_EN_MSK
Definition: ad713x.h:431
uint64_t no_os_do_div(uint64_t *n, uint64_t base)
@ IIO_SHARED_BY_ALL
Definition: iio_types.h:122
int channel
Definition: iio_types.h:174
int32_t ad713x_spi_reg_write(struct ad713x_dev *dev, uint8_t reg_addr, uint8_t reg_data)
Write to device.
Definition: ad713x.c:129
const char * name
Definition: iio_types.h:131
@ SINC3_50_60_REJ
Definition: ad713x.h:643
#define AD713X_FIR_BW_SEL_CH_MSK(ch)
Definition: ad713x.h:342
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
uint64_t no_os_mul_u32_u32(uint32_t a, uint32_t b)
uint32_t tx_addr
Definition: spi_engine.h:169
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
#define AD713X_REG_FIR_BW_SEL
Definition: ad713x.h:89
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
Header file of iio_axi_adc.
int32_t ad713x_spi_reg_read(struct ad713x_dev *dev, uint8_t reg_addr, uint8_t *reg_data)
Read from device.
Definition: ad713x.c:104
#define AD713X_DIGFILTER_SEL_CH_MSK(ch)
Definition: ad713x.h:336
uint32_t * commands
Definition: spi_engine.h:163
bool mode_master_nslave
Definition: ad713x.h:702
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
Header file for iio_types.
uint16_t num_ch
Definition: iio_types.h:252
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
#define NULL
Definition: wrapper.h:64
#define AD713X_REG_CHAN_DIG_FILTER_SEL
Definition: ad713x.h:88
AD713x driver handler structure.
Definition: ad713x.h:680
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
int32_t spi_engine_offload_transfer(struct no_os_spi_desc *desc, struct spi_engine_offload_message msg, uint32_t no_samples)
Initiate a SPI transfer in offload mode.
Definition: spi_engine.c:809
Definition: iio_types.h:151
#define MEGA
Definition: no_os_units.h:42
Header file of utility functions.
#define AD713X_REG_CH0_OFFSET_LSB
Definition: ad713x.h:100
uint32_t rx_addr
Definition: spi_engine.h:171
uint16_t adc_buffer[ADC_BUFFER_SAMPLES *ADC_CHANNELS]
Definition: main.c:100
#define AD713X_REG_ODR_VAL_INT_LSB
Definition: ad713x.h:80
#define READ(no_bytes)
Definition: spi_engine.h:62
#define AD713X_REG_CH3_OFFSET_LSB
Definition: ad713x.h:118
Error macro definition for ARM Compiler.
#define AD713X_REG_CH2_OFFSET_LSB
Definition: ad713x.h:112