![]() |
LibDriver AS608
|
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) |
| initialize as608_handle_t structure | |
| #define | DRIVER_AS608_LINK_UART_INIT(HANDLE, FUC) |
| link uart_init function | |
| #define | DRIVER_AS608_LINK_UART_DEINIT(HANDLE, FUC) |
| link uart_deinit function | |
| #define | DRIVER_AS608_LINK_UART_READ(HANDLE, FUC) |
| link uart_read function | |
| #define | DRIVER_AS608_LINK_UART_WRITE(HANDLE, FUC) |
| link uart_write 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 | |
Typedefs | |
| typedef struct as608_params_s | as608_params_t |
| as608 params structure definition | |
| typedef struct as608_handle_s | as608_handle_t |
| as608 handle structure definition | |
| typedef struct as608_info_s | as608_info_t |
| as608 information structure definition | |
Functions | |
| uint8_t | as608_info (as608_info_t *info) |
| get chip's information | |
| uint8_t | as608_init (as608_handle_t *handle, uint32_t addr) |
| initialize the chip | |
| uint8_t | as608_deinit (as608_handle_t *handle) |
| close the chip | |
| uint8_t | as608_get_last_status (as608_handle_t *handle, as608_status_t *status) |
| get the last status | |
| uint8_t | as608_print_status (as608_handle_t *handle, as608_status_t status) |
| print status | |
| uint8_t | as608_get_image (as608_handle_t *handle, uint32_t addr, as608_status_t *status) |
| get image | |
| 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_match_feature (as608_handle_t *handle, uint32_t addr, uint16_t *score, as608_status_t *status) |
| match feature | |
| 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_combine_feature (as608_handle_t *handle, uint32_t addr, as608_status_t *status) |
| combine 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 | |
| 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_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_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_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_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_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_empty_all_feature (as608_handle_t *handle, uint32_t addr, as608_status_t *status) |
| empty all 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_set_level (as608_handle_t *handle, uint32_t addr, as608_level_t level, as608_status_t *status) |
| set level | |
| 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_params (as608_handle_t *handle, uint32_t addr, as608_params_t *param, as608_status_t *status) |
| get params | |
| uint8_t | as608_enroll (as608_handle_t *handle, uint32_t addr, uint16_t *page_number, as608_status_t *status) |
| enroll | |
| 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_password (as608_handle_t *handle, uint32_t addr, uint32_t password, as608_status_t *status) |
| set password | |
| uint8_t | as608_verify_password (as608_handle_t *handle, uint32_t addr, uint32_t password, as608_status_t *status) |
| verify password | |
| uint8_t | as608_get_random (as608_handle_t *handle, uint32_t addr, uint32_t *randn, as608_status_t *status) |
| get random | |
| 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_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_set_port (as608_handle_t *handle, uint32_t addr, as608_bool_t enable, as608_status_t *status) |
| enable or disable port | |
| 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_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_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 | |
| 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_generate_bin_image (as608_handle_t *handle, uint32_t addr, as608_image_t image, as608_status_t *status) |
| generate bin image | |
| 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_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 | |
| 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 | |
| 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 | |
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.