|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
Biometrics emulator test control functions. More...
Functions | |
| void | biometrics_emul_set_match_score (const struct device *dev, int score) |
| Set the match score for the biometrics emulator. | |
| void | biometrics_emul_set_match_id (const struct device *dev, int id) |
| Set the template ID for identification matches. | |
| void | biometrics_emul_set_match_fail (const struct device *dev, bool fail) |
| Set whether match operations should fail. | |
| void | biometrics_emul_set_capture_timeout (const struct device *dev, bool timeout) |
| Set whether capture operations should timeout. | |
| void | biometrics_emul_set_image_quality (const struct device *dev, int quality) |
| Set the image quality score. | |
| enum biometric_led_state | biometrics_emul_get_led_state (const struct device *dev) |
| Get the current LED state. | |
Biometrics emulator test control functions.
| enum biometric_led_state biometrics_emul_get_led_state | ( | const struct device * | dev | ) |
#include <zephyr/drivers/biometrics/emul.h>
Get the current LED state.
Retrieves the current LED state that was set via biometric_led_control(). Used for verifying LED control commands.
| dev | Pointer to the biometrics device |
#include <zephyr/drivers/biometrics/emul.h>
Set whether capture operations should timeout.
Configures the emulator to simulate capture timeouts. When enabled, enrollment capture operations will return -ETIMEDOUT.
| dev | Pointer to the biometrics device |
| timeout | True to simulate timeout, false for normal operation |
| void biometrics_emul_set_image_quality | ( | const struct device * | dev, |
| int | quality ) |
#include <zephyr/drivers/biometrics/emul.h>
Set the image quality score.
Configures the image quality score that will be returned by capture and match operations. Used for testing quality feedback.
| dev | Pointer to the biometrics device |
| quality | Quality score (0-100) |
#include <zephyr/drivers/biometrics/emul.h>
Set whether match operations should fail.
Configures the emulator to fail match operations with -ENOENT. Used for testing match failure scenarios.
| dev | Pointer to the biometrics device |
| fail | True to fail match operations, false for normal operation |
| void biometrics_emul_set_match_id | ( | const struct device * | dev, |
| int | id ) |
#include <zephyr/drivers/biometrics/emul.h>
Set the template ID for identification matches.
Configures which template ID will be returned when performing an IDENTIFY match operation. Used for testing identification scenarios.
| dev | Pointer to the biometrics device |
| id | Template ID to return on successful match |
| void biometrics_emul_set_match_score | ( | const struct device * | dev, |
| int | score ) |
#include <zephyr/drivers/biometrics/emul.h>
Set the match score for the biometrics emulator.
Configures the confidence/match score that will be returned by the next match operation. Used for testing match verification and identification.
| dev | Pointer to the biometrics device |
| score | Match score to return (sensor-specific scale) |