rfid-debug

Crates.iorfid-debug
lib.rsrfid-debug
version0.0.7
sourcesrc
created_at2022-01-28 16:19:26.407177
updated_at2022-01-28 16:47:08.335299
descriptionRFID reader utilities to encode and decode H10301 26bit Wiegand format
homepagehttps://github.com/kylestev/rfid-debug
repositoryhttps://github.com/kylestev/rfid-debug
max_upload_size
id523136
size5,445
Kyle Stevenson (kylestev)

documentation

https://docs.rs/rfid-debug

README

rfid-reader

A rust package for decoding and encoding of the Wiegand format used in 125KHz RFID fobs.

Examples

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);

Resources

How does one learn more about this format?

Look no further than HID®'s website for documentation.

Commit count: 14

cargo fmt