no-OS
Loading...
Searching...
No Matches
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
 

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_dmac * rx_dmac
 
struct axi_dmac_init tx_dmac_init
 
struct axi_dmac * tx_dmac
 
AD9361_InitParam default_init_param
 
AD9361_RXFIRConfig rx_fir_config
 
AD9361_TXFIRConfig tx_fir_config
 
struct ad9361_rf_phy * ad9361_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.

SPDX-License-Identifier: BSD-3-Clause

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
}
#define RX_CORE_BASEADDR
Definition parameters.h:38

◆ 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,
}
@ IRQ_DISABLED
Definition axi_dmac.h:47

◆ 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
}
#define TX_CORE_BASEADDR
Definition parameters.h:61
#define NULL
Definition wrapper.h:67

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