How arc-instruments/libarc2 works
libarc2 is a low-level Rust interface for ArC TWO hardware: it builds and executes board instructions, manages onboard result memory, and supports channel configuration, reads, and pulsing. The principal workflow is a Rust consumer calling the Instrument API, which prepares instructions and registers, executes them through BeastLink, and retrieves measurement data from FPGA memory. The excerpts establish these core interactions; detailed internal sequencing for some read and pulse operations is not shown.
Main entry points: instrument.rs Instrument operations · instructions.rs Instruction encoding · registers.rs Register encoding · macros.rs Voltage helpers
Components 9
Instrument API
- Instrument operations
src/instrument.rs - Channel setup
src/instrument.rs - Read and pulse
src/instrument.rs
Command Encoding
- Instruction encoding
src/instructions.rs - Register encoding
src/registers.rs - Voltage helpers
src/macros.rs
Board State
- FPGA memory manager
src/memory.rs
Other components
- Rust consumer
- BeastLink FPGA interface
Connections 9
- Rust consumer → Instrument operations: calls
README.md - Instrument operations → Channel setup: configures
src/instrument.rs - Instrument operations → Read and pulse: provides
src/instrument.rs - Instrument operations → Instruction encoding: processes
src/instrument.rs - Instrument operations → Register encoding: uses
src/instrument.rs - Instrument operations → FPGA memory manager: allocates and reads
src/instrument.rs - Instrument operations → Voltage helpers: uses
src/instrument.rs - Instruction encoding → Register encoding: serializes
src/instructions.rs - Instrument operations → BeastLink FPGA interface: communicates via
README.md