Tags: gotmc/visa
Tags
Use usbtmc ReadContext/WriteContext for context-aware I/O Update the visa USBTMC driver to call the new ReadContext, WriteContext, and non-context Read/Write/WriteString signatures on usbtmc.Device so that context flows end-to-end through to the underlying USB library. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fix error format consistency and line length in helpers.go Add missing colon separator in ErrUnknownInterfaceType format string to match the ErrInvalidAddress format, and wrap the long line to satisfy golines. Update CLAUDE.md driver context description to reflect current code. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add sentinel errors for programmatic error handling Define ErrInvalidAddress, ErrUnknownInterfaceType, and ErrDriverNotRegistered so callers can use errors.Is instead of string matching. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PreviousNext