blob: 399c75118b35ef954a5d0074618e7a6f46ec64b1 (
plain)
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
49
50
51
|
/* Copyright 2017 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef __CROS_EC_FPC1145_PRIVATE_H
#define __CROS_EC_FPC1145_PRIVATE_H
#include <stdint.h>
/**
* The hardware ID is 16-bits. All 114x FPC sensors (including FPC1145) are
* detected with the pattern 0x1400 and mask 0xFFF0. All supported variants of
* the 1145 (0x140B, 0x140C, and 0x1401) should be detected as part of the FPC
* 1140 family with identical functionality.
* See http://b/150407388 for additional details.
*/
#define FP_SENSOR_HWID 0x140
/* Sensor type name */
#define FP_SENSOR_NAME "FPC1145"
/* Sensor pixel resolution */
#define FP_SENSOR_RES_Y 192
#define FP_SENSOR_RES_X 56
#define FP_SENSOR_RES_BPP 8
/* Acquired finger frame definitions */
#define FP_SENSOR_IMAGE_SIZE_MODE_VENDOR (35460)
#define FP_SENSOR_IMAGE_SIZE_MODE_SIMPLE (13356)
/*
* Size of the captured image in MQT mode. If you this is modified the
* corresponding value in the MQT tool fputils.py must be changed too.
* See b/111443750 for context.
*/
#define FP_SENSOR_IMAGE_SIZE_MODE_QUAL (24408)
#define FP_SENSOR_IMAGE_SIZE FP_SENSOR_IMAGE_SIZE_MODE_VENDOR
#define FP_SENSOR_IMAGE_OFFSET 2340
/* Opaque FPC context */
#define FP_SENSOR_CONTEXT_SIZE 4944
/* Algorithm buffer sizes */
#define FP_ALGORITHM_ENROLLMENT_SIZE 28
#define FP_ALGORITHM_TEMPLATE_SIZE 47552
/* Max number of templates stored / matched against */
#define FP_MAX_FINGER_COUNT 5
#endif /* __CROS_EC_FPC1145_PRIVATE_H */
|