Dwayne Dilbeck / USBDevice

Dependents:   HW4_AudioControl

Fork of USBDevice by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HID_REPORT.h Source File

HID_REPORT.h

00001 #include <stdint.h>
00002 #ifndef HID_REPORT_H
00003 #define HID_REPORT_H
00004 /* Where report IDs are used the first byte of 'data' will be the */
00005 /* report ID and 'length' will include this report ID byte. */
00006 #define MAX_HID_REPORT_SIZE (64)
00007 
00008 class HID_REPORT {
00009 public:
00010     HID_REPORT(int length=MAX_HID_REPORT_SIZE);
00011     /* Causes compile error */
00012     ~HID_REPORT(){
00013        delete[] data;
00014     };
00015     /**/
00016     uint32_t length;
00017     uint8_t *data;
00018 };
00019 
00020 #endif