Available on crate feature
alloc only.Expand description
Typed OSDP commands (ACU → PD).
§Spec: §6 / Annex A.1
Each command is a strongly-typed Rust value; encoding to wire bytes goes
through Command::encode_data and decoding through Command::decode.
CommandCode is the byte enum from Annex A.1.
Re-exports§
pub use abort::Abort;pub use acu_rx_size::AcuRxSize;pub use biometric::BioFormat;pub use biometric::BioMatch;pub use biometric::BioRead;pub use biometric::BioType;pub use buzzer::BuzzerControl;pub use buzzer::BuzzerTone;pub use cap::Cap;pub use chlng::Chlng;pub use comset::ComSet;pub use file_transfer::FileTransfer;pub use id::Id;pub use keep_active::KeepActive;pub use keyset::KeySet;pub use led::LedColor;pub use led::LedControl;pub use led::LedPermanent;pub use led::LedTemporary;pub use local_status::InputStatus;pub use local_status::LocalStatus;pub use local_status::OutputStatus;pub use local_status::ReaderStatus;pub use mfg::Mfg;pub use output::OutputControl;pub use output::OutputControlCode;pub use piv::CrAuth;pub use piv::GenAuth;pub use piv::PivData;pub use poll::Poll;pub use scrypt::SCrypt;pub use text::Text;pub use text::TextCommand;pub use xwrite::XWrite;pub use xwrite::XwrMode00;pub use xwrite::XwrMode01;
Modules§
- abort
osdp_ABORT(0xA2) — abort current operation. Empty body.- acu_
rx_ size osdp_ACURXSIZE(0x7B) — inform the PD of the ACU’s max receive size.- biometric
osdp_BIOREAD(0x73) andosdp_BIOMATCH(0x74).- buzzer
osdp_BUZ(0x6A) — reader buzzer control.- cap
osdp_CAP(0x62) — request PD capabilities list.- chlng
osdp_CHLNG(0x76) — initiate Secure Channel session.- comset
osdp_COMSET(0x6E) — set PD address and baud rate.- file_
transfer osdp_FILETRANSFER(0x7C) — chunked file upload to the PD.- id
osdp_ID(0x61) — request PD identification.- keep_
active osdp_KEEPACTIVE(0xA7) — instruct the PD to keep its reader active.- keyset
osdp_KEYSET(0x75) — install encryption key.- led
osdp_LED(0x69) — reader LED control.- local_
status - Status-request commands with empty payloads:
- mfg
osdp_MFG(0x80) — manufacturer-specific command.- output
osdp_OUT(0x68) — output control.- piv
- PIV-related commands:
osdp_PIVDATA(0xA3),osdp_GENAUTH(0xA4),osdp_CRAUTH(0xA5). - poll
osdp_POLL(0x60) — general inquiry; no payload.- scrypt
osdp_SCRYPT(0x77) — server cryptogram.- text
osdp_TEXT(0x6B) — reader text output.- xwrite
osdp_XWR(0xA1) — extended write.
Enums§
- Command
- Typed dispatch over every command supported by the crate.
- Command
Code - All
CMNDbyte values from Annex A.1 of the spec.