40 static uint32_t gs_addr = 0;
72 #if (AS608_ADVANCE_SEND_CONFIG == 1)
216 uint16_t *page_number,
229 if (callback != NULL)
232 callback(0,
"please put your finger on the sensor.\n");
252 if (callback != NULL)
255 callback(1,
"please put your finger on the sensor again.\n");
281 if (callback != NULL)
284 callback(2,
"generate feature success.\n");
292 if (callback != NULL)
295 callback(-1,
"error.\n");
316 if (callback != NULL)
319 callback(-1,
"error.\n");
347 if (callback != NULL)
350 callback(-1,
"error.\n");
365 if (callback != NULL)
368 callback(-1,
"error.\n");
383 if (callback != NULL)
386 callback(-1,
"error.\n");
401 if (callback != NULL)
404 callback(-1,
"error.\n");
710 res =
as608_enroll(&gs_handle, gs_addr, page_number, status);
734 res =
as608_identify(&gs_handle, gs_addr, page_number, score, status);
761 page_number, status);
773 output_buffer, output_len, status);
820 output_buffer, output_len, status);
847 input_buffer, input_len, status);
driver as608 advance header file
uint8_t as608_download_image(as608_handle_t *handle, uint32_t addr, uint8_t *input_buffer, uint16_t input_len, as608_status_t *status)
download image
uint8_t as608_set_port(as608_handle_t *handle, uint32_t addr, as608_bool_t enable, as608_status_t *status)
enable or disable port
uint8_t as608_set_packet_size(as608_handle_t *handle, uint32_t addr, as608_packet_size_t size, as608_status_t *status)
set packet size
uint8_t as608_get_random(as608_handle_t *handle, uint32_t addr, uint32_t *randn, as608_status_t *status)
get random
uint8_t as608_init(as608_handle_t *handle, uint32_t addr)
initialize the chip
uint8_t as608_load_feature(as608_handle_t *handle, uint32_t addr, as608_buffer_number_t num, uint16_t page_number, as608_status_t *status)
load feature
uint8_t as608_generate_feature(as608_handle_t *handle, uint32_t addr, as608_buffer_number_t num, as608_status_t *status)
generate feature
uint8_t as608_store_feature(as608_handle_t *handle, uint32_t addr, as608_buffer_number_t num, uint16_t page_number, as608_status_t *status)
store feature
as608_status_t
as608 status enumeration definition
uint8_t as608_set_password(as608_handle_t *handle, uint32_t addr, uint32_t password, as608_status_t *status)
set password
uint8_t as608_upload_image(as608_handle_t *handle, uint32_t addr, uint8_t *output_buffer, uint16_t *output_len, as608_status_t *status)
upload image
uint8_t as608_write_notepad(as608_handle_t *handle, uint32_t addr, uint8_t page_number, uint8_t data[32], as608_status_t *status)
write notepad
uint8_t as608_get_valid_template_number(as608_handle_t *handle, uint32_t addr, uint16_t *num, as608_status_t *status)
get valid template number
uint8_t as608_search_feature(as608_handle_t *handle, uint32_t addr, as608_buffer_number_t num, uint16_t start_page, uint16_t page_number, uint16_t *found_page, uint16_t *score, as608_status_t *status)
search feature
uint8_t as608_get_image(as608_handle_t *handle, uint32_t addr, as608_status_t *status)
get image
uint8_t as608_download_feature(as608_handle_t *handle, uint32_t addr, as608_buffer_number_t num, uint8_t *input_buffer, uint16_t input_len, as608_status_t *status)
download feature
uint8_t as608_combine_feature(as608_handle_t *handle, uint32_t addr, as608_status_t *status)
combine feature
uint8_t as608_print_status(as608_handle_t *handle, as608_status_t status)
print status
uint8_t as608_match_feature(as608_handle_t *handle, uint32_t addr, uint16_t *score, as608_status_t *status)
match feature
uint8_t as608_get_params(as608_handle_t *handle, uint32_t addr, as608_params_t *param, as608_status_t *status)
get params
uint8_t as608_set_level(as608_handle_t *handle, uint32_t addr, as608_level_t level, as608_status_t *status)
set level
uint8_t as608_delete_feature(as608_handle_t *handle, uint32_t addr, uint16_t page_number, uint16_t number, as608_status_t *status)
delete feature
uint8_t as608_set_baud_rate(as608_handle_t *handle, uint32_t addr, uint8_t n_9600, as608_status_t *status)
set baud rate
uint8_t as608_upload_feature(as608_handle_t *handle, uint32_t addr, as608_buffer_number_t num, uint8_t *output_buffer, uint16_t *output_len, as608_status_t *status)
upload feature
uint8_t as608_deinit(as608_handle_t *handle)
close the chip
uint8_t as608_identify(as608_handle_t *handle, uint32_t addr, uint16_t *page_number, uint16_t *score, as608_status_t *status)
identify
uint8_t as608_set_chip_address(as608_handle_t *handle, uint32_t addr, uint32_t new_addr, as608_status_t *status)
set the chip address
uint8_t as608_read_notepad(as608_handle_t *handle, uint32_t addr, uint8_t page_number, uint8_t data[32], as608_status_t *status)
read notepad
uint8_t as608_empty_all_feature(as608_handle_t *handle, uint32_t addr, as608_status_t *status)
empty all feature
uint8_t as608_verify_password(as608_handle_t *handle, uint32_t addr, uint32_t password, as608_status_t *status)
verify password
uint8_t as608_enroll(as608_handle_t *handle, uint32_t addr, uint16_t *page_number, as608_status_t *status)
enroll
uint8_t as608_high_speed_search(as608_handle_t *handle, uint32_t addr, as608_buffer_number_t buffer_number, uint16_t start_page, uint16_t page_number, uint16_t *found_page, uint16_t *score, as608_status_t *status)
high speed search
uint8_t as608_get_flash_information(as608_handle_t *handle, uint32_t addr, uint8_t *output_buffer, uint16_t *output_len, as608_status_t *status)
get flash information
uint8_t as608_advance_upload_image(uint8_t *output_buffer, uint16_t *output_len, as608_status_t *status)
advance example upload image
uint8_t as608_advance_download_image(uint16_t page_number, uint8_t *input_buffer, uint16_t input_len, as608_status_t *status)
advance example download image
uint8_t as608_advance_write_notepad(uint8_t page_number, uint8_t data[32], as608_status_t *status)
advance example write notepad
uint8_t as608_advance_params(as608_params_t *params, as608_status_t *status)
advance example get params
#define AS608_ADVANCE_DEFAULT_ADDRESS
#define AS608_ADVANCE_DEFAULT_TIMEOUT
uint8_t as608_advance_delete_fingerprint(uint16_t page_number, as608_status_t *status)
advance example delete fingerprint
uint8_t as608_advance_input_fingerprint(void(*callback)(int8_t status, const char *const fmt,...), uint16_t *score, uint16_t *page_number, as608_status_t *status)
advance example input fingerprint
uint8_t as608_advance_download_flash_feature(uint16_t page_number, uint8_t *input_buffer, uint16_t input_len, as608_status_t *status)
advance example download flash feature
#define AS608_ADVANCE_DEFAULT_LEVEL
#define AS608_ADVANCE_DEFAULT_BAUD_RATE
#define AS608_ADVANCE_DEFAULT_PACKET_SIZE
uint8_t as608_advance_upload_flash_feature(uint16_t page_number, uint8_t *output_buffer, uint16_t *output_len, as608_status_t *status)
advance example upload flash feature
uint8_t as608_advance_init(uint32_t addr)
advance example init
uint8_t as608_advance_empty_fingerprint(as608_status_t *status)
advance example empty fingerprint
uint8_t as608_advance_high_speed_verify(uint16_t *found_page, uint16_t *score, as608_status_t *status)
advance example high speed verify
uint8_t as608_advance_read_notepad(uint8_t page_number, uint8_t data[32], as608_status_t *status)
advance example read notepad
#define AS608_ADVANCE_DEFAULT_PORT
as608 advance example default definition
uint8_t as608_advance_print_status(as608_status_t status)
advance example print status
#define AS608_ADVANCE_DEFAULT_PASSWORD
uint8_t as608_advance_enroll(uint16_t *page_number, as608_status_t *status)
advance example enroll
uint8_t as608_advance_identify(uint16_t *page_number, uint16_t *score, as608_status_t *status)
advance example identify
uint8_t as608_advance_flash_information(uint8_t *output_buffer, uint16_t *output_len, as608_status_t *status)
advance example get flash information
uint8_t as608_advance_random(uint32_t *randn, as608_status_t *status)
advance example get random
uint8_t as608_advance_upload_image_feature(uint8_t *output_buffer, uint16_t *output_len, as608_status_t *status)
advance example upload image feature
uint8_t as608_advance_verify(uint16_t *found_page, uint16_t *score, as608_status_t *status)
advance example verify
uint8_t as608_advance_deinit(void)
advance example deinit
#define AS608_ADVANCE_DEFAULT_FEATURE
uint8_t as608_interface_uart_init(void)
interface uart init
uint8_t as608_interface_uart_flush(void)
interface uart flush
uint8_t as608_interface_uart_deinit(void)
interface uart deinit
uint16_t as608_interface_uart_read(uint8_t *buf, uint16_t len)
interface uart read
void as608_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t as608_interface_uart_write(uint8_t *buf, uint16_t len)
interface uart write
void as608_interface_delay_ms(uint32_t ms)
interface delay ms
#define DRIVER_AS608_LINK_INIT(HANDLE, STRUCTURE)
initialize as608_handle_t structure
#define DRIVER_AS608_LINK_UART_READ(HANDLE, FUC)
link uart_read function
#define DRIVER_AS608_LINK_UART_FLUSH(HANDLE, FUC)
link uart_flush function
#define DRIVER_AS608_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_AS608_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_AS608_LINK_UART_INIT(HANDLE, FUC)
link uart_init function
#define DRIVER_AS608_LINK_UART_WRITE(HANDLE, FUC)
link uart_write function
#define DRIVER_AS608_LINK_UART_DEINIT(HANDLE, FUC)
link uart_deinit function
as608 handle structure definition
as608 params structure definition