Skip to content

not-Ryan/gt5-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GT5-rs

Rust library for the GT-521F52, GT-521F32, and GT-511C3(R) fingerprint scanners.

It uses nusb under the hood.

Features

  • Support for the most of the GT-521F52 API
  • SCSI-over-USB; no adapter required

Usage

use gt5::autodiscover;

#[tokio::main]
async fn main() {
    let gt5 = autodiscover().await.expect("Could not get gt5");

    match gt5.get_enroll_count().await {
        Ok(count) => println!("Enrolled count: {count}"),
        Err(err) => eprintln!("Could not get enrolled count: {err}"),
    }
}

See examples/ for more examples.

Known issuess

  • You are unable to run this on MacOSX, as you are unable to claim the USB device. This is a limitation of the nusb library.

About

The GT fingerprint scanner implementation for Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages