Crates.io | cf_rh320u_93_reader |
lib.rs | cf_rh320u_93_reader |
version | 0.3.1 |
source | src |
created_at | 2022-09-09 13:51:11.13233 |
updated_at | 2022-09-09 14:53:39.718032 |
description | Library for using Chafon CF-RH320U-93 (ISO 15693) USB card reader |
homepage | |
repository | https://github.com/michaelwright235/cf_rh320u_93_reader/ |
max_upload_size | |
id | 661878 |
size | 31,796 |
Rust library for interaction with Chafon CF-RH320U-93 USB card readers. It's an open source implementation of the official library, which can be found on their website.
The main goal is to support all ISO 15693 related commands in the future.
First you need to open a device connection via open
method of CFRH320U93
struct.
Then you can call the desired method.
use cf_rh320u_93_reader::*;
let device = CFRH320U93::open()?;
let inventory = device.iso15693_inventory()?;
for card in inventory {
println!("{:?}", card);
}
If something goes wrong, ReaderError enum is returned. It contains either a UsbError (which means that there was a connection error), or either a CommandError (a status code returned directly from a reader).