MSA — generate “my secondary address” command byte
#include <gpib/ib.h>
uint8_t MSA( | address) ; |
unsigned int address
;
MSA() returns a “my secondary address”
command byte corresponding
to the address
argument. The address
my be between 0 and 30. This macro is also useful for mangling
secondary addresses from the “real” values between 0 and 30 to the
range 0x60 to 0x7e used by most of the library's functions.
The appropriate MSA command byte is returned.