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 "xilinx_irq.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

uint16_t adc_buffer [ADC_BUFFER_SAMPLES *ADC_CHANNELS]
 
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.

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

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 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

◆ adc_buffer

uint16_t adc_buffer[ADC_BUFFER_SAMPLES *ADC_CHANNELS]

◆ default_init_param

AD9361_InitParam default_init_param

◆ rx_adc_init

struct axi_adc_init rx_adc_init
Initial value:
= {
.name = "cf-ad9361-lpc",
.num_channels = 4,
.num_slave_channels = 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,
}

◆ 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,
3
}

◆ 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
}
IRQ_DISABLED
@ IRQ_DISABLED
Definition: axi_dmac.h:79
TX_CORE_BASEADDR
#define TX_CORE_BASEADDR
Definition: parameters.h:93
RX_CORE_BASEADDR
#define RX_CORE_BASEADDR
Definition: parameters.h:63
NULL
#define NULL
Definition: wrapper.h:64