Go to the documentation of this file.
46 #define AD9434_REG_CHIP_PORT_CONF 0x00
47 #define AD9434_REG_CHIP_ID 0x01
48 #define AD9434_REG_CHIP_GRADE 0x02
49 #define AD9434_REG_CHAN_INDEX 0x05
50 #define AD9434_REG_TRANSFER 0xFF
51 #define AD9434_REG_MODES 0x08
52 #define AD9434_REG_TEST_IO 0x0D
53 #define AD9434_REG_ADC_INPUT 0x0F
54 #define AD9434_REG_OFFSET 0x10
55 #define AD9434_REG_OUTPUT_MODE 0x14
56 #define AD9434_REG_OUTPUT_ADJUST 0x15
57 #define AD9434_REG_OUTPUT_PHASE 0x16
58 #define AD9434_REG_OUTPUT_DELAY 0x17
59 #define AD9434_REG_VREF 0x18
60 #define AD9434_REG_ANALOG_INPUT 0x2C
63 #define TRANSFER_SYNC 0x1
66 #define TESTMODE_OFF 0x0
67 #define TESTMODE_MIDSCALE_SHORT 0x1
68 #define TESTMODE_POS_FULLSCALE 0x2
69 #define TESTMODE_NEG_FULLSCALE 0x3
70 #define TESTMODE_ALT_CHECKERBOARD 0x4
71 #define TESTMODE_PN23_SEQ 0x5
72 #define TESTMODE_PN9_SEQ 0x6
73 #define TESTMODE_ONE_ZERO_TOGGLE 0x7
74 #define TESTMODE_USER_DEFINED 0x8
77 #define OUTPUT_MODE_OFFSET_BINARY 0x0
78 #define OUTPUT_MODE_TWOS_COMPLEMENT 0x1
79 #define OUTPUT_MODE_GRAY_CODE 0x2
82 #define OUTPUT_EVEN_ODD_MODE_EN 0x20
83 #define INVERT_DCO_CLK 0x80
85 #define AD9434_CHIP_ID 0x6A
86 #define AD9434_DEF_OUTPUT_MODE 0x00
int32_t ad9434_setup(struct ad9434_dev **device, struct ad9434_init_param init_param)
ad9434_setup
Definition: ad9434.c:137
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:159
int32_t ad9434_spi_write(struct ad9434_dev *dev, uint16_t reg_addr, uint8_t reg_data)
ad9434_spi_write
Definition: ad9434.c:68
Header file of SPI Interface.
int32_t ad9434_spi_read(struct ad9434_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
ad9434_spi_read
Definition: ad9434.c:47
int32_t ad9434_outputmode_set(struct ad9434_dev *dev, uint8_t mode)
ad9434_setup
Definition: ad9434.c:88
Header file of Delay functions.
int32_t ad9434_remove(struct ad9434_dev *dev)
ad9434_remove
Definition: ad9434.c:169
enum no_os_spi_mode mode
Definition: no_os_spi.h:148
int32_t ad9434_outputmode_set(struct ad9434_dev *dev, uint8_t mode)
ad9434_setup
Definition: ad9434.c:88
Definition: ad9361_util.h:69
struct no_os_spi_desc * spi_desc
Definition: ad9434.h:94
int32_t ad9434_remove(struct ad9434_dev *dev)
ad9434_remove
Definition: ad9434.c:169
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
int32_t ad9434_setup(struct ad9434_dev **device, struct ad9434_init_param init_param)
ad9434_setup
Definition: ad9434.c:137
#define TESTMODE_OFF
Definition: ad9265.h:66
#define AD9434_REG_OUTPUT_DELAY
Definition: ad9434.h:58
struct no_os_spi_init_param spi_init
Definition: ad9434.h:99
int32_t ad9434_testmode_set(struct ad9434_dev *dev, uint8_t mode)
ad9434_testmode_set
Definition: ad9434.c:106
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
#define AD9434_REG_OUTPUT_MODE
Definition: ad9434.h:55
int32_t ad9434_spi_write(struct ad9434_dev *dev, uint16_t reg_addr, uint8_t reg_data)
ad9434_spi_write
Definition: ad9434.c:68
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:69
#define TRANSFER_SYNC
Definition: ad9265.h:63
int32_t ad9434_spi_read(struct ad9434_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
ad9434_spi_read
Definition: ad9434.c:47
#define AD9434_CHIP_ID
Definition: ad9434.h:85
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
#define AD9434_DEF_OUTPUT_MODE
Definition: ad9434.h:86
int32_t ad9434_data_delay(struct ad9434_dev *dev, int16_t delay)
ad9434_data_delay
Definition: ad9434.c:124
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:116
#define AD9434_REG_TEST_IO
Definition: ad9434.h:52
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:52
#define AD9434_REG_CHIP_ID
Definition: ad9434.h:47
Header file of AD9434 Driver.
enum no_os_spi_mode mode
Definition: no_os_spi.h:202
int32_t ad9434_testmode_set(struct ad9434_dev *dev, uint8_t mode)
ad9434_testmode_set
Definition: ad9434.c:106
#define AD9434_REG_TRANSFER
Definition: ad9434.h:50
chip_id
Definition: ad9172.h:51
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140