Expand description
Small helpers shared across the command modules.
Functions§
- await_
any_ frame - Like
await_replybut offers every frame, not only the card’s. - await_
reply - Poll
devuntilwaitruns out orpickaccepts a frame from the card. - contains_
lattice_ header - True when a bitstream header appears anywhere in
d. - has_
lattice_ header - True when a bitstream’s text header sits within its first 256 bytes.
- hex
- Two lowercase hex digits per byte,
sepbetween them. - hexdump
- is_
card_ frame - True for frames sent by the card back to the PC.
- is_
our_ frame - True for our own transmissions, which the kernel loops back to us.
- is_
sender_ frame - True for frames sent by the sender/PC to the card.
- mac
- Format a MAC address for display.
- open
- Open the raw link on the context’s interface.
- parse_
color RRGGBB(optionally#-prefixed) or three decimal components.- warn
- A non-fatal problem, on stderr in the same shape as an error.