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
33#define USBTMC_REQUEST_GET_CAPABILITIES 733#define USBTMC_REQUEST_GET_CAPABILITIES 7
34#define USBTMC_REQUEST_INDICATOR_PULSE 6434#define USBTMC_REQUEST_INDICATOR_PULSE 64
35#define USBTMC488_REQUEST_READ_STATUS_BYTE 12835#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/* Request values for USBTMC driver's ioctl entry point */40/* Request values for USBTMC driver's ioctl entry point */
38#define USBTMC_IOC_NR 9141#define USBTMC_IOC_NR 91
@@ -44,6 +47,9 @@ · 5 unmodified lines
44#define USBTMC_IOCTL_CLEAR_IN_HALT _IO(USBTMC_IOC_NR, 7)47#define USBTMC_IOCTL_CLEAR_IN_HALT _IO(USBTMC_IOC_NR, 7)
45#define USBTMC488_IOCTL_GET_CAPS _IOR(USBTMC_IOC_NR, 17, unsigned char)48#define USBTMC488_IOCTL_GET_CAPS _IOR(USBTMC_IOC_NR, 17, unsigned char)
46#define USBTMC488_IOCTL_READ_STB _IOR(USBTMC_IOC_NR, 18, unsigned char)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/* Driver encoded usb488 capabilities */54/* Driver encoded usb488 capabilities */
49#define USBTMC488_CAPABILITY_TRIGGER 155#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