Go to the documentation of this file.
50 #define AD9656_SPI_CONFIG 0x000
51 #define AD9656_REG_CHIP_ID 0x001
52 #define AD9656_REG_DEVICE_INDEX 0x005
53 #define AD9656_REG_ADC_TEST_MODE 0x00D
54 #define AD9656_REG_OUTPUT_MODE 0x014
55 #define AD9656_REG_USER_TEST_PATTERN_1_LSB 0x19
56 #define AD9656_REG_USER_TEST_PATTERN_1_MSB 0x1A
57 #define AD9656_REG_USER_TEST_PATTERN_2_LSB 0x1B
58 #define AD9656_REG_USER_TEST_PATTERN_2_MSB 0x1C
59 #define AD9656_REG_LINK_CONTROL 0x05F
60 #define AD9656_REG_JESD204B_LANE_RATE_CTRL 0x021
61 #define AD9656_REG_JESD204B_PLL_LOCK_STATUS 0x00A
62 #define AD9656_REG_JESD204B_QUICK_CONFIG 0x05E
63 #define AD9656_REG_JESD204B_SCR_L 0x06E
64 #define AD9656_REG_JESD204B_MF_CTRL 0x070
65 #define AD9656_REG_JESD204B_M_CTRL 0x071
66 #define AD9656_REG_JESD204B_CSN_CONFIG 0x072
67 #define AD9656_REG_JESD204B_SUBCLASS_CONFIG 0x073
68 #define AD9656_REG_JESD204B_LANE_SERD_OUT1_OUT0_ASSIGN 0x082
69 #define AD9656_REG_JESD204B_LANE_SERD_OUT3_OUT2_ASSIGN 0x083
71 #define AD9656_CHIP_ID 0x0C0
72 #define AD9656_TEST_OFF 0x000
73 #define AD9656_TEST_PN9 0x006
74 #define AD9656_TEST_PN23 0x005
75 #define AD9656_TEST_USER_INPUT 0x048
76 #define AD9656_FORMAT_2S_COMPLEMENT 0x001
77 #define AD9656_FORMAT_OFFSET_BINARY 0x000
#define AD9656_REG_JESD204B_SCR_L
Definition: ad9656.h:63
int32_t ad9656_remove(struct ad9656_dev *dev)
Free the resources allocated by ad9656_setup().
Definition: ad9656.c:287
#define AD9656_REG_JESD204B_CSN_CONFIG
Definition: ad9656.h:66
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
Header file of SPI Interface.
#define AD9656_REG_JESD204B_MF_CTRL
Definition: ad9656.h:64
struct no_os_spi_desc * spi_desc
Definition: ad9656.h:84
Header file of Delay functions.
Definition: ad9361_util.h:75
#define AD9656_FORMAT_2S_COMPLEMENT
Definition: ad9656.h:76
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:60
#define AD9656_REG_USER_TEST_PATTERN_2_LSB
Definition: ad9656.h:57
#define AD9656_CHIP_ID
Definition: ad9656.h:71
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
#define AD9656_FORMAT_OFFSET_BINARY
Definition: ad9656.h:77
int32_t ad9656_reg_read(struct ad9656_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
Reads from the ad9656 that is contected to the SPI.
Definition: ad9656.c:58
#define AD9656_REG_JESD204B_PLL_LOCK_STATUS
Definition: ad9656.h:61
#define AD9656_REG_ADC_TEST_MODE
Definition: ad9656.h:53
#define AD9656_REG_OUTPUT_MODE
Definition: ad9656.h:54
#define AD9656_REG_JESD204B_SUBCLASS_CONFIG
Definition: ad9656.h:67
uint32_t lane_rate_kbps
Definition: ad9656.h:91
Structure holding SPI descriptor.
Definition: no_os_spi.h:177
#define AD9656_SPI_CONFIG
Definition: ad9656.h:50
#define AD9656_REG_USER_TEST_PATTERN_1_MSB
Definition: ad9656.h:56
int32_t ad9656_user_input_test(struct ad9656_dev *dev, uint32_t test_mode, struct ad9656_user_input_test_pattern user_input_test_pattern)
Launch the user input test functionality for the receive path for the ad9656 chip....
Definition: ad9656.c:147
int32_t ad9656_setup(struct ad9656_dev **device, const struct ad9656_init_param *init_param)
Setup the working parameters of the ad9656 chip.
Definition: ad9656.c:183
int32_t ad9656_reg_write(struct ad9656_dev *dev, uint16_t reg_addr, uint8_t reg_data)
Write to the ad9656 that is conected to the SPI.
Definition: ad9656.c:91
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
Header file of AD9656 Driver.
int32_t ad9656_JESD204_test(struct ad9656_dev *dev, uint32_t test_mode)
Launch the JESD204 test functionality for the receive path for the ad9656 chip.
Definition: ad9656.c:118
#define AD9656_REG_USER_TEST_PATTERN_1_LSB
Definition: ad9656.h:55
#define AD9656_TEST_OFF
Definition: ad9656.h:72
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
#define AD9656_REG_JESD204B_QUICK_CONFIG
Definition: ad9656.h:62
#define AD9656_REG_CHIP_ID
Definition: ad9656.h:51
int32_t ad9656_reg_read(struct ad9656_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
Reads from the ad9656 that is contected to the SPI.
Definition: ad9656.c:58
#define AD9656_REG_JESD204B_LANE_RATE_CTRL
Definition: ad9656.h:60
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 ad9656_user_input_test(struct ad9656_dev *dev, uint32_t test_mode, struct ad9656_user_input_test_pattern user_input_test_pattern)
Launch the user input test functionality for the receive path for the ad9656 chip....
Definition: ad9656.c:147
int32_t ad9656_JESD204_test(struct ad9656_dev *dev, uint32_t test_mode)
Launch the JESD204 test functionality for the receive path for the ad9656 chip.
Definition: ad9656.c:118
struct no_os_spi_init_param spi_init
Definition: ad9656.h:89
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 AD9656_REG_JESD204B_M_CTRL
Definition: ad9656.h:65
int32_t ad9656_setup(struct ad9656_dev **device, const struct ad9656_init_param *init_param)
Setup the working parameters of the ad9656 chip.
Definition: ad9656.c:183
int32_t ad9656_remove(struct ad9656_dev *dev)
Free the resources allocated by ad9656_setup().
Definition: ad9656.c:287
int32_t ad9656_reg_write(struct ad9656_dev *dev, uint16_t reg_addr, uint8_t reg_data)
Write to the ad9656 that is conected to the SPI.
Definition: ad9656.c:91
#define AD9656_REG_LINK_CONTROL
Definition: ad9656.h:59
#define AD9656_REG_USER_TEST_PATTERN_2_MSB
Definition: ad9656.h:58
chip_id
Definition: ad9172.h:57
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:131