blob: 695228898b0dad5dcbb9d9d2123c4d81417ea499 (
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
|
/* 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
/* 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 */
|