SENDDATABYTES(3)

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

πŸ’– SENDDATABYTES(3) πŸ’–

okay so bestie, welcome to SendDataBytes β€” a.k.a. the SendDataBytes(3) manual page, and honestly? it's giving "short but powerful." let's get into it ✨


🌸 NAME 🌸

SendDataBytes β€” write data πŸ’Œ


πŸŽ€ SYNOPSIS πŸŽ€

#include <gpib/ib.h>

void SendDataBytes(int board_desc, const void *data, long count,
                   int eot_mode);

✨ DESCRIPTION ✨

so SendDataBytes() writes data to the bus, periodt. but like β€” heads up β€” before you call this function, one or more devices must already have been addressed as listener, and the board must already have been addressed as talker. you can't just roll up uninvited, that's not the vibe. addressing can be done with the SendSetup() function 🫢

it writes count bytes from the array that data points to. and the eot_mode argument? that's the main character here β€” it says how the message should be terminated, and it can be any of these values:

πŸ’… Table 12. eot modes

  • NULLend β€” value 0 β€” Do not assert EOI or add a newline at the end of the write. lowkey just... leaving it open-ended πŸ™ˆ
  • DABend β€” value 1 β€” Assert EOI with the last byte of the write. it goes out with a statement πŸ”₯
  • NLend β€” value 2 β€” Append a newline, and assert EOI with the newline at the end of the write. newline + EOI, the full send-off πŸ‘‘

ngl you might find it simpler to use the slightly higher level functions Send() or SendList(), since they does not require addressing and writing of data to be performed separately. (yes, the grammar is exactly like that in the original, we're keeping it, it's iconic 😭) those two just handle more for you so you don't have to do the addressing and the writing as two separate little tasks. slay ✨


Copyright Β© 2003-2006, 2008 Frank Mori Hess


and that's the whole thing, bestie πŸ’œ this page shipped as part of linux-gpib version 4.3.7, dated 07/06/2026, so if you're citing it or whatever β€” that's the receipt 🧾 no cap, go forth and write your bytes πŸ¦‹βœ¨

πŸ“¦ where this page comes from