summaryrefslogtreecommitdiff
path: root/driver/fingerprint/fpc/bep/fpc1035_private.h
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-10-17 16:29:26 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-28 23:06:14 +0000
commit5ef39980a07bd60c9f39052f9dda6af350e41823 (patch)
tree39ed18545dfb54d0bd6186a153505ff1c17776e6 /driver/fingerprint/fpc/bep/fpc1035_private.h
parentc58ea116e8d0bfca98b2b208eb9dc40f01832579 (diff)
downloadchrome-ec-5ef39980a07bd60c9f39052f9dda6af350e41823.tar.gz
fpsensor: Copy BEP and libfp source files from private repo
These source files have been approved to be released publicly (see http://b/137848573#comment20). There were no source changes in the move, except for small changes to the Makefiles to adjust for the move. For future "git blame"s refer to the history of the files in the private repo if you need to access the full history. BRANCH=none BUG=b:137848573 TEST=make buildall -j Cq-Depend: chrome-internal:2005127 Change-Id: I1a809ac5a4d95637840ee47712e9c80a40a445c5 Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1869531
Diffstat (limited to 'driver/fingerprint/fpc/bep/fpc1035_private.h')
-rw-r--r--driver/fingerprint/fpc/bep/fpc1035_private.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/driver/fingerprint/fpc/bep/fpc1035_private.h b/driver/fingerprint/fpc/bep/fpc1035_private.h
new file mode 100644
index 0000000000..61c423c6b8
--- /dev/null
+++ b/driver/fingerprint/fpc/bep/fpc1035_private.h
@@ -0,0 +1,52 @@
+/* Copyright 2019 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_FPC1035_PRIVATE_H
+#define __CROS_EC_FPC1035_PRIVATE_H
+
+/* Define sensor type */
+#define FP_SENSOR_CONFIG_FPC1035
+
+/* The 16-bit hardware ID is 0x011y */
+#define FP_SENSOR_HWID 0x011
+
+/* Sensor type name */
+#define FP_SENSOR_NAME "FPC1035"
+
+/* Sensor pixel resolution */
+#define FP_SENSOR_RES_X (112) /**< Sensor width */
+#define FP_SENSOR_RES_Y (88) /**< Sensor height */
+#define FP_SENSOR_RES_BPP (8) /**< Resolution bits per pixel */
+
+/*
+ * Sensor image size
+ *
+ * Value from fpc_bep_image_get_buffer_size(): (112*88)+660
+ */
+#define FP_SENSOR_IMAGE_SIZE (10516)
+#define FP_SENSOR_REAL_IMAGE_SIZE (FP_SENSOR_RES_X * FP_SENSOR_RES_Y)
+/* Offset of image data in fp_buffer */
+#define FP_SENSOR_IMAGE_OFFSET (400)
+
+/*
+ * Constant value for the enrollment data size
+ *
+ * Size of private fp_bio_enrollment_t
+ */
+#define FP_ALGORITHM_ENROLLMENT_SIZE (4)
+
+/*
+ * Constant value corresponding to the maximum template size
+ * for FPC1035 sensor. Client template memory allocation must
+ * have this size. This includes extra memory for template update.
+ *
+ * Template size + alignment padding + size of template size variable
+ */
+#define FP_ALGORITHM_TEMPLATE_SIZE (14373 + 3 + 4)
+
+/* Max number of templates stored / matched against */
+#define FP_MAX_FINGER_COUNT (5)
+
+#endif /* __CROS_EC_FPC1035_PRIVATE_H */