ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
gpib.h File Reference

GPIB-over-LAN (Prologix-style) controller command codec (PC_ENABLE_GPIB) - a zero-heap codec for the Prologix-compatible ++ command set that drives a bench of legacy IEEE-488 (GPIB) instruments through a Prologix GPIB-Ethernet / GPIB-USB adapter (raw socket on TCP 1234). The bridge into pre-LAN test gear that will never speak SCPI-over-TCP directly. More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

GPIB-over-LAN (Prologix-style) controller command codec (PC_ENABLE_GPIB) - a zero-heap codec for the Prologix-compatible ++ command set that drives a bench of legacy IEEE-488 (GPIB) instruments through a Prologix GPIB-Ethernet / GPIB-USB adapter (raw socket on TCP 1234). The bridge into pre-LAN test gear that will never speak SCPI-over-TCP directly.

The device is the host: it sends ++ commands (a line starting with an unescaped ++) to configure/control the adapter, and data lines (anything else) that the adapter forwards over GPIB to the addressed instrument. This codec builds the commands (pc_gpib_command and the typed pc_gpib_addr / pc_gpib_read / pc_gpib_spoll / pc_gpib_eos helpers), builds an escaped data line (pc_gpib_build_data - a leading ESC before a CR / LF / ESC / + byte in the payload, then an unescaped newline terminator), classifies a line (pc_gpib_is_command), and parses the responses (pc_gpib_parse_decimal for the serial-poll status byte / SRQ / address, pc_gpib_parse_version). Pure codec, host-tested; the socket / serial link is the application's.

Reference: Prologix GPIB-ETHERNET / GPIB-USB Controller manuals (prologix.biz).

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file gpib.h.