no-OS
|
Header file of AD9680 Driver. More...
#include <stdint.h>
#include "no_os_delay.h"
#include "no_os_spi.h"
#include "jesd204.h"
#include "no_os_util.h"
Go to the source code of this file.
Classes | |
struct | ad9680_dev |
struct | ad9680_init_param |
Functions | |
int32_t | ad9680_spi_read (struct ad9680_dev *dev, uint16_t reg_addr, uint8_t *reg_data) |
ad9680_spi_read More... | |
int32_t | ad9680_spi_write (struct ad9680_dev *dev, uint16_t reg_addr, uint8_t reg_data) |
ad9680_spi_write More... | |
int32_t | ad9680_setup (struct ad9680_dev **device, const struct ad9680_init_param *init_param) |
ad9680_setup More... | |
int32_t | ad9680_setup_jesd_fsm (struct ad9680_dev **device, const struct ad9680_init_param *init_param) |
int32_t | ad9680_remove (struct ad9680_dev *dev) |
Free the resources allocated by ad9680_setup(). More... | |
int32_t | ad9680_test (struct ad9680_dev *dev, uint32_t test_mode) |
Header file of AD9680 Driver.
Copyright 2014-2016(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.
#define AD9680_CHIP_ID 0x0C5 |
#define AD9680_FORMAT_2S_COMPLEMENT 0x001 |
#define AD9680_FORMAT_OFFSET_BINARY 0x000 |
#define AD9680_JESD_LINK_PDN NO_OS_BIT(0) |
#define AD9680_REG_ADC_TEST_MODE 0x550 |
#define AD9680_REG_CHIP_DEC_RATIO 0x201 |
#define AD9680_REG_CHIP_ID_HIGH 0x005 |
#define AD9680_REG_CHIP_ID_LOW 0x004 |
#define AD9680_REG_DEVICE_INDEX 0x008 |
#define AD9680_REG_INTERFACE_CONF_A 0x000 |
#define AD9680_REG_INTERFACE_CONF_B 0x001 |
#define AD9680_REG_JESD204B_CSN_CONFIG 0x58f |
#define AD9680_REG_JESD204B_LANE_RATE_CTRL 0x56e |
#define AD9680_REG_JESD204B_LANE_SERD_OUT0_ASSIGN 0x5b2 |
#define AD9680_REG_JESD204B_LANE_SERD_OUT1_ASSIGN 0x5b3 |
#define AD9680_REG_JESD204B_LANE_SERD_OUT2_ASSIGN 0x5b5 |
#define AD9680_REG_JESD204B_LANE_SERD_OUT3_ASSIGN 0x5b6 |
#define AD9680_REG_JESD204B_MF_CTRL 0x58d |
#define AD9680_REG_JESD204B_PLL_LOCK_STATUS 0x56f |
#define AD9680_REG_JESD204B_QUICK_CONFIG 0x570 |
#define AD9680_REG_JESD204B_SUBCLASS_CONFIG 0x590 |
#define AD9680_REG_JESD_LINK_CTRL1_REG 0x571 |
#define AD9680_REG_LINK_CONTROL 0x571 |
#define AD9680_REG_OUTPUT_MODE 0x561 |
#define AD9680_SYSREF_CONT 1 /* Continuous Sysref Synchronisation */ |
#define AD9680_SYSREF_MON 3 /* SYSREF monitor Mode */ |
#define AD9680_SYSREF_NONE 0 /* No SYSREF Support */ |
#define AD9680_SYSREF_ONESHOT 2 /* ONE-SHOT SYSREF */ |
#define AD9680_TEST_OFF 0x000 |
#define AD9680_TEST_PN23 0x005 |
#define AD9680_TEST_PN9 0x006 |
#define AD9680_TEST_RAMP 0x00f |
int32_t ad9680_remove | ( | struct ad9680_dev * | dev | ) |
Free the resources allocated by ad9680_setup().
dev | - The device structure. |
int32_t ad9680_setup | ( | struct ad9680_dev ** | device, |
const struct ad9680_init_param * | init_param | ||
) |
ad9680_setup
int32_t ad9680_setup_jesd_fsm | ( | struct ad9680_dev ** | device, |
const struct ad9680_init_param * | init_param | ||
) |
int32_t ad9680_spi_read | ( | struct ad9680_dev * | dev, |
uint16_t | reg_addr, | ||
uint8_t * | reg_data | ||
) |
ad9680_spi_read
int32_t ad9680_spi_write | ( | struct ad9680_dev * | dev, |
uint16_t | reg_addr, | ||
uint8_t | reg_data | ||
) |
ad9680_spi_write
int32_t ad9680_test | ( | struct ad9680_dev * | dev, |
uint32_t | test_mode | ||
) |