![]() |
LibDriver AS608
1.0.0
AS608 full-featured driver
|
driver as608 source file More...
Go to the source code of this file.
Functions | |
| 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_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_print_status (as608_handle_t *handle, as608_status_t status) |
| print status 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... | |
| uint8_t | as608_info (as608_info_t *info) |
| get chip's information More... | |
driver as608 source 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.c.
| #define AS608_COMMAND_BURN_CODE 0x1A |
burn code command
Definition at line 80 of file driver_as608.c.
| #define AS608_COMMAND_DELETE_CHAR 0x0C |
delete char command
Definition at line 66 of file driver_as608.c.
| #define AS608_COMMAND_DOWN_CHAR 0x09 |
down char command
Definition at line 63 of file driver_as608.c.
| #define AS608_COMMAND_DOWN_IMAGE 0x0B |
down image command
Definition at line 65 of file driver_as608.c.
| #define AS608_COMMAND_EMPTY 0x0D |
empty command
Definition at line 67 of file driver_as608.c.
| #define AS608_COMMAND_ENROLL 0x10 |
enroll command
Definition at line 70 of file driver_as608.c.
| #define AS608_COMMAND_GEN_BIN_IMAGE 0x1C |
generate bin image command
Definition at line 82 of file driver_as608.c.
| #define AS608_COMMAND_GEN_CHAR 0x02 |
generate char command
Definition at line 56 of file driver_as608.c.
| #define AS608_COMMAND_GET_IMAGE 0x01 |
| #define AS608_COMMAND_GET_RANDOM_CODE 0x14 |
get random code command
Definition at line 74 of file driver_as608.c.
| #define AS608_COMMAND_HIGH_SPEED_SEARCH 0x1B |
high speed search command
Definition at line 81 of file driver_as608.c.
| #define AS608_COMMAND_IDENTIFY 0x11 |
identify command
Definition at line 71 of file driver_as608.c.
| #define AS608_COMMAND_LOAD_CHAR 0x07 |
load char command
Definition at line 61 of file driver_as608.c.
| #define AS608_COMMAND_MATCH 0x03 |
match command
Definition at line 57 of file driver_as608.c.
| #define AS608_COMMAND_PORT_CONTROL 0x17 |
port control command
Definition at line 77 of file driver_as608.c.
| #define AS608_COMMAND_READ_INDEX_TABLE 0x1F |
read index table command
Definition at line 85 of file driver_as608.c.
| #define AS608_COMMAND_READ_INFO_PAGE 0x16 |
read info page command
Definition at line 76 of file driver_as608.c.
| #define AS608_COMMAND_READ_NOTEPAD 0x19 |
read notepad command
Definition at line 79 of file driver_as608.c.
| #define AS608_COMMAND_READ_SYS_PARA 0x0F |
read sys para command
Definition at line 69 of file driver_as608.c.
| #define AS608_COMMAND_REG_MODEL 0x05 |
reg model command
Definition at line 59 of file driver_as608.c.
| #define AS608_COMMAND_SEARCH 0x04 |
search command
Definition at line 58 of file driver_as608.c.
| #define AS608_COMMAND_SET_CHIP_ADDR 0x15 |
set chip addr command
Definition at line 75 of file driver_as608.c.
| #define AS608_COMMAND_SET_PWD 0x12 |
set password command
Definition at line 72 of file driver_as608.c.
| #define AS608_COMMAND_STORE_CHAR 0x06 |
store char command
Definition at line 60 of file driver_as608.c.
| #define AS608_COMMAND_UP_CHAR 0x08 |
up char command
Definition at line 62 of file driver_as608.c.
| #define AS608_COMMAND_UP_IMAGE 0x0A |
up image command
Definition at line 64 of file driver_as608.c.
| #define AS608_COMMAND_USER_GPIO 0x1E |
user gpio command
Definition at line 84 of file driver_as608.c.
| #define AS608_COMMAND_VALID_TEMPLATE_NUM 0x1D |
valid template num command
Definition at line 83 of file driver_as608.c.
| #define AS608_COMMAND_VFY_PWD 0x13 |
verify password command
Definition at line 73 of file driver_as608.c.
| #define AS608_COMMAND_WRITE_NOTEPAD 0x18 |
write notepad command
Definition at line 78 of file driver_as608.c.
| #define AS608_COMMAND_WRITE_REG 0x0E |
write reg command
Definition at line 68 of file driver_as608.c.
| #define AS608_TYPE_COMMAND 0x01 |
| #define AS608_TYPE_DATA 0x02 |
data type
Definition at line 91 of file driver_as608.c.
| #define AS608_TYPE_END 0x08 |
end type
Definition at line 93 of file driver_as608.c.
| #define AS608_TYPE_RESPONSE 0x07 |
response type
Definition at line 92 of file driver_as608.c.
| #define CHIP_NAME "Synochip AS608" |
| #define DRIVER_VERSION 1000 |
driver version
Definition at line 50 of file driver_as608.c.
| #define MANUFACTURER_NAME "Synochip" |
manufacturer name
Definition at line 44 of file driver_as608.c.
| #define MAX_CURRENT 60.0f |
chip max current
Definition at line 47 of file driver_as608.c.
| #define SUPPLY_VOLTAGE_MAX 3.6f |
chip max supply voltage
Definition at line 46 of file driver_as608.c.
| #define SUPPLY_VOLTAGE_MIN 3.0f |
chip min supply voltage
Definition at line 45 of file driver_as608.c.
| #define TEMPERATURE_MAX 85.0f |
chip max operating temperature
Definition at line 49 of file driver_as608.c.
| #define TEMPERATURE_MIN -40.0f |
chip min operating temperature
Definition at line 48 of file driver_as608.c.