![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Usb Device Interface, protocol, and programming homework #4 Audio Control device
Dependencies: C12832_lcd USBDevice mbed
Diff: main.cpp
- Revision:
- 2:dec5e78d579b
- Parent:
- 1:948ffad3284f
--- a/main.cpp Wed Jul 31 22:20:00 2013 +0000 +++ b/main.cpp Thu Aug 01 20:12:41 2013 +0000 @@ -18,7 +18,7 @@ //Set up the USB HID device USBAudioControl hid(0x1234,0x0006,0x0001); //temporary structure to hold data before filling the input report -HID_REPORT tempReport; +HID_REPORT tempReport(1); //Variable to hold USB state @@ -82,9 +82,7 @@ hid.callbackSetOutputReport=&SetLevel; hid.callbackSetFeatureReport=&SetFeatures; hid.callbackSuspendChange=&WriteSuspendBit; - //The temp report needs to know how many bytes it has. - // TODO: The Hid_report structure in USBHID_TYPES should be changed to a class. - tempReport.length=1; + //Main Loop while(1) {