This new ioctl reads the status byte (STB) from the device and returns the STB unmodified to the application. The srq_asserted bit is not taken into account and not changed. This ioctl is useful to support non USBTMC-488 compliant devices.
Showing the changes to include/uapi/linux/usb (1 of 2 files). Show all
Unified · Split
| @@ -102,6 +102,8 @@ struct usbtmc_message { · 101 unmodified lines | |||
| 102 | #define USBTMC_IOCTL_MSG_IN_ATTR _IOR(USBTMC_IOC_NR, 24, __u8) | 102 | #define USBTMC_IOCTL_MSG_IN_ATTR _IOR(USBTMC_IOC_NR, 24, __u8) |
| 103 | #define USBTMC_IOCTL_AUTO_ABORT _IOW(USBTMC_IOC_NR, 25, __u8) | 103 | #define USBTMC_IOCTL_AUTO_ABORT _IOW(USBTMC_IOC_NR, 25, __u8) |
| 104 | 104 | ||
| 105 | #define USBTMC_IOCTL_GET_STB _IOR(USBTMC_IOC_NR, 26, __u8) | ||
| 106 | |||
| 105 | /* Cancel and cleanup asynchronous calls */ | 107 | /* Cancel and cleanup asynchronous calls */ |
| 106 | #define USBTMC_IOCTL_CANCEL_IO _IO(USBTMC_IOC_NR, 35) | 108 | #define USBTMC_IOCTL_CANCEL_IO _IO(USBTMC_IOC_NR, 35) |
| 107 | #define USBTMC_IOCTL_CLEANUP_IO _IO(USBTMC_IOC_NR, 36) | 109 | #define USBTMC_IOCTL_CLEANUP_IO _IO(USBTMC_IOC_NR, 36) |