Go to the documentation of this file.
52 #define AD9680_REG_INTERFACE_CONF_A 0x000
53 #define AD9680_REG_INTERFACE_CONF_B 0x001
54 #define AD9680_REG_CHIP_ID_LOW 0x004
55 #define AD9680_REG_CHIP_ID_HIGH 0x005
56 #define AD9680_REG_DEVICE_INDEX 0x008
57 #define AD9680_REG_CHIP_DEC_RATIO 0x201
58 #define AD9680_REG_ADC_TEST_MODE 0x550
59 #define AD9680_REG_OUTPUT_MODE 0x561
60 #define AD9680_REG_LINK_CONTROL 0x571
61 #define AD9680_REG_JESD204B_LANE_RATE_CTRL 0x56e
62 #define AD9680_REG_JESD204B_PLL_LOCK_STATUS 0x56f
63 #define AD9680_REG_JESD204B_QUICK_CONFIG 0x570
64 #define AD9680_REG_JESD204B_MF_CTRL 0x58d
65 #define AD9680_REG_JESD204B_CSN_CONFIG 0x58f
66 #define AD9680_REG_JESD204B_SUBCLASS_CONFIG 0x590
67 #define AD9680_REG_JESD204B_LANE_SERD_OUT0_ASSIGN 0x5b2
68 #define AD9680_REG_JESD204B_LANE_SERD_OUT1_ASSIGN 0x5b3
69 #define AD9680_REG_JESD204B_LANE_SERD_OUT2_ASSIGN 0x5b5
70 #define AD9680_REG_JESD204B_LANE_SERD_OUT3_ASSIGN 0x5b6
72 #define AD9680_CHIP_ID 0x0C5
73 #define AD9680_TEST_OFF 0x000
74 #define AD9680_TEST_PN9 0x006
75 #define AD9680_TEST_PN23 0x005
76 #define AD9680_TEST_RAMP 0x00f
77 #define AD9680_FORMAT_2S_COMPLEMENT 0x001
78 #define AD9680_FORMAT_OFFSET_BINARY 0x000
#define AD9680_REG_JESD204B_QUICK_CONFIG
Definition: ad9680.h:63
uint32_t lane_rate_kbps
Definition: ad9680.h:92
int32_t ad9680_spi_read(struct ad9680_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
ad9680_spi_read
Definition: ad9680.c:50
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:82
#define AD9680_CHIP_ID
Definition: ad9680.h:72
Header file of SPI Interface.
#define AD9680_REG_JESD204B_PLL_LOCK_STATUS
Definition: ad9680.h:62
Header file of AD9680 Driver.
#define AD9680_REG_JESD204B_CSN_CONFIG
Definition: ad9680.h:65
Header file of Delay functions.
Definition: ad9361_util.h:75
#define AD9680_REG_LINK_CONTROL
Definition: ad9680.h:60
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: delay.c:130
#define AD9680_REG_JESD204B_SUBCLASS_CONFIG
Definition: ad9680.h:66
#define AD9680_REG_INTERFACE_CONF_A
Definition: ad9680.h:52
#define AD9680_FORMAT_OFFSET_BINARY
Definition: ad9680.h:78
int32_t ad9680_spi_write(struct ad9680_dev *dev, uint16_t reg_addr, uint8_t reg_data)
ad9680_spi_write
Definition: ad9680.c:73
no_os_spi_init_param spi_init
Definition: ad9680.h:90
int32_t ad9680_spi_write(struct ad9680_dev *dev, uint16_t reg_addr, uint8_t reg_data)
ad9680_spi_write
Definition: ad9680.c:73
int32_t ad9680_remove(struct ad9680_dev *dev)
Free the resources allocated by ad9680_setup().
Definition: ad9680.c:193
Structure holding SPI descriptor.
Definition: no_os_spi.h:132
#define AD9680_REG_JESD204B_MF_CTRL
Definition: ad9680.h:64
#define AD9680_TEST_OFF
Definition: ad9680.h:73
#define AD9680_REG_JESD204B_LANE_RATE_CTRL
Definition: ad9680.h:61
#define AD9680_FORMAT_2S_COMPLEMENT
Definition: ad9680.h:77
#define AD9680_REG_OUTPUT_MODE
Definition: ad9680.h:59
int32_t ad9680_spi_read(struct ad9680_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
ad9680_spi_read
Definition: ad9680.c:50
no_os_spi_desc * spi_desc
Definition: ad9680.h:85
int32_t ad9680_remove(struct ad9680_dev *dev)
Free the resources allocated by ad9680_setup().
Definition: ad9680.c:193
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
int32_t ad9680_setup(struct ad9680_dev **device, const struct ad9680_init_param *init_param)
ad9680_setup
Definition: ad9680.c:115
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:70
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:51
int32_t ad9680_test(struct ad9680_dev *dev, uint32_t test_mode)
ad9680_setup
Definition: ad9680.c:95
int32_t ad9680_test(struct ad9680_dev *dev, uint32_t test_mode)
ad9680_setup
Definition: ad9680.c:95
#define AD9680_REG_ADC_TEST_MODE
Definition: ad9680.h:58
int32_t ad9680_setup(struct ad9680_dev **device, const struct ad9680_init_param *init_param)
ad9680_setup
Definition: ad9680.c:115
#define AD9680_REG_CHIP_ID_LOW
Definition: ad9680.h:54
chip_id
Definition: ad9172.h:57
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:112