+struct usbtmc_header {
+ unsigned char MsgID;
+ unsigned char bTag;
+ unsigned char bTagInverse;
+ unsigned char Reserved3;
+ uint32_t TransferSize;
+ unsigned char bmTransferAttributes;
+ unsigned char TermChar; /* Only in REQUEST_DEV_DEP_MSG_IN */
+ unsigned char Reverved10;
+ unsigned char Reverved11;
+} __attribute__ ((__packed__));
+
+#define USBTMC_DEV_DEP_MSG_OUT 0x1
+#define USBTMC_REQUEST_DEV_DEP_MSG_IN 0x2
+#define USBTMC_DEV_DEP_MSG_IN 0x2
+
+#define USBTMC_TRANSFERATTRIB_EOM (1<<0)
+#define USBTMC_TRANSFERATTRIB_TERMCHAR (1<<1)
+