These ioctls provide support for the USBTMC-USB488 control requests for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -33,6 +33,9 @@ · 32 unmodified lines | ||
| 33 | 33 | #define USBTMC_REQUEST_GET_CAPABILITIES 7 |
| 34 | 34 | #define USBTMC_REQUEST_INDICATOR_PULSE 64 |
| 35 | 35 | #define USBTMC488_REQUEST_READ_STATUS_BYTE 128 |
| 36 | +#define USBTMC488_REQUEST_REN_CONTROL 160 | |
| 37 | +#define USBTMC488_REQUEST_GOTO_LOCAL 161 | |
| 38 | +#define USBTMC488_REQUEST_LOCAL_LOCKOUT 162 | |
| 36 | 39 | |
| 37 | 40 | /* Request values for USBTMC driver's ioctl entry point */ |
| 38 | 41 | #define USBTMC_IOC_NR 91 |
| @@ -44,6 +47,9 @@ · 5 unmodified lines | ||
| 44 | 47 | #define USBTMC_IOCTL_CLEAR_IN_HALT _IO(USBTMC_IOC_NR, 7) |
| 45 | 48 | #define USBTMC488_IOCTL_GET_CAPS _IOR(USBTMC_IOC_NR, 17, unsigned char) |
| 46 | 49 | #define USBTMC488_IOCTL_READ_STB _IOR(USBTMC_IOC_NR, 18, unsigned char) |
| 50 | +#define USBTMC488_IOCTL_REN_CONTROL _IOW(USBTMC_IOC_NR, 19, unsigned char) | |
| 51 | +#define USBTMC488_IOCTL_GOTO_LOCAL _IO(USBTMC_IOC_NR, 20) | |
| 52 | +#define USBTMC488_IOCTL_LOCAL_LOCKOUT _IO(USBTMC_IOC_NR, 21) | |
| 47 | 53 | |
| 48 | 54 | /* Driver encoded usb488 capabilities */ |
| 49 | 55 | #define USBTMC488_CAPABILITY_TRIGGER 1 |