no-OS
Macros | Functions | Variables
ad77681evb.c File Reference

Implementation of Main Function. More...

#include <stdio.h>
#include <sleep.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <xil_cache.h>
#include <xparameters.h>
#include "clk_axi_clkgen.h"
#include "xil_printf.h"
#include "ad77681.h"
#include "spi_engine.h"
#include "parameters.h"
#include "no_os_delay.h"
#include "no_os_error.h"
Include dependency graph for ad77681evb.c:

Macros

#define SPI_ENGINE_OFFLOAD_EXAMPLE   0
 

Functions

int main ()
 

Variables

uint32_t spi_msg_cmds [6] = {CS_LOW, CS_HIGH, CS_LOW, WRITE_READ(1), CS_HIGH}
 
struct spi_engine_init_param spi_eng_init_param
 
struct ad77681_init_param ADC_default_init_param
 
struct axi_clkgen_init clkgen_init
 

Detailed Description

Implementation of Main Function.

Author
SPopa (stefa.nosp@m.n.po.nosp@m.pa@an.nosp@m.alog.nosp@m..com)

Copyright 2017(c) Analog Devices, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ SPI_ENGINE_OFFLOAD_EXAMPLE

#define SPI_ENGINE_OFFLOAD_EXAMPLE   0

Function Documentation

◆ main()

int main ( )

Variable Documentation

◆ ADC_default_init_param

struct ad77681_init_param ADC_default_init_param

◆ clkgen_init

struct axi_clkgen_init clkgen_init
Initial value:
= {
.name = "rx_clkgen",
.base = XPAR_SPI_CLKGEN_BASEADDR,
.parent_rate = 100000000,
}

◆ spi_eng_init_param

struct spi_engine_init_param spi_eng_init_param
Initial value:
= {
.type = SPI_ENGINE,
.spi_engine_baseaddr = AD77681_SPI1_ENGINE_BASEADDR,
.cs_delay = 0,
.data_width = 32,
}

◆ spi_msg_cmds

uint32_t spi_msg_cmds[6] = {CS_LOW, CS_HIGH, CS_LOW, WRITE_READ(1), CS_HIGH}
AD77681_FIR
@ AD77681_FIR
Definition: ad77681.h:401
AD77681_SPI1_ENGINE_BASEADDR
#define AD77681_SPI1_ENGINE_BASEADDR
Definition: parameters.h:52
AD77681_FAST
@ AD77681_FAST
Definition: ad77681.h:354
AD77681_BUFn_ENABLED
@ AD77681_BUFn_ENABLED
Definition: ad77681.h:439
AD77681_POSITIVE_FS
@ AD77681_POSITIVE_FS
Definition: ad77681.h:385
AD77681_CONV_CONTINUOUS
@ AD77681_CONV_CONTINUOUS
Definition: ad77681.h:365
NO_OS_SPI_MODE_3
@ NO_OS_SPI_MODE_3
Definition: no_os_spi.h:72
AD77681_AINn_ENABLED
@ AD77681_AINn_ENABLED
Definition: ad77681.h:427
AD77681_BUFp_ENABLED
@ AD77681_BUFp_ENABLED
Definition: ad77681.h:446
AD77681_VCM_HALF_VCC
@ AD77681_VCM_HALF_VCC
Definition: ad77681.h:453
spi_eng_init_param
struct spi_engine_init_param spi_eng_init_param
Definition: ad77681evb.c:60
AD77681_CRC
@ AD77681_CRC
Definition: ad77681.h:390
AD77681_SPI_CS
#define AD77681_SPI_CS
Definition: parameters.h:53
spi_eng_platform_ops
const struct no_os_spi_platform_ops spi_eng_platform_ops
Spi engine platform specific SPI platform ops structure.
Definition: spi_engine.c:63
AD77681_SINC5_FIR_DECx32
@ AD77681_SINC5_FIR_DECx32
Definition: ad77681.h:406
AD77681_CONV_16BIT
@ AD77681_CONV_16BIT
Definition: ad77681.h:374
AD77681_MCLK_DIV_8
@ AD77681_MCLK_DIV_8
Definition: ad77681.h:359
AD77681_SPI_ENG_REF_CLK_FREQ_HZ
#define AD77681_SPI_ENG_REF_CLK_FREQ_HZ
Definition: parameters.h:54
AD77681_AINp_ENABLED
@ AD77681_AINp_ENABLED
Definition: ad77681.h:433
SPI_ENGINE
@ SPI_ENGINE
Definition: spi_extra.h:70