diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-06-10 15:39:25 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-24 21:12:41 +0000 |
commit | 4f7f1b7fc6eec40094000e77e87f22f512f8321b (patch) | |
tree | 39163a5268377d0d414ab112aa2c406401669b54 /include | |
parent | b1fa948170aa5b5441914797256db6fb04b4464c (diff) | |
download | chrome-ec-4f7f1b7fc6eec40094000e77e87f22f512f8321b.tar.gz |
fpsensor: Refactor fp_command_mode
This refactoring allows us to call fp_command_mode from the debug
console commands and ensure that we're testing the same underlying code
path that the host commands use.
BRANCH=nocturne
BUG=b:124773209
TEST="fpenroll" in hatch FP console
"fpmatch" in hatch FP console
"fpclear" in hatch FP console
TEST=On nocturne:
flash_fp_mcu ec.bin
Enroll fingerprint via UI, lock/unlock, Remove fingerprint via UI
Change-Id: I5e1e314c7f1d67dc663795cafe751545516e9f89
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1652285
Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/fpsensor_state.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fpsensor_state.h b/include/fpsensor_state.h index a07f7a683d..d11af693b5 100644 --- a/include/fpsensor_state.h +++ b/include/fpsensor_state.h @@ -96,4 +96,13 @@ int fp_get_next_event(uint8_t *out); */ int fp_tpm_seed_is_set(void); +/** + * Change the sensor mode. + * + * @param mode new mode to change to + * @param mode_output resulting mode + * @return EC_RES_SUCCESS on success. Error code on failure. + */ +int fp_set_sensor_mode(uint32_t mode, uint32_t *mode_output); + #endif /* __CROS_EC_FPSENSOR_STATE_H */ |