Go to the documentation of this file.
52 #define AD9625_REG_CHIP_PORT_CONF 0x000
53 #define AD9625_REG_CHIP_ID 0x001
54 #define AD9625_REG_POWER_MODE 0x008
55 #define AD9625_REG_PLL_STATUS 0x00A
56 #define AD9625_REG_TEST_CNTRL 0x00D
57 #define AD9625_REG_OUTPUT_MODE 0x014
58 #define AD9625_REG_OUTPUT_ADJUST 0x015
59 #define AD9625_REG_SYSREF_CONTROL 0x03A
60 #define AD9625_REG_JESD204B_LINK_CNTRL_1 0x05F
61 #define AD9625_REG_JESD204B_CONFIGURATION 0x072
62 #define AD9625_REG_JESD204B_LANE_POWER_MODE 0x080
63 #define AD9625_REG_TRANSFER 0x0FF
64 #define AD9625_REG_IRQ_STATUS 0x100
65 #define AD9625_REG_DIVCLK_OUT_CNTRL 0x120
66 #define AD9625_REG_SYSREF_SETUP_TIME_GUARDBAND 0x13C
68 #define AD9625_CHIP_ID 0x041
70 #define AD9625_TEST_OFF 0x000
71 #define AD9625_TEST_MID_SCALE 0x001
72 #define AD9625_TEST_POS_FSCALE 0x002
73 #define AD9625_TEST_NEG_FSCALE 0x003
74 #define AD9625_TEST_CHECKBOARD 0x004
75 #define AD9625_TEST_PNLONG 0x005
76 #define AD9625_TEST_ONE2ZERO 0x007
77 #define AD9625_TEST_PATTERN 0x008
78 #define AD9625_TEST_RAMP 0x00F
int32_t ad9625_spi_read(struct ad9625_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
ad9625_spi_read
Definition: ad9625.c:51
struct no_os_spi_desc * spi_desc
Definition: ad9625.h:94
int32_t ad9625_spi_read(struct ad9625_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
ad9625_spi_read
Definition: ad9625.c:51
#define AD9625_REG_TRANSFER
Definition: ad9625.h:63
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:165
#define AD9625_REG_CHIP_ID
Definition: ad9625.h:53
Header file of SPI Interface.
Header file of AD9625 Driver.
int32_t ad9625_test(struct ad9625_dev *dev, uint32_t test_mode)
ad9625_test
Definition: ad9625.c:163
#define AD9625_REG_PLL_STATUS
Definition: ad9625.h:55
uint32_t test_samples[4]
Definition: ad9625.h:89
Header file of Delay functions.
#define AD9625_REG_JESD204B_LANE_POWER_MODE
Definition: ad9625.h:62
int32_t ad9625_setup(struct ad9625_dev **device, struct ad9625_init_param init_param)
ad9625_setup
Definition: ad9625.c:94
Definition: ad9361_util.h:75
#define AD9625_REG_JESD204B_LINK_CNTRL_1
Definition: ad9625.h:60
uint32_t lane_rate_kbps
Definition: ad9625.h:88
#define AD9625_REG_DIVCLK_OUT_CNTRL
Definition: ad9625.h:65
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
int32_t ad9625_spi_write(struct ad9625_dev *dev, uint16_t reg_addr, uint8_t reg_data)
ad9625_spi_write
Definition: ad9625.c:73
#define AD9625_REG_POWER_MODE
Definition: ad9625.h:54
#define AD9625_REG_TEST_CNTRL
Definition: ad9625.h:56
Structure holding SPI descriptor.
Definition: no_os_spi.h:177
int32_t ad9625_spi_write(struct ad9625_dev *dev, uint16_t reg_addr, uint8_t reg_data)
ad9625_spi_write
Definition: ad9625.c:73
#define AD9625_CHIP_ID
Definition: ad9625.h:68
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:49
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:75
int32_t ad9625_test(struct ad9625_dev *dev, uint32_t test_mode)
ad9625_test
Definition: ad9625.c:163
struct no_os_spi_init_param spi_init
Definition: ad9625.h:86
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
int32_t ad9625_setup(struct ad9625_dev **device, struct ad9625_init_param init_param)
ad9625_setup
Definition: ad9625.c:94
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:122
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:58
#define AD9625_REG_CHIP_PORT_CONF
Definition: ad9625.h:52
#define AD9625_REG_OUTPUT_MODE
Definition: ad9625.h:57
int32_t ad9625_remove(struct ad9625_dev *dev)
ad9625_remove
Definition: ad9625.c:149
#define AD9625_REG_OUTPUT_ADJUST
Definition: ad9625.h:58
int32_t ad9625_remove(struct ad9625_dev *dev)
ad9625_remove
Definition: ad9625.c:149
chip_id
Definition: ad9172.h:57
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:131