Go to the documentation of this file.
33 #ifndef AD5766_CORE_H_
34 #define AD5766_CORE_H_
@ NO_OS_SPI_MODE_1
Definition: no_os_spi.h:63
struct ad5758_init_param ad5758_default_init_param
Definition: ad5758_sdz.c:82
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
uint32_t dma_baseaddr
Definition: ad5766_core.h:41
@ GPIO_PS
Definition: xilinx_gpio.h:56
@ SPI_PS
Definition: xilinx_spi.h:62
const struct xil_spi_init_param spi_extra
Definition: ad5758_sdz.c:53
#define SPI_ENGINE_CMD_ASSERT(delay, cs)
Definition: spi_engine_private.h:118
#define AD5758_SPI_CS
Definition: parameters.h:42
int32_t ad5766_core_setup(struct spi_engine_desc *eng_desc, ad5766_core **ad_core, ad5766_core_init_param init_param)
ad5766_core_setup
Definition: ad5766_core.c:163
uint32_t dma_source_addr
Definition: ad5766_core.h:50
Header file of SPI Interface.
Structure representing an SPI engine device.
Definition: spi_engine.h:103
Definition: ad5766_core.h:47
int32_t ad5758_dac_input_write(struct ad5758_dev *dev, uint16_t code)
Definition: ad5758.c:487
const struct no_os_gpio_platform_ops xil_gpio_ops
Xilinx platform specific GPIO platform ops structure.
Definition: xilinx_gpio.c:450
const struct no_os_spi_init_param spi_ip
Definition: ad5758_sdz.c:57
#define SPI_ENGINE_CONFIG_CPHA
Definition: spi_engine_private.h:88
uint32_t spi_clk_hz
Definition: ad5766_core.h:44
int32_t number
Definition: no_os_gpio.h:83
int32_t ad5766_core_setup(struct spi_engine_desc *eng_desc, ad5766_core **ad_core, ad5766_core_init_param init_param)
ad5766_core_setup
Definition: ad5766_core.c:163
void ad5766_core_read(ad5766_core *core, uint32_t reg_addr, uint32_t *reg_data)
ad5766_core_read
Definition: ad5766_core.c:131
@ RANGE_0V_10V
Definition: ad5758.h:332
#define SPI_ENGINE_REG_OFFLOAD_CMD_MEM(x)
Definition: spi_engine_private.h:107
uint32_t rate_hz
Definition: ad5766_core.h:51
uint32_t device_id
Definition: no_os_spi.h:142
Header file for ad5758 Driver.
uint32_t core_baseaddr
Definition: ad7616.h:224
#define SPI_ENGINE_CMD_TRANSFER(readwrite, n)
Definition: spi_engine_private.h:114
@ DPC_VOLTAGE_MODE
Definition: ad5758.h:268
uint32_t dma_source_addr
Definition: ad5766_core.h:42
Header file of AD5766 Core Driver.
uint32_t rate_hz
Definition: ad5766_core.h:43
void ad5766_dma_read(ad5766_core *core, uint32_t reg_addr, uint32_t *reg_data)
ad5766_core_read
Definition: ad5766_core.c:153
#define SPI_ENGINE_REG_OFFLOAD_CTRL(x)
Definition: spi_engine_private.h:104
#define SPI_ENGINE_REG_OFFLOAD_RESET(x)
Definition: spi_engine_private.h:106
#define SPI_ENGINE_CMD_CONFIG(reg, val)
Definition: spi_engine_private.h:122
@ CLKOUT_DISABLE
Definition: ad5758.h:287
const struct xil_gpio_init_param gpio_extra
Definition: ad5758_sdz.c:67
int32_t ad5758_init(struct ad5758_dev **device, struct ad5758_init_param *init_param)
Definition: ad5758.c:767
enum xil_spi_type type
Definition: xilinx_spi.h:74
@ CLKOUT_FREQ_500_KHZ
Definition: ad5758.h:296
#define SPI_ENGINE_CMD_SYNC(id)
Definition: spi_engine_private.h:131
Structure holding the initialization parameters for Xilinx platform specific SPI parameters when usin...
Definition: xilinx_spi.h:72
uint32_t core_baseaddr
Definition: ad5766_core.h:48
struct no_os_spi_init_param spi_init
Definition: ad5758.h:389
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
int32_t ad5766_core_write(ad5766_core *core, uint32_t reg_addr, uint32_t reg_data)
ad5766_core_write
Definition: ad5766_core.c:119
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
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
Definition: ad5766_core.h:39
@ NO_OS_SPI_BIT_ORDER_MSB_FIRST
Definition: no_os_spi.h:76
@ ILIMIT_200_mA
Definition: ad5758.h:323
int32_t ad5766_dma_write(ad5766_core *core, uint32_t reg_addr, uint32_t reg_data)
ad5766_core_write
Definition: ad5766_core.c:141
#define SPI_ENGINE_CMD_REG_CONFIG
Definition: spi_engine_private.h:76
const uint16_t sine_lut[512]
Definition: ad5766_core.c:49
uint32_t dma_baseaddr
Definition: ad5766_core.h:49
int main()
Definition: ad5758_sdz.c:98
#define NULL
Definition: wrapper.h:64
const struct no_os_spi_platform_ops xil_spi_ops
Spi engine platform specific SPI platform ops structure.
Definition: xilinx_spi.c:453
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
uint32_t spi_clk_hz
Definition: ad5766_core.h:52
Structure holding the initialization parameters for Xilinx platform specific GPIO parameters.
Definition: xilinx_gpio.h:64
Header file of GPIO Interface.
@ SR_CLOCK_240_KHZ
Definition: ad5758.h:303
const struct no_os_gpio_init_param ldac_ip
Definition: ad5758_sdz.c:76
const struct no_os_gpio_init_param reset_ip
Definition: ad5758_sdz.c:71
#define SPI_ENGINE_CMD_REG_CLK_DIV
Definition: spi_engine_private.h:75
uint32_t core_baseaddr
Definition: ad5766_core.h:40
enum xil_gpio_type type
Definition: xilinx_gpio.h:66
int32_t spi_engine_write(struct spi_engine_desc *desc, uint32_t reg_addr, uint32_t reg_data)
Write SPI Engine's axi registers.
Definition: spi_engine.c:90
#define GPIO_DAC_LDAC_N
Definition: parameters.h:47
#define GPIO_DAC_RESET_N
Definition: parameters.h:46
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140