forked from SanniZ/fpc1020-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fpc1020.h
45 lines (39 loc) · 1.12 KB
/
fpc1020.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* FPC1020 Touch sensor driver
*
* Copyright (c) 2013 Fingerprint Cards AB <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License Version 2
* as published by the Free Software Foundation.
*/
#ifndef LINUX_SPI_FPC1020_H
#define LINUX_SPI_FPC1020_H
struct fpc1020_platform_data {
int irq_gpio;
int reset_gpio;
int cs_gpio;
int external_supply_mv;
int txout_boost;
};
typedef enum {
FPC1020_MODE_IDLE = 0,
FPC1020_MODE_WAIT_AND_CAPTURE = 1,
FPC1020_MODE_SINGLE_CAPTURE = 2,
FPC1020_MODE_CHECKERBOARD_TEST_NORM = 3,
FPC1020_MODE_CHECKERBOARD_TEST_INV = 4,
FPC1020_MODE_BOARD_TEST_ONE = 5,
FPC1020_MODE_BOARD_TEST_ZERO = 6,
FPC1020_MODE_WAIT_FINGER_DOWN = 7,
FPC1020_MODE_WAIT_FINGER_UP = 8,
FPC1020_MODE_SINGLE_CAPTURE_CAL = 9,
} fpc1020_capture_mode_t;
typedef enum {
FPC1020_CHIP_NONE = 0,
FPC1020_CHIP_1020A = 1,
FPC1020_CHIP_1021A = 2,
FPC1020_CHIP_1021B = 3,
FPC1020_CHIP_1150A = 4,
FPC1020_CHIP_1150B = 5,
FPC1020_CHIP_1150F = 6
} fpc1020_chip_t;
#endif