fingerprint3 2.0.0.0
main.c File Reference

Fingerprint 3 Click example. More...

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

Macros

#define LOCATION_IN_LIBRARY   1
 
#define NUMBER_OF_FINGERPRINTS   2
 
#define NUMBER_OF_IMAGES   3
 

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

uint8_t package_content [FINGERPRINT3_MAX_PACKAGE_LENGTH]
 
uint8_t error_check = 0
 

Detailed Description

Fingerprint 3 Click example.

Description

This example reads and processes data from Fingerprint 3 clicks.

The demo application is composed of two sections :

Application Init

Initializes the driver, configures the sensor, and enrolls fingerprints.

Application Task

Takes an image of the finger, then checks if there's a fingerprint in the library that matches the one it has just read. All data is being logged on the USB UART.

Additional Function

  • static void display_error ( uint8_t *message )
  • static void display_full_rsp ( fingerprint3_t *ctx )
  • static void search_finger( fingerprint3_t *ctx )
  • static void match_finger( fingerprint3_t *ctx, uint16_t location )
  • static uint8_t enroll_finger( fingerprint3_t *ctx, uint16_t location, uint8_t features )
Author
MikroE Team

Macro Definition Documentation

◆ LOCATION_IN_LIBRARY

#define LOCATION_IN_LIBRARY   1

◆ NUMBER_OF_FINGERPRINTS

#define NUMBER_OF_FINGERPRINTS   2

◆ NUMBER_OF_IMAGES

#define NUMBER_OF_IMAGES   3

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 )

◆ main()

int main ( void )

Variable Documentation

◆ error_check

uint8_t error_check = 0

◆ package_content

uint8_t package_content[FINGERPRINT3_MAX_PACKAGE_LENGTH]