![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * AD7266/65 SPI ADC driver 0004 * 0005 * Copyright 2012 Analog Devices Inc. 0006 */ 0007 0008 #ifndef __IIO_ADC_AD7266_H__ 0009 #define __IIO_ADC_AD7266_H__ 0010 0011 /** 0012 * enum ad7266_range - AD7266 reference voltage range 0013 * @AD7266_RANGE_VREF: Device is configured for input range 0V - VREF 0014 * (RANGE pin set to low) 0015 * @AD7266_RANGE_2VREF: Device is configured for input range 0V - 2VREF 0016 * (RANGE pin set to high) 0017 */ 0018 enum ad7266_range { 0019 AD7266_RANGE_VREF, 0020 AD7266_RANGE_2VREF, 0021 }; 0022 0023 /** 0024 * enum ad7266_mode - AD7266 sample mode 0025 * @AD7266_MODE_DIFF: Device is configured for full differential mode 0026 * (SGL/DIFF pin set to low, AD0 pin set to low) 0027 * @AD7266_MODE_PSEUDO_DIFF: Device is configured for pseudo differential mode 0028 * (SGL/DIFF pin set to low, AD0 pin set to high) 0029 * @AD7266_MODE_SINGLE_ENDED: Device is configured for single-ended mode 0030 * (SGL/DIFF pin set to high) 0031 */ 0032 enum ad7266_mode { 0033 AD7266_MODE_DIFF, 0034 AD7266_MODE_PSEUDO_DIFF, 0035 AD7266_MODE_SINGLE_ENDED, 0036 }; 0037 0038 /** 0039 * struct ad7266_platform_data - Platform data for the AD7266 driver 0040 * @range: Reference voltage range the device is configured for 0041 * @mode: Sample mode the device is configured for 0042 * @fixed_addr: Whether the address pins are hard-wired 0043 */ 0044 struct ad7266_platform_data { 0045 enum ad7266_range range; 0046 enum ad7266_mode mode; 0047 bool fixed_addr; 0048 }; 0049 0050 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |