2 * AD9832 SPI DDS driver
4 * Copyright 2011 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
8 #ifndef IIO_DDS_AD9832_H_
9 #define IIO_DDS_AD9832_H_
12 * TODO: struct ad9832_platform_data needs to go into include/linux/iio
16 * struct ad9832_platform_data - platform specific information
17 * @mclk: master clock in Hz
18 * @freq0: power up freq0 tuning word in Hz
19 * @freq1: power up freq1 tuning word in Hz
20 * @phase0: power up phase0 value [0..4095] correlates with 0..2PI
21 * @phase1: power up phase1 value [0..4095] correlates with 0..2PI
22 * @phase2: power up phase2 value [0..4095] correlates with 0..2PI
23 * @phase3: power up phase3 value [0..4095] correlates with 0..2PI
26 struct ad9832_platform_data {
30 unsigned short phase0;
31 unsigned short phase1;
32 unsigned short phase2;
33 unsigned short phase3;
36 #endif /* IIO_DDS_AD9832_H_ */