mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Add examples/usbterm
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3976 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -2170,7 +2170,20 @@ static int usbser_ioctl(FAR struct file *filep,int cmd,unsigned long arg)
|
||||
case CAIOC_NOTIFY:
|
||||
{
|
||||
/* Not yet implemented. I probably won't bother to implement until
|
||||
* I com up with a usage model that needs it.
|
||||
* I comr up with a usage model that needs it.
|
||||
*
|
||||
* Here is what the needs to be done:
|
||||
*
|
||||
* 1. Format and send a request header with:
|
||||
*
|
||||
* bmRequestType:
|
||||
* USB_REQ_DIR_IN|USB_REQ_TYPE_CLASS|USB_REQ_RECIPIENT_INTERFACE
|
||||
* bRequest: ACM_SERIAL_STATE
|
||||
* wValue: 0
|
||||
* wIndex: 0
|
||||
* wLength: Length of data
|
||||
*
|
||||
* 2. Followed by the notification data (in a separate packet)
|
||||
*/
|
||||
|
||||
ret = -ENOSYS;
|
||||
|
||||
Reference in New Issue
Block a user