![]() |
LibDriver AS608
1.0.0
AS608 full-featured driver
|
driver as608 header file More...
#include <stdio.h>
#include <stdint.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | as608_params_s |
as608 params structure definition More... | |
struct | as608_handle_s |
as608 handle structure definition More... | |
struct | as608_info_s |
as608 information structure definition More... | |
Macros | |
#define | DRIVER_AS608_LINK_INIT(HANDLE, STRUCTURE) memset(HANDLE, 0, sizeof(STRUCTURE)) |
initialize as608_handle_t structure More... | |
#define | DRIVER_AS608_LINK_UART_INIT(HANDLE, FUC) (HANDLE)->uart_init = FUC |
link uart_init function More... | |
#define | DRIVER_AS608_LINK_UART_DEINIT(HANDLE, FUC) (HANDLE)->uart_deinit = FUC |
link uart_deinit function More... | |
#define | DRIVER_AS608_LINK_UART_READ(HANDLE, FUC) (HANDLE)->uart_read = FUC |
link uart_read function More... | |
#define | DRIVER_AS608_LINK_UART_WRITE(HANDLE, FUC) (HANDLE)->uart_write = FUC |
link uart_write function More... | |
#define | DRIVER_AS608_LINK_UART_FLUSH(HANDLE, FUC) (HANDLE)->uart_flush = FUC |
link uart_flush function More... | |
#define | DRIVER_AS608_LINK_DELAY_MS(HANDLE, FUC) (HANDLE)->delay_ms = FUC |
link delay_ms function More... | |
#define | DRIVER_AS608_LINK_DEBUG_PRINT(HANDLE, FUC) (HANDLE)->debug_print = FUC |
link debug_print function More... | |
Typedefs | |
typedef struct as608_params_s | as608_params_t |
as608 params structure definition More... | |
typedef struct as608_handle_s | as608_handle_t |
as608 handle structure definition More... | |
typedef struct as608_info_s | as608_info_t |
as608 information structure definition More... | |
Functions | |
uint8_t | as608_info (as608_info_t *info) |
get chip's information More... | |
uint8_t | as608_init (as608_handle_t *handle, uint32_t addr) |
initialize the chip More... | |
uint8_t | as608_deinit (as608_handle_t *handle) |
close the chip More... | |
uint8_t | as608_get_last_status (as608_handle_t *handle, as608_status_t *status) |
get the last status More... | |
uint8_t | as608_print_status (as608_handle_t *handle, as608_status_t status) |
print status More... | |
uint8_t | as608_get_image (as608_handle_t *handle, uint32_t addr, as608_status_t *status) |
get image More... | |
uint8_t | as608_generate_feature (as608_handle_t *handle, uint32_t addr, as608_buffer_number_t num, as608_status_t *status) |
generate feature More... | |
uint8_t | as608_match_feature (as608_handle_t *handle, uint32_t addr, uint16_t *score, as608_status_t *status) |
match feature More... | |
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 More... | |
uint8_t | as608_combine_feature (as608_handle_t *handle, uint32_t addr, as608_status_t *status) |
combine feature More... | |
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 More... | |
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 More... | |
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 More... | |
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 More... | |
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 More... | |
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 More... | |
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 More... | |
uint8_t | as608_empty_all_feature (as608_handle_t *handle, uint32_t addr, as608_status_t *status) |
empty all feature More... | |
uint8_t | as608_set_baud_rate (as608_handle_t *handle, uint32_t addr, uint8_t n_9600, as608_status_t *status) |
set baud rate More... | |
uint8_t | as608_set_level (as608_handle_t *handle, uint32_t addr, as608_level_t level, as608_status_t *status) |
set level More... | |
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 More... | |
uint8_t | as608_get_params (as608_handle_t *handle, uint32_t addr, as608_params_t *param, as608_status_t *status) |
get params More... | |
uint8_t | as608_enroll (as608_handle_t *handle, uint32_t addr, uint16_t *page_number, as608_status_t *status) |
enroll More... | |
uint8_t | as608_identify (as608_handle_t *handle, uint32_t addr, uint16_t *page_number, uint16_t *score, as608_status_t *status) |
identify More... | |
uint8_t | as608_set_password (as608_handle_t *handle, uint32_t addr, uint32_t password, as608_status_t *status) |
set password More... | |
uint8_t | as608_verify_password (as608_handle_t *handle, uint32_t addr, uint32_t password, as608_status_t *status) |
verify password More... | |
uint8_t | as608_get_random (as608_handle_t *handle, uint32_t addr, uint32_t *randn, as608_status_t *status) |
get random More... | |
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 More... | |
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 More... | |
uint8_t | as608_set_port (as608_handle_t *handle, uint32_t addr, as608_bool_t enable, as608_status_t *status) |
enable or disable port More... | |
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 More... | |
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 More... | |
uint8_t | as608_burn_code (as608_handle_t *handle, uint32_t addr, as608_burn_code_mode_t mode, uint8_t *input_buffer, uint16_t input_len, as608_status_t *status) |
burn code More... | |
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 More... | |
uint8_t | as608_generate_bin_image (as608_handle_t *handle, uint32_t addr, as608_image_t image, as608_status_t *status) |
generate bin image More... | |
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 More... | |
uint8_t | as608_set_gpio_level (as608_handle_t *handle, uint32_t addr, as608_gpio_number_t gpio, as608_gpio_level_t input_level, as608_gpio_level_t *output_level, as608_status_t *status) |
set gpio level More... | |
uint8_t | as608_get_index_table (as608_handle_t *handle, uint32_t addr, uint8_t num, uint8_t table[32], as608_status_t *status) |
get index table More... | |
uint8_t | as608_command_write_read (as608_handle_t *handle, uint32_t addr, uint8_t type, uint8_t *input_buffer, uint16_t input_len, uint16_t ms, uint8_t *output_buffer, uint16_t *output_len) |
write read data to chip More... | |
driver as608 header file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Date | Version | Author | Description |
---|---|---|---|
2023/09/30 | 1.0 | Shifeng Li | first upload |
Definition in file driver_as608.h.