forked from SanniZ/fpc1020-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fpc1020_capture.h
48 lines (32 loc) · 1.48 KB
/
fpc1020_capture.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
46
47
48
/* FPC1020 Touch sensor driver
*
* Copyright (c) 2013,2014 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_CAPTURE_H
#define LINUX_SPI_FPC1020_CAPTURE_H
extern int fpc1020_init_capture(fpc1020_data_t *fpc1020);
extern int fpc1020_write_capture_setup(fpc1020_data_t *fpc1020);
extern int fpc1020_write_test_setup(fpc1020_data_t *fpc1020, u16 pattern);
extern bool fpc1020_capture_check_ready(fpc1020_data_t *fpc1020);
extern int fpc1020_capture_task(fpc1020_data_t *fpc1020);
extern int fpc1020_capture_wait_finger_down(fpc1020_data_t *fpc1020);
extern int fpc1020_capture_wait_finger_up(fpc1020_data_t *fpc1020);
extern int fpc1020_capture_settings(fpc1020_data_t *fpc1020, int select);
extern int fpc1020_capture_set_sample_mode(fpc1020_data_t* fpc1020,
bool single);
extern int fpc1020_capture_set_crop(fpc1020_data_t *fpc1020,
int first_column,
int num_columns,
int first_row,
int num_rows);
extern int fpc1020_capture_buffer(fpc1020_data_t *fpc1020,
u8 *data,
size_t offset,
size_t image_size_bytes);
extern int fpc1020_capture_deferred_task(fpc1020_data_t *fpc1020);
extern int fpc1020_capture_finger_detect_settings(fpc1020_data_t *fpc1020);
#endif /* LINUX_SPI_FPC1020_CAPTURE_H */