fingerprint3 2.0.0.0
|
Error type. More...
Functions | |
void | fingerprint3_cfg_setup (fingerprint3_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | fingerprint3_init (fingerprint3_t *ctx, fingerprint3_cfg_t *cfg) |
Initialization function. | |
uint8_t | fingerprint3_set_config (fingerprint3_t *ctx, uint32_t addr, uint32_t pass) |
Set config function. | |
void | fingerprint3_set_rst_pin (fingerprint3_t *ctx, uint8_t rst_pin) |
Set RST pin state function. | |
void | fingerprint3_generic_write (fingerprint3_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
int32_t | fingerprint3_generic_read (fingerprint3_t *ctx, uint8_t *data_buf, uint16_t max_len) |
Generic read function. | |
uint8_t | fingerprint3_send_package (fingerprint3_t *ctx, uint8_t pkg_id, uint8_t *pkg_content, uint16_t pkg_len) |
Send package function. | |
uint8_t | fingerprint3_finger_indicator (fingerprint3_t *ctx) |
Finger indicator function. | |
uint8_t | fingerprint3_aura_control (fingerprint3_t *ctx, uint8_t control, uint8_t speed, uint8_t color, uint8_t times) |
Aura LED control function. | |
uint8_t | fingerprint3_verify_password (fingerprint3_t *ctx, uint32_t pass) |
Verify password function. | |
uint8_t | fingerprint3_read_product_info (fingerprint3_t *ctx) |
Read product info function. | |
uint8_t | fingerprint3_read_sys_param (fingerprint3_t *ctx) |
Read system parameter function. | |
uint8_t | fingerprint3_set_security_lvl (fingerprint3_t *ctx, uint8_t lvl) |
Set security level function. | |
uint8_t | fingerprint3_hand_shake (fingerprint3_t *ctx) |
Hand shake function. | |
uint8_t | fingerprint3_check_sensor (fingerprint3_t *ctx) |
Check sensor function. | |
uint8_t | fingerprint3_soft_reset (fingerprint3_t *ctx) |
Soft reset function. | |
uint8_t | fingerprint3_read_index_table (fingerprint3_t *ctx, uint8_t *table, uint8_t page) |
Read index table function. | |
uint8_t | fingerprint3_take_image (fingerprint3_t *ctx) |
Take image function. | |
uint8_t | fingerprint3_extract_features (fingerprint3_t *ctx, uint8_t char_buffer) |
Extract features function. | |
uint8_t | fingerprint3_create_template (fingerprint3_t *ctx) |
Create template function. | |
uint8_t | fingerprint3_store_template (fingerprint3_t *ctx, uint8_t char_buffer, uint16_t location) |
Create template function. | |
uint8_t | fingerprint3_delete_template (fingerprint3_t *ctx, uint16_t location) |
Delete template function. | |
uint8_t | fingerprint3_empty_library (fingerprint3_t *ctx) |
Empty the library function. | |
uint8_t | fingerprint3_load_template (fingerprint3_t *ctx, uint8_t char_buffer, uint16_t location) |
Create template function. | |
uint8_t | fingerprint3_match_finger (fingerprint3_t *ctx, uint16_t *score) |
Empty the library function. | |
uint8_t | fingerprint3_search_finger (fingerprint3_t *ctx, uint8_t char_buffer, uint16_t *location, uint16_t *score) |
Empty the library function. | |
Error type.
uint8_t fingerprint3_aura_control | ( | fingerprint3_t * | ctx, |
uint8_t | control, | ||
uint8_t | speed, | ||
uint8_t | color, | ||
uint8_t | times ) |
Aura LED control function.
ctx | Click object. |
control | FINGERPRINT3_AURA_CTRL_ON, FINGERPRINT3_AURA_CTRL_OFF, FINGERPRINT3_AURA_CTRL_BREATH, FINGERPRINT3_AURA_CTRL_FLASH, FINGERPRINT3_AURA_CTRL_GRADUAL_ON or FINGERPRINT3_AURA_CTRL_GRADUAL_OFF |
speed | effective for FINGERPRINT3_AURA_CTRL_BREATH, FINGERPRINT3_AURA_CTRL_FLASH, FINGERPRINT3_AURA_CTRL_GRADUAL_ON, FINGERPRINT3_AURA_CTRL_GRADUAL_OFF 0 to 255, 0 means 5 seconds per cycle |
color | FINGERPRINT3_AURA_LED_RED, FINGERPRINT3_AURA_LED_BLUE or FINGERPRINT3_AURA_LED_PURPLE |
times | effective for FINGERPRINT3_AURA_CTRL_BREATH, FINGERPRINT3_AURA_CTRL_FLASH number of cycles: 0 means infinite or 1 to 255 |
This function controls the LED ring of the sensor.
void fingerprint3_cfg_setup | ( | fingerprint3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
uint8_t fingerprint3_check_sensor | ( | fingerprint3_t * | ctx | ) |
Check sensor function.
ctx | Click object. |
This function checks if sensor is okay.
uint8_t fingerprint3_create_template | ( | fingerprint3_t * | ctx | ) |
Create template function.
ctx | Click object. |
This function combines the features from char_buffer 1 to k into a template k is the char_buffer where the most recent feature extraction was written to the template is written back to char_buffer 1 and 2
uint8_t fingerprint3_delete_template | ( | fingerprint3_t * | ctx, |
uint16_t | location ) |
Delete template function.
ctx | Click object. |
location | Location in flash. |
This function deletes template located at the desired location.
uint8_t fingerprint3_empty_library | ( | fingerprint3_t * | ctx | ) |
Empty the library function.
ctx | Click object. |
This function deletes all the templates.
uint8_t fingerprint3_extract_features | ( | fingerprint3_t * | ctx, |
uint8_t | char_buffer ) |
Extract features function.
ctx | Click object. |
char_buffer | Character buffer - number in the range 1 to 6. |
This function extracts the features from the finger image in the image buffer and writes them into the character buffer indentified by char_buffer
uint8_t fingerprint3_finger_indicator | ( | fingerprint3_t * | ctx | ) |
Finger indicator function.
ctx | Click object. |
int32_t fingerprint3_generic_read | ( | fingerprint3_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void fingerprint3_generic_write | ( | fingerprint3_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t fingerprint3_hand_shake | ( | fingerprint3_t * | ctx | ) |
Hand shake function.
ctx | Click object. |
This function checks if module is okay.
err_t fingerprint3_init | ( | fingerprint3_t * | ctx, |
fingerprint3_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
uint8_t fingerprint3_load_template | ( | fingerprint3_t * | ctx, |
uint8_t | char_buffer, | ||
uint16_t | location ) |
Create template function.
ctx | Click object. |
char_buffer | Character buffer - number in the range 1 to 6. |
location | Location in flash. |
This function loads template from flash in location to char_buffer and char_buffer+1.
uint8_t fingerprint3_match_finger | ( | fingerprint3_t * | ctx, |
uint16_t * | score ) |
Empty the library function.
ctx | Click object. |
score | Reference to write the matching score to. |
This function compares the recently extracted features with the template in character buffer 1 and 2.
uint8_t fingerprint3_read_index_table | ( | fingerprint3_t * | ctx, |
uint8_t * | table, | ||
uint8_t | page ) |
Read index table function.
ctx | Click object. |
table | A pointer to a memory block of at least 32 bytes. |
page | the index page, a number between 0 (inclusive) and 3 (inclusive) index page 0: location 0 to 255 index page 1: location 256 to 511 index page 2: location 512 to 767 index page 3: location 768 to 1023 |
This function reads the index table a bitfield indicating at which location a template is stored.
uint8_t fingerprint3_read_product_info | ( | fingerprint3_t * | ctx | ) |
Read product info function.
ctx | Click object. |
This function reads product info and stores data in the click object product_info structure.
uint8_t fingerprint3_read_sys_param | ( | fingerprint3_t * | ctx | ) |
Read system parameter function.
ctx | Click object. |
This function reads system parameter and stores data in the click object system_parameter structure.
uint8_t fingerprint3_search_finger | ( | fingerprint3_t * | ctx, |
uint8_t | char_buffer, | ||
uint16_t * | location, | ||
uint16_t * | score ) |
Empty the library function.
ctx | Click object. |
char_buffer | Character buffer - number in the range 1 to 6. |
location | Reference to write the matching location to. |
score | Reference to write the matching score to. |
This function searches the fingerprint library for a template matching the features in char_buffer.
uint8_t fingerprint3_send_package | ( | fingerprint3_t * | ctx, |
uint8_t | pkg_id, | ||
uint8_t * | pkg_content, | ||
uint16_t | pkg_len ) |
Send package function.
ctx | Click object. |
pkg_id | Package Identifier. |
pkg_content | Package Content. |
pkg_len | Package Length ( without checksum bytes ). |
This function sends package and reads response to that package which will be stored in the click object structure. It also checks checksum and header bytes.
uint8_t fingerprint3_set_config | ( | fingerprint3_t * | ctx, |
uint32_t | addr, | ||
uint32_t | pass ) |
Set config function.
ctx | Click object. |
addr | Address. |
pass | Password. |
This function verifies password and sets the address, also stores product info and system parameters in the click object structure.
void fingerprint3_set_rst_pin | ( | fingerprint3_t * | ctx, |
uint8_t | rst_pin ) |
Set RST pin state function.
ctx | Click object. |
pin_state |
|
uint8_t fingerprint3_set_security_lvl | ( | fingerprint3_t * | ctx, |
uint8_t | lvl ) |
Set security level function.
ctx | Click object. |
lvl | Security level - a number between 1 (inclusive) and 5 (inclusive). level 1: false acceptance rate is lowest and false rejection rate is highest level 5: false acceptance rate is highest and false rejection rate is lowest |
This function sets the security level.
uint8_t fingerprint3_soft_reset | ( | fingerprint3_t * | ctx | ) |
Soft reset function.
ctx | Click object. |
This function resets sensor and waits until it is ready.
uint8_t fingerprint3_store_template | ( | fingerprint3_t * | ctx, |
uint8_t | char_buffer, | ||
uint16_t | location ) |
Create template function.
ctx | Click object. |
char_buffer | Character buffer - number in the range 1 to 6. |
location | Location in flash. |
This function stores template located in char_buffer and char_buffer+1 to flash at location.
uint8_t fingerprint3_take_image | ( | fingerprint3_t * | ctx | ) |
Take image function.
ctx | Click object. |
This function detects finger on the sensor, takes image and writes it into the image buffer.
uint8_t fingerprint3_verify_password | ( | fingerprint3_t * | ctx, |
uint32_t | pass ) |
Verify password function.
ctx | Click object. |
pass | Password. |
This function verifies the password.