diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2018-01-16 14:50:13 +0100 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-23 05:25:08 -0800 |
commit | 96a7e9fe8120e81a40fe7fe208d17cff80f1a4b9 (patch) | |
tree | b1a31df59d7be459162f03e67bc3548ad3a61b6e /include/fpsensor.h | |
parent | a70227296b701212142ec93c4e03d3547ca8d390 (diff) | |
download | chrome-ec-96a7e9fe8120e81a40fe7fe208d17cff80f1a4b9.tar.gz |
fpsensor: update interface
Update the FP MCU interface to include a few convenient diagnostics
functions for factory testing.
It's mostly backward compatible, but overall this interface never
shipped in anything, so not a big deal regardless.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=b:71986991
TEST=ectool --name=cros_fp fpinfo && ectool --name=cros_fp fpcheckpixels
CQ-DEPEND=CL:*546799
Change-Id: Ic641f891ace02d79af9339cf6cb59a2960e506a7
Reviewed-on: https://chromium-review.googlesource.com/873924
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/fpsensor.h')
-rw-r--r-- | include/fpsensor.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fpsensor.h b/include/fpsensor.h index 66b00b50d9..3a77803223 100644 --- a/include/fpsensor.h +++ b/include/fpsensor.h @@ -84,4 +84,13 @@ enum finger_state fp_sensor_finger_status(void); #define FP_SENSOR_LOW_SENSOR_COVERAGE 3 int fp_sensor_acquire_image(uint8_t *image_data); +/* + * Acquires a fingerprint image with specific capture mode. + * + * Same as the fp_sensor_acquire_image function above, + * excepted 'mode' can be set to one of the FP_CAPTURE_ constants + * to get a specific image type (e.g. a pattern) rather than the default one. + */ +int fp_sensor_acquire_image_with_mode(uint8_t *image_data, int mode); + #endif /* __CROS_EC_FPSENSOR_H */ |