Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1012 Bytes

File metadata and controls

26 lines (17 loc) · 1012 Bytes

llrp-rs

Rust implementation of the LLRP 1.0.1 (Low Level Reader Protocol) for UHF RFID reader communication.

Overview

This library provides type-safe Rust bindings for the LLRP protocol, automatically generated from the official LLRP 1.0.1 specification. It handles binary encoding/decoding of all LLRP messages and parameters.

Features

  • Complete LLRP 1.0.1 coverage - All 40 messages and 111 parameters
  • Type-safe API - Strongly typed structs and enums
  • Binary codec - Efficient encode/decode with Big Endian byte order
  • TLV/TV support - Handles both encoding formats with automatic dispatch
  • Bit packing - Correct handling of sub-byte fields
  • Zero-copy parsing - Efficient memory usage

Code Generation

Types are generated at build time from specs/llrp-1x0-def-extended.xml via build.rs. The generated code includes:

  • Message and parameter structs
  • Enumerations with conversions
  • Binary encode/decode implementations
  • Type registry for dynamic dispatch