SENDDATABYTES(3)
π 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β value0β Do not assert EOI or add a newline at the end of the write. lowkey just... leaving it open-ended πDABendβ value1β Assert EOI with the last byte of the write. it goes out with a statement π₯NLendβ value2β 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 π
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
- ubuntu stonking: libgpib-doc 4.3.7-6 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms