File: ad7746.h

package info (click to toggle)
linux 3.2.73-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 692,996 kB
  • sloc: ansic: 9,719,677; asm: 244,034; xml: 40,377; makefile: 23,845; perl: 16,079; python: 4,929; sh: 4,425; cpp: 3,598; yacc: 2,979; lex: 1,726; awk: 708; pascal: 231; lisp: 218; sed: 30
file content (29 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (29)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * AD7746 capacitive sensor driver supporting AD7745, AD7746 and AD7747
 *
 * Copyright 2011 Analog Devices Inc.
 *
 * Licensed under the GPL-2.
 */

#ifndef IIO_CDC_AD7746_H_
#define IIO_CDC_AD7746_H_

/*
 * TODO: struct ad7746_platform_data needs to go into include/linux/iio
 */

#define AD7466_EXCLVL_0		0 /* +-VDD/8 */
#define AD7466_EXCLVL_1		1 /* +-VDD/4 */
#define AD7466_EXCLVL_2		2 /* +-VDD * 3/8 */
#define AD7466_EXCLVL_3		3 /* +-VDD/2 */

struct ad7746_platform_data {
	unsigned char exclvl;	/*Excitation Voltage Level */
	bool exca_en;		/* enables EXCA pin as the excitation output */
	bool exca_inv_en;	/* enables /EXCA pin as the excitation output */
	bool excb_en;		/* enables EXCB pin as the excitation output */
	bool excb_inv_en;	/* enables /EXCB pin as the excitation output */
};

#endif /* IIO_CDC_AD7746_H_ */