f94aa354d6
The AD5933 is a high precision impedance converter system solution that combines an on-board frequency generator with a 12-bit, 1 MSPS, analog-to-digital converter (ADC). The frequency generator allows an external complex impedance to be excited with a known frequency. The response signal from the impedance is sampled by the on-board ADC and a discrete Fourier transform (DFT) is processed by an on-chip DSP engine. The DFT algorithm returns a real (R) and imaginary (I) data-word at each output frequency. Changes since V1: Apply list review feedback: Consistently use poll_time_jiffies. Use be|le cpu endian helpers where applicable. Add various comments. Changes since V2: Fix KernelVersion tag in Documentation. Declare ad5933_default_pdata static. Fix typos. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
29 lines
630 B
C
29 lines
630 B
C
/*
|
|
* AD5933 AD5934 Impedance Converter, Network Analyzer
|
|
*
|
|
* Copyright 2011 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2.
|
|
*/
|
|
|
|
#ifndef IIO_ADC_AD5933_H_
|
|
#define IIO_ADC_AD5933_H_
|
|
|
|
/*
|
|
* TODO: struct ad5933_platform_data needs to go into include/linux/iio
|
|
*/
|
|
|
|
/**
|
|
* struct ad5933_platform_data - platform specific data
|
|
* @ext_clk_Hz: the external clock frequency in Hz, if not set
|
|
* the driver uses the internal clock (16.776 MHz)
|
|
* @vref_mv: the external reference voltage in millivolt
|
|
*/
|
|
|
|
struct ad5933_platform_data {
|
|
unsigned long ext_clk_Hz;
|
|
unsigned short vref_mv;
|
|
};
|
|
|
|
#endif /* IIO_ADC_AD5933_H_ */
|