ad9832.h (921B)
1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * AD9832 SPI DDS driver 4 * 5 * Copyright 2011 Analog Devices Inc. 6 */ 7#ifndef IIO_DDS_AD9832_H_ 8#define IIO_DDS_AD9832_H_ 9 10/* 11 * TODO: struct ad9832_platform_data needs to go into include/linux/iio 12 */ 13 14/** 15 * struct ad9832_platform_data - platform specific information 16 * @mclk: master clock in Hz 17 * @freq0: power up freq0 tuning word in Hz 18 * @freq1: power up freq1 tuning word in Hz 19 * @phase0: power up phase0 value [0..4095] correlates with 0..2PI 20 * @phase1: power up phase1 value [0..4095] correlates with 0..2PI 21 * @phase2: power up phase2 value [0..4095] correlates with 0..2PI 22 * @phase3: power up phase3 value [0..4095] correlates with 0..2PI 23 */ 24 25struct ad9832_platform_data { 26 unsigned long freq0; 27 unsigned long freq1; 28 unsigned short phase0; 29 unsigned short phase1; 30 unsigned short phase2; 31 unsigned short phase3; 32}; 33 34#endif /* IIO_DDS_AD9832_H_ */