rfid-reader

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

```rust use rfid_debug::WiegandFormat;

let standardformat = WiegandFormat { parityeven: 0, parityodd: 25, cardnumber: (0, 16), // bit range [lower, upper) facility_code: (16, 24), // bit range [lower, upper) };

let (facility, cardnumber) = standardformat.decode(5666862).unwrap();

println!("facility = {}, ID = {}", facility, card_number); ```