40 static uint32_t gs_addr = 0;
72 #if (AS608_BASIC_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");
driver as608 basic header file
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_init(as608_handle_t *handle, uint32_t addr)
initialize the chip
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_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_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_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_deinit(as608_handle_t *handle)
close the chip
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_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_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
#define AS608_BASIC_DEFAULT_PACKET_SIZE
#define AS608_BASIC_DEFAULT_LEVEL
#define AS608_BASIC_DEFAULT_ADDRESS
uint8_t as608_basic_empty_fingerprint(as608_status_t *status)
basic example empty fingerprint
uint8_t as608_basic_init(uint32_t addr)
basic example init
uint8_t as608_basic_delete_fingerprint(uint16_t page_number, as608_status_t *status)
basic example delete fingerprint
#define AS608_BASIC_DEFAULT_FEATURE
uint8_t as608_basic_print_status(as608_status_t status)
basic example print status
uint8_t as608_basic_input_fingerprint(void(*callback)(int8_t status, const char *const fmt,...), uint16_t *score, uint16_t *page_number, as608_status_t *status)
basic example input fingerprint
uint8_t as608_basic_deinit(void)
basic example deinit
uint8_t as608_basic_verify(uint16_t *found_page, uint16_t *score, as608_status_t *status)
basic example verify
#define AS608_BASIC_DEFAULT_PASSWORD
#define AS608_BASIC_DEFAULT_BAUD_RATE
uint8_t as608_basic_high_speed_verify(uint16_t *found_page, uint16_t *score, as608_status_t *status)
basic example high speed verify
#define AS608_BASIC_DEFAULT_TIMEOUT
#define AS608_BASIC_DEFAULT_PORT
as608 basic example default definition
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