Crate uhf_rfid

Crate uhf_rfid 

Source
Expand description

UHF RFID reader driver with support for multiple transport backends.

§Features

  • uart-esp32 - UART transport for ESP32 using esp-idf-svc
  • serial - Serial port transport for desktop using serialport crate

§Example

use uhf_rfid::{UhfRfid, SerialTransport};

let transport = SerialTransport::new("/dev/ttyUSB0", 115200)?;
let mut rfid = UhfRfid::new(transport);

if let Some(tag) = rfid.single_poll()? {
    println!("Found tag: {}", tag.epc);
}

Structs§

LockPayload
Lock mask and action payload
QtControl
QT control settings for Impinj Monza tags
QueryParams
Query parameters for tag inventory (per EPC Gen2)
SelectParams
Parameters for the Select command
TagInfo
Information about a detected RFID tag
UhfRfid

Enums§

LockAction
Lock action for tag memory operations
LockTarget
Lock target for specifying which memory area to lock
MemoryBank
Memory bank selection for tag operations
QuerySel
Sel field for Query command
QuerySession
Session for Query command
QueryTarget
Target flag for Query command
Region
Operating region for the reader
RfLinkProfile
RF link profile for modulation settings
SelectAction
Action for Select command (per EPC Gen2)
SelectMode
Select mode configuration
SelectTarget
Target flag for Select command (per EPC Gen2)
UhfError
Errors that can occur during RFID operations

Traits§

RfidTransport
Trait for RFID reader communication backends. Implement this trait for different transports (UART, serial port, etc.)