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

Implementation of Main Function. More...

#include <inttypes.h>
#include "app_config.h"
#include "ad9361_api.h"
#include "parameters.h"
#include "no-os/spi.h"
#include "no-os/gpio.h"
#include "no-os/delay.h"
#include "irq_extra.h"
#include "axi_adc_core.h"
#include "axi_dac_core.h"
#include "axi_dmac.h"
#include "no-os/error.h"
Include dependency graph for main.c:

Macros

#define AD9361_ADC_DAC_BYTES_PER_SAMPLE   2
 

Functions

int main (void)
 main More...
 

Variables

struct axi_adc_init rx_adc_init
 
struct axi_dac_init tx_dac_init
 
struct axi_dmac_init rx_dmac_init
 
struct axi_dmacrx_dmac
 
struct axi_dmac_init tx_dmac_init
 
struct axi_dmactx_dmac
 
AD9361_InitParam default_init_param
 
AD9361_RXFIRConfig rx_fir_config
 
AD9361_TXFIRConfig tx_fir_config
 
struct ad9361_rf_phyad9361_phy
 

Detailed Description

Implementation of Main Function.

Author
DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2013(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

◆ AD9361_ADC_DAC_BYTES_PER_SAMPLE

#define AD9361_ADC_DAC_BYTES_PER_SAMPLE   2

Function Documentation

◆ main()

int main ( void  )

main

Variable Documentation

◆ ad9361_phy

struct ad9361_rf_phy* ad9361_phy

◆ default_init_param

AD9361_InitParam default_init_param

◆ rx_adc_init

struct axi_adc_init rx_adc_init
Initial value:
= {
"cf-ad9361-lpc",
4
}

◆ rx_dmac

struct axi_dmac* rx_dmac

◆ rx_dmac_init

struct axi_dmac_init rx_dmac_init
Initial value:
= {
"rx_dmac",
CF_AD9361_RX_DMA_BASEADDR,
0
}

◆ rx_fir_config

AD9361_RXFIRConfig rx_fir_config
Initial value:
= {
3,
0,
1,
{
-4, -6, -37, 35, 186, 86, -284, -315,
107, 219, -4, 271, 558, -307, -1182, -356,
658, 157, 207, 1648, 790, -2525, -2553, 748,
865, -476, 3737, 6560, -3583, -14731, -5278, 14819,
14819, -5278, -14731, -3583, 6560, 3737, -476, 865,
748, -2553, -2525, 790, 1648, 207, 157, 658,
-356, -1182, -307, 558, 271, -4, 219, 107,
-315, -284, 86, 186, 35, -37, -6, -4,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0
},
64,
{0, 0, 0, 0, 0, 0},
0
}

◆ tx_dac_init

struct axi_dac_init tx_dac_init
Initial value:
= {
"cf-ad9361-dds-core-lpc",
4,
}

◆ tx_dmac

struct axi_dmac* tx_dmac

◆ tx_dmac_init

struct axi_dmac_init tx_dmac_init
Initial value:
= {
"tx_dmac",
CF_AD9361_TX_DMA_BASEADDR,
}

◆ tx_fir_config

AD9361_TXFIRConfig tx_fir_config
Initial value:
= {
3,
-6,
1,
{
-4, -6, -37, 35, 186, 86, -284, -315,
107, 219, -4, 271, 558, -307, -1182, -356,
658, 157, 207, 1648, 790, -2525, -2553, 748,
865, -476, 3737, 6560, -3583, -14731, -5278, 14819,
14819, -5278, -14731, -3583, 6560, 3737, -476, 865,
748, -2553, -2525, 790, 1648, 207, 157, 658,
-356, -1182, -307, 558, 271, -4, 219, 107,
-315, -284, 86, 186, 35, -37, -6, -4,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0
},
64,
{0, 0, 0, 0, 0, 0},
0
}
TX_CORE_BASEADDR
#define TX_CORE_BASEADDR
Definition: parameters.h:112
DMA_MEM_TO_DEV
@ DMA_MEM_TO_DEV
Definition: axi_dmac.h:76
DMA_CYCLIC
@ DMA_CYCLIC
Definition: axi_dmac.h:80
RX_CORE_BASEADDR
#define RX_CORE_BASEADDR
Definition: parameters.h:68
NULL
#define NULL
Definition: wrapper.h:64
DMA_DEV_TO_MEM
@ DMA_DEV_TO_MEM
Definition: axi_dmac.h:75