History

Add ioctls to enable and disable local controls on an instrument

These ioctls provide support for the USBTMC-USB488 control requests for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT

Dave Penkler committed 10 years ago

Commit 379d3d31 parent 29779d82 files · +76 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/usb/tmc.h+6−0
@@ -33,6 +33,9 @@ · 32 unmodified lines
3333 #define USBTMC_REQUEST_GET_CAPABILITIES 7
3434 #define USBTMC_REQUEST_INDICATOR_PULSE 64
3535 #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
3639
3740 /* Request values for USBTMC driver's ioctl entry point */
3841 #define USBTMC_IOC_NR 91
@@ -44,6 +47,9 @@ · 5 unmodified lines
4447 #define USBTMC_IOCTL_CLEAR_IN_HALT _IO(USBTMC_IOC_NR, 7)
4548 #define USBTMC488_IOCTL_GET_CAPS _IOR(USBTMC_IOC_NR, 17, unsigned char)
4649 #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)
4753
4854 /* Driver encoded usb488 capabilities */
4955 #define USBTMC488_CAPABILITY_TRIGGER 1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t