fingerprint2 2.0.0.0
main.c File Reference

Fingerprint2 Click example. More...

#include "board.h"
#include "log.h"
#include "fingerprint2.h"
#include "string.h"

Macros

#define PROCESS_COUNTER   100
 
#define PROCESS_RX_BUFFER_SIZE   800
 

Functions

void fp_reg_one (uint8_t fngr_number)
 
void fp_clr_one (uint8_t fngr_number)
 
void fp_clr_all ()
 
void fp_curr_state ()
 
void fp_compare ()
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

uint8_t flag
 

Detailed Description

Fingerprint2 Click example.

Description

This example demonstrates the use of Fingerprint 2 click board.

The demo application is composed of two sections :

Application Init

Initializes the driver, enables the click board, and then executes a command for registering a fingerprint.

Application Task

Compares a fingerprint on input to the registered fingerprint and displays the results on the USB UART every 5 seconds.

Additional Functions

  • fingerprint2_process ( ) - The general process of collecting data the module sends.
  • fp_reg_one ( uint8_t fngr_number ) - Registers a fingerprint at a specific index number.
  • fp_clr_one ( uint8_t fngr_number ) - Deletes a fingerprint from a specific index number.
  • fp_clr_all ( ) - Clears all fingerprints.
  • fp_curr_state ( ) - Lists the registration status and returns the number of registered fingerprints.
  • fp_compare ( ) - Compares a fingerprint on input to all other fingerprints that are memorized.
Note
In the registration state each fingerprint needs to be enrolled 3 times.
Author
MikroE Team

Macro Definition Documentation

◆ PROCESS_COUNTER

#define PROCESS_COUNTER   100

◆ PROCESS_RX_BUFFER_SIZE

#define PROCESS_RX_BUFFER_SIZE   800

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ fp_clr_all()

void fp_clr_all ( )

◆ fp_clr_one()

void fp_clr_one ( uint8_t fngr_number)

◆ fp_compare()

void fp_compare ( )

◆ fp_curr_state()

void fp_curr_state ( )

◆ fp_reg_one()

void fp_reg_one ( uint8_t fngr_number)

◆ main()

int main ( void )

Variable Documentation

◆ flag

uint8_t flag