usb: usbtmc: Add ioctls for trigger, EOM bit and TermChar
Greg Kroah-Hartman
maintainerPATCH 4/12 usb: usbtmc: Add ioctls for trigger, EOM bit and TermChar
Quoted 17 lines · Guido Kiener
- add
USBTMC488_IOCTL_TRIGGERto send TRIGGER Bulk-OUT header according to Subclass USB488 SpecificationThe usbtmc trigger command is equivalent to the IEEE 488 GET (Group Execute Trigger) action. While the "*TRG" command can be sent as data to perform the same operation, in some situations an instrument will be busy and unable to process the data immediately in which case the
USBTMC488_IOCTL_TRIGGERcan be used to trigger the instrument with lower latency.- add
USBTMC_IOCTL_EOM_ENABLEto specify EOM bit for nextwrite()call. Sets Bit 0 of field 'bmTransferAttributes' ofDEV_DEP_MSG_OUTBulk-OUT Header.Allows fine grained control over end of message handling on a per file descriptor basis.
Quoted 6 lines
- add
USBTMC_IOCTL_CONFIG_TERMCHARto control TermChar handling for nextread(). Controls field 'TermChar' and Bit 1 of field 'bmTransferAttributes' ofREQUEST_DEV_DEP_MSG_INBULK-OUT header.Allows enabling/disabling of terminating a read on reception of
term_charindividually for each read request.
Why isn't this 3 patches? Please only do "one thing per patch".
thanks,
greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html