IBRSP(3)

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

okay bestie, this is IBRSP(3) from the Traditional API Functions section of the linux-gpib universe, and we are about to read a whole status byte together, no cap πŸ’–βœ¨


πŸŽ€ NAME πŸŽ€

ibrsp β€” read status byte / serial poll (device)


✨ SYNOPSIS ✨

#include <gpib/ib.h>

int ibrsp(int ud, char *result);

πŸ¦‹ DESCRIPTION πŸ¦‹

ibrsp() is literally the girl who goes and gets the status byte from the device you point at with ud πŸ‘‘. Then she tucks that status byte right into the location result is pointing to. iconic behavior.

So here's the tea: if automatic serial polling is enabled on the board that's controlling the device, the status byte gets automatically read and queued whenever the device requests service. If the status byte queue is not empty, ibrsp() pulls the status byte info straight out of the queue. If the queue is empty, then the status byte is obtained by serial polling the device directly. Automatic serial polling is controlled with ibconfig(). 🫢

The contents of the status byte returned in result are device specific, bestie β€” so go read the device manufacturer's documentation for the details. For devices conforming to the IEEE488.1 or 2 specification, the bits defined in the table below are available if they're enabled in the device's Status Byte Enable register. slay.

🌸 Table 10. Standard IEEE.488 GPIB status byte bits 🌸

  • IbStbRQS β€” value 0x40 β€” The request service bit is set when device asserts RQS. It is cleared by serial polling the device. Supported by devices conforming to IEEE 488.1 or IEEE 488.2.
  • IbStbESB β€” value 0x20 β€” The event-status bit is set when there are one or more bits set in the device's Standard Event Status Register. It is cleared by reading the Standard Event Status Register. For devices conforming to IEEE 488.2 only.
  • IbStbMAV β€” value 0x10 β€” The message available bit indicates whether or not the device's data output queue is empty. Whenever the device has data available, this bit will be set. It is cleared when the output queue is empty. The queue is emptied by reading data from the device with ibrd() for example. For devices conforming to IEEE 488.2 only.

πŸ’… RETURN VALUE πŸ’…

The value of ibsta is returned. periodt.


Copyright Β© 2003-2006, 2008 Frank Mori Hess


and that's the whole page, babe πŸ§šπŸ’œ this was linux-gpib 4.3.7, dated 07/06/2026 β€” go forth and serial poll responsibly, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from