summaryrefslogtreecommitdiff
path: root/driver/fingerprint/fpc/libfp/fpc1145_private.h
blob: 91b072d6a26a8ac24eb3c5b0bc3ef027c4d7f66a (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
/* 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 16-bit hardware ID is 0x140y */
#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 */