uint8_t offload_config
Definition: spi_engine.h:151
@ NO_OS_SPI_MODE_1
Definition: no_os_spi.h:63
struct no_os_gpio_init_param * gpio_dclkmode
Definition: ad713x.h:715
IIO application descriptor initialization parameters.
Definition: iio_app.h:101
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
uint32_t no_commands
Definition: spi_engine.h:165
Structure containing the init parameters needed by the PWM generator.
Definition: no_os_pwm.h:66
Header file for the ad713x Driver.
int32_t ad713x_dig_filter_sel_ch(struct ad713x_dev *dev, enum ad713x_dig_filter_sel filter, enum ad713x_channels ch)
Digital filter type selection for each channel.
Definition: ad713x.c:338
struct no_os_uart_init_param uart_init_params
Definition: iio_app.h:115
#define IIO_APP_DEVICE(_name, _dev, _dev_descriptor, _read_buff, _write_buff, _default_trigger_id)
Definition: iio_app.h:47
#define CN0561_SPI_CS
Definition: parameters.h:50
@ GPIO_PS
Definition: xilinx_gpio.h:56
@ SPI_PS
Definition: xilinx_spi.h:62
bool clk_delay_en
Definition: ad713x.h:740
@ SINC3
Definition: ad713x.h:641
uint32_t size
Definition: iio_app.h:63
#define ZED_DATA_CLK_FREQ_HZ
Definition: parameters.h:74
Header file of SPI Interface.
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:94
Header file of IRQ interface.
#define CN0561_SPI_ENGINE_BASEADDR
Definition: parameters.h:48
enum xil_uart_type type
Definition: xilinx_uart.h:69
enum ad713x_supported_dev_ids dev_id
Definition: ad713x.h:733
int32_t spi_engine_offload_init(struct no_os_spi_desc *desc, const struct spi_engine_offload_init_param *param)
Initialize the SPI engine's offload module.
Definition: spi_engine.c:763
Driver for the Analog Devices AXI CLKGEN.
@ DMA_PARTIAL_REPORTING_EN
Definition: axi_dmac.h:93
IIO application descriptor.
Definition: iio_app.h:80
int main()
Definition: cn0561.c:74
@ QUAD_CH_PO
Definition: ad713x.h:626
AD713x driver initialization structure.
Definition: ad713x.h:709
uint32_t * commands_data
Definition: spi_engine.h:167
void * buff
Definition: iio_app.h:64
uint32_t period_ns
Definition: no_os_pwm.h:70
Header file of Delay functions.
const struct no_os_gpio_platform_ops xil_gpio_ops
Xilinx platform specific GPIO platform ops structure.
Definition: xilinx_gpio.c:450
@ ADC_24_BIT_DATA
Definition: ad713x.h:596
Definition: clk_axi_clkgen.h:50
enum ad713x_crc_header crc_header
Definition: ad713x.h:737
int32_t axi_clkgen_set_rate(struct axi_clkgen *clkgen, uint32_t rate)
axi_clkgen_set_rate
Definition: clk_axi_clkgen.c:414
enum no_os_spi_mode mode
Definition: no_os_spi.h:148
bool pnd
Definition: ad713x.h:731
Structure representing an offload message.
Definition: spi_engine.h:158
bool dclkio_out_nin
Definition: ad713x.h:729
uint16_t nRefEl
Definition: app.h:44
@ UART_PS
Definition: xilinx_uart.h:59
int32_t number
Definition: no_os_gpio.h:83
uint16_t nFrequency
Definition: app.h:48
uint32_t device_id
Definition: xilinx_gpio.h:68
bool bSweepEn
Definition: app.h:55
int32_t axi_clkgen_init(struct axi_clkgen **clk, const struct axi_clkgen_init *init)
axi_clkgen_init
Definition: clk_axi_clkgen.c:520
#define ADC_BUFFER_SIZE
Definition: parameters.h:77
Definition: clk_axi_clkgen.h:44
struct no_os_gpio_init_param * gpio_pnd
Definition: ad713x.h:721
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
enum ad713x_adc_data_len adc_data_len
Definition: ad713x.h:735
#define CN0561_DMA_BASEADDR
Definition: parameters.h:47
#define GPIO_RESETN
Definition: parameters.h:53
const struct no_os_spi_platform_ops * platform_ops
Definition: no_os_spi.h:154
uint16_t nForceDist
Definition: app.h:42
bool bImpedanceReadMode
Definition: app.h:53
const struct no_os_pwm_platform_ops axi_pwm_ops
AXI platform specific PWM platform ops structure.
Definition: axi_pwm.c:406
uint32_t device_id
Definition: no_os_spi.h:142
uint8_t chip_select
Definition: no_os_spi.h:146
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
enum xil_spi_type type
Definition: spi_engine.h:87
int32_t ad713x_spi_reg_dump(struct ad713x_dev *dev)
Print all registers values for the AD4134 device. Register map has gaps, reg dump function specific f...
Definition: ad713x.c:664
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
int32_t ad713x_remove(struct ad713x_dev *dev)
Free the resources allocated by ad713x_init().
Definition: ad713x.c:638
#define AD713X_REG_GPIO_DIR_CTRL
Definition: ad713x.h:90
bool bMagnitudeMode
Definition: app.h:50
uint32_t base
Definition: clk_axi_clkgen.h:52
Driver for the Analog Devices AXI-DMAC core.
@ CH0
Definition: ad713x.h:652
@ CRC_6
Definition: ad713x.h:611
struct no_os_spi_init_param spi_init_prm
Definition: ad713x.h:711
uint32_t tx_addr
Definition: spi_engine.h:169
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
struct no_os_gpio_init_param * gpio_dclkio
Definition: ad713x.h:717
@ ID_AD4134
Definition: ad713x.h:574
Header file of iio_axi_adc.
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition: xilinx_uart.h:67
enum xil_spi_type type
Definition: xilinx_spi.h:74
struct no_os_gpio_init_param * gpio_mode
Definition: ad713x.h:713
int iio_app_run(struct iio_app_desc *app)
uint32_t * commands
Definition: spi_engine.h:163
uint32_t rx_dma_baseaddr
Definition: spi_engine.h:145
Structure representing an PWM generator device.
Definition: no_os_pwm.h:93
Structure holding the initialization parameters for axi PWM.
Definition: axi_pwm_extra.h:50
@ SPI_ENGINE
Definition: xilinx_spi.h:64
int32_t no_os_pwm_init(struct no_os_pwm_desc **desc, const struct no_os_pwm_init_param *param)
Initialize the PWM peripheral.
Definition: no_os_pwm.c:51
Structure holding the initialization parameters for Xilinx platform specific SPI parameters when usin...
Definition: xilinx_spi.h:72
int iio_app_init(struct iio_app_desc **app, struct iio_app_init_param app_init_param)
uint32_t max_speed_hz
Definition: no_os_spi.h:144
Header file of PWM Interface.
#define OFFLOAD_RX_EN
Definition: spi_engine.h:53
const struct no_os_uart_platform_ops xil_uart_ops
Xilinx platform specific UART platform ops structure.
Definition: xilinx_uart.c:520
uint32_t dma_flags
Definition: spi_engine.h:149
#define NULL
Definition: wrapper.h:64
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
AD713x driver handler structure.
Definition: ad713x.h:680
const struct no_os_spi_platform_ops xil_spi_ops
Spi engine platform specific SPI platform ops structure.
Definition: xilinx_spi.c:453
int ADG2128_SwRst(struct ad5940_dev *dev)
Definition: app.c:63
Structure containing the init parameters needed by the SPI engine.
Definition: spi_engine.h:83
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:77
const struct no_os_spi_platform_ops spi_eng_platform_ops
Spi engine platform specific SPI platform ops structure.
Definition: spi_engine.c:61
enum ad713x_doutx_format format
Definition: ad713x.h:738
#define GPIO_PDN
Definition: parameters.h:54
@ CH3
Definition: ad713x.h:658
uint8_t device_id
Definition: no_os_uart.h:112
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
#define CN0561_FMC_CH_NO
Definition: parameters.h:64
uint32_t GetMCUIntFlag(void)
Definition: app.c:72
Structure holding the initialization parameters for Xilinx platform specific GPIO parameters.
Definition: xilinx_gpio.h:64
struct no_os_spi_desc * spi_common_dev
Definition: ad713x.h:743
bool dclkmode_free_ngated
Definition: ad713x.h:727
Structure containing the init parameters needed by the offload module.
Definition: spi_engine.h:143
Header file of GPIO Interface.
Header file of UART interface.
#define CN0561_SPI_ENG_REF_CLK_FREQ_HZ
Definition: parameters.h:49
struct no_os_gpio_init_param * gpio_resetn
Definition: ad713x.h:719
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:52
@ DMA_LAST
Definition: axi_dmac.h:92
uint16_t nSenseDist
Definition: app.h:43
uint32_t base_addr
Definition: axi_pwm_extra.h:52
Header file of utility functions.
struct no_os_uart_init_param iio_uart_ip
Definition: common_data.c:46
#define CN0561_FMC_SAMPLE_NO
Definition: parameters.h:65
void * extra
Definition: no_os_spi.h:158
@ NO_OS_SPI_MODE_0
Definition: no_os_spi.h:61
#define CORA_Z7S_DATA_CLK_FREQ_HZ
Definition: parameters.h:73
uint32_t rx_addr
Definition: spi_engine.h:171
uint16_t nElectrodeCnt
Definition: app.h:41
uint16_t adc_buffer[ADC_BUFFER_SAMPLES *ADC_CHANNELS]
Definition: main.c:100
#define AD713X_REG_GPIO_DATA
Definition: ad713x.h:91
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:66
uint32_t ClrMCUIntFlag(void)
Definition: app.c:77
int32_t ad713x_init(struct ad713x_dev **device, struct ad713x_init_param *init_param)
Initialize the device.
Definition: ad713x.c:551
struct iio_app_device * devices
Definition: iio_app.h:107
void AD5940BiaStructInit(void)
Definition: app.c:291
enum xil_gpio_type type
Definition: xilinx_gpio.h:66
#define READ(no_bytes)
Definition: spi_engine.h:62
bool mode_master_nslave
Definition: ad713x.h:725
uint16_t nAmplitudePP
Definition: app.h:49
uint32_t nb_devices
Definition: iio_app.h:109
#define GPIO_MODE
Definition: parameters.h:55
volatile uint32_t ucInterrupted
Definition: app.c:58
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140