no-OS
|
Implementation of the program's main function. More...
#include <stdio.h>
#include "xil_cache.h"
#include "xparameters.h"
#include "no_os_spi.h"
#include "xilinx_spi.h"
#include "no_os_delay.h"
#include "no_os_error.h"
#include "axi_adc_core.h"
#include "axi_dmac.h"
#include "no_os_axi_io.h"
#include "ad9467.h"
#include "ad9517.h"
#include "parameters.h"
Macros | |
#define | CF_REG_DELAY_CTRL 0x60 |
#define | CF_REG_DELAY_STATUS 0x20 |
#define | CF_REG_DATA_MONITOR 0x404 |
#define | CF_DATA_MONITOR_PN_ERR (1 << 2) |
#define | CF_DATA_MONITOR_PN_SYNC (1 << 1) |
#define | CF_DATA_MONITOR_PN_OVER_RNG (1 << 0) |
Enumerations | |
enum | type_output_modes { OFFSET_BINARY = 0, TWOS_COMPLEMENT, GRAY_CODE } |
enum | type_test_modes { TEST_DISABLE = 0, MIDSCALE, POS_FULLSCALE, NEG_FULLSCALE, CHECKERBOARD, PN_23_SEQUENCE, PN_9_SEQUENCE, ONE_ZERO_TOGGLE } |
Functions | |
void | adc_test (struct axi_adc *adc, struct axi_dmac *dma, struct ad9467_dev *dev, uint32_t mode, uint32_t format) |
void | display_test_mode (uint32_t mode, uint32_t format) |
int | main () |
Main function. More... | |
Variables | |
enum type_output_modes | type_output_modes |
enum type_test_modes | type_test_modes |
struct ad9517_platform_data | ad9517_pdata_lpc |
struct ad9517_lvpecl_channel_spec | ad9517_lvpecl_channels [] |
struct ad9517_lvds_cmos_channel_spec | ad9517_lvds_cmos_channels [] |
Implementation of the program's main function.
Copyright 2020(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:
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.
SVN Revision: $WCREV$
#define CF_DATA_MONITOR_PN_ERR (1 << 2) |
#define CF_DATA_MONITOR_PN_OVER_RNG (1 << 0) |
#define CF_DATA_MONITOR_PN_SYNC (1 << 1) |
#define CF_REG_DATA_MONITOR 0x404 |
#define CF_REG_DELAY_CTRL 0x60 |
#define CF_REG_DELAY_STATUS 0x20 |
enum type_output_modes |
enum type_test_modes |
void adc_test | ( | struct axi_adc * | adc, |
struct axi_dmac * | dma, | ||
struct ad9467_dev * | dev, | ||
uint32_t | mode, | ||
uint32_t | format | ||
) |
void display_test_mode | ( | uint32_t | mode, |
uint32_t | format | ||
) |
int main | ( | ) |
Main function.
struct ad9517_lvds_cmos_channel_spec ad9517_lvds_cmos_channels[] |
struct ad9517_lvpecl_channel_spec ad9517_lvpecl_channels[] |
struct ad9517_platform_data ad9517_pdata_lpc |