fingerprint2 2.0.0.0
|
Functions | |
void | fingerprint2_cfg_setup (fingerprint2_cfg_t *cfg) |
Config Object Initialization function. | |
FINGERPRINT2_RETVAL | fingerprint2_init (fingerprint2_t *ctx, fingerprint2_cfg_t *cfg) |
Initialization function. | |
void | fingerprint2_generic_write (fingerprint2_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | fingerprint2_generic_read (fingerprint2_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
uint8_t | fingerprint2_get_ld1_status (fingerprint2_t *ctx) |
Generic function for reading ld1 pin status. | |
uint8_t | fingerprint2_get_ld2_status (fingerprint2_t *ctx) |
Generic function for reading ld2 pin status. | |
void | fingerprint2_set_rst_status (fingerprint2_t *ctx, uint8_t status) |
Generic function for setting rst pin status. | |
void | fingerprint2_set_gp1_status (fingerprint2_t *ctx, uint8_t status) |
Generic function for setting gp1 pin status. | |
void | fingerprint2_set_gp2_status (fingerprint2_t *ctx, uint8_t status) |
Generic function for setting gp2 pin status. | |
void | fingerprint2_reset (fingerprint2_t *ctx) |
Function for restarting device. | |
void | fingerprint2_reg_one_fp (fingerprint2_t *ctx, uint8_t fp_index) |
Function for fingerprint registration on index. | |
void | fingerprint2_delete_one_fp (fingerprint2_t *ctx, uint8_t fp_index) |
Function for deleting fingerprint on index. | |
void fingerprint2_cfg_setup | ( | fingerprint2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void fingerprint2_delete_one_fp | ( | fingerprint2_t * | ctx, |
uint8_t | fp_index ) |
Function for deleting fingerprint on index.
ctx | Click object. |
fp_index | Fingerprint index |
@description This function deletes fingerprint on index
int32_t fingerprint2_generic_read | ( | fingerprint2_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
@description This function read maximum length of data.
void fingerprint2_generic_write | ( | fingerprint2_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
@description This function write specific number of bytes
uint8_t fingerprint2_get_ld1_status | ( | fingerprint2_t * | ctx | ) |
Generic function for reading ld1 pin status.
ctx | Click object. |
@description This function read ld1 pin status.
uint8_t fingerprint2_get_ld2_status | ( | fingerprint2_t * | ctx | ) |
Generic function for reading ld2 pin status.
ctx | Click object. |
@description This function read ld2 pin status
FINGERPRINT2_RETVAL fingerprint2_init | ( | fingerprint2_t * | ctx, |
fingerprint2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void fingerprint2_reg_one_fp | ( | fingerprint2_t * | ctx, |
uint8_t | fp_index ) |
Function for fingerprint registration on index.
ctx | Click object. |
fp_index | Fingerprint index |
@description This function registrates fingerprint on index.
void fingerprint2_reset | ( | fingerprint2_t * | ctx | ) |
Function for restarting device.
ctx | Click object. |
@description This function restarts device.
void fingerprint2_set_gp1_status | ( | fingerprint2_t * | ctx, |
uint8_t | status ) |
Generic function for setting gp1 pin status.
ctx | Click object. |
status | State of the pin. |
@description This function sets gp1 pin status.
void fingerprint2_set_gp2_status | ( | fingerprint2_t * | ctx, |
uint8_t | status ) |
Generic function for setting gp2 pin status.
ctx | Click object. |
status | state of the pin |
@description This function sets gp2 pin status.
void fingerprint2_set_rst_status | ( | fingerprint2_t * | ctx, |
uint8_t | status ) |
Generic function for setting rst pin status.
ctx | Click object. |
status | State of the pin |
@description This function sets rst pin status.