Crates.io | rfid-debug |
lib.rs | rfid-debug |
version | 0.0.7 |
source | src |
created_at | 2022-01-28 16:19:26.407177 |
updated_at | 2022-01-28 16:47:08.335299 |
description | RFID reader utilities to encode and decode H10301 26bit Wiegand format |
homepage | https://github.com/kylestev/rfid-debug |
repository | https://github.com/kylestev/rfid-debug |
max_upload_size | |
id | 523136 |
size | 5,445 |
A rust package for decoding and encoding of the Wiegand format used in 125KHz RFID fobs.
use rfid_debug::WiegandFormat;
let standard_format = WiegandFormat {
parity_even: 0,
parity_odd: 25,
card_number: (0, 16), // bit range [lower, upper)
facility_code: (16, 24), // bit range [lower, upper)
};
let (facility, card_number) = standard_format.decode(5666862).unwrap();
println!("facility = {}, ID = {}", facility, card_number);
Look no further than HID®'s website for documentation.