diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-26 16:52:20 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-26 16:52:20 +0000 |
commit | bb7b0e66a4df58e61acfe29635c871c443780524 (patch) | |
tree | 141b488a10d76ec9548156712b855e49a88b5dea /nuttx/drivers/usbdev | |
parent | 467bf8d64e185e5deea72c4a137f84074fa44938 (diff) | |
download | px4-nuttx-bb7b0e66a4df58e61acfe29635c871c443780524.tar.gz px4-nuttx-bb7b0e66a4df58e61acfe29635c871c443780524.tar.bz2 px4-nuttx-bb7b0e66a4df58e61acfe29635c871c443780524.zip |
Add examples/usbterm
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3976 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/usbdev')
-rw-r--r-- | nuttx/drivers/usbdev/cdc_serial.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/nuttx/drivers/usbdev/cdc_serial.c b/nuttx/drivers/usbdev/cdc_serial.c index d5d5739b2..bab4e3951 100644 --- a/nuttx/drivers/usbdev/cdc_serial.c +++ b/nuttx/drivers/usbdev/cdc_serial.c @@ -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; |