IBEOS(3)

πŸ“¦
version 4.3.7 Β· 2 versions
, in ubuntu stonking

✨ IBEOS(3) ✨

okay bestie, pull up a chair πŸ’– this one lives in the Traditional API Functions section of the manual, and it's genuinely such a lil cutie. lowkey one of my faves.


🌸 NAME 🌸

ibeos β€” set end-of-string mode (board or device)

like. that's it. that's the whole job. and she does it flawlessly πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <gpib/ib.h>

int ibeos(int ud, int eosmode);

two ints in, one int out. the way that this is the simplest signature ever and yet does so much?? iconic behavior fr fr ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so ibeos() sets the end-of-string character and the end-of-string mode. two-for-one, we love a multitasker 🫢

here's the tea: the least significant 8 bits of eosmode are the eos character itself. that's your actual character, just vibing in the bottom 8 bits.

and THEN, you can also bitwise-or one or more of these bits on top to set the mode. yes, one or more, you can stack them, go off πŸ‘‘

Table 7. End-of-String Mode Bits

  • REOS β€” value 0x400 β€” Enable termination of reads when eos character is received. (aka: she hears the eos char and is like "ok done reading, bye" 😌)
  • XEOS β€” value 0x800 β€” Assert the EOI line whenever the eos character is sent during writes.
  • BIN β€” value 0x1000 β€” Match eos character using all 8 bits (instead of only looking at the 7 least significant bits). (no more squinting at just 7 bits, we're going full 8 πŸ’–)

πŸ’œ RETURN VALUE πŸ’œ

The value of ibsta is returned.

that's the whole return value. no drama, no surprises, just ibsta hands you the receipts πŸ“œ


Copyright Β© 2003-2006, 2008 Frank Mori Hess


and that's the page bestie!! πŸŽ€ the vibe was very much linux-gpib 4.3.7, dated 07/06/2026, and honestly? she ate. periodt πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from