diff --git a/Demos/Device/ClassDriver/KeyboardMouseMultiReport/Descriptors.h b/Demos/Device/ClassDriver/KeyboardMouseMultiReport/Descriptors.h index 0a9d729dc4..7dbb331f2d 100644 --- a/Demos/Device/ClassDriver/KeyboardMouseMultiReport/Descriptors.h +++ b/Demos/Device/ClassDriver/KeyboardMouseMultiReport/Descriptors.h @@ -60,11 +60,13 @@ /** Size in bytes of each of the HID reporting IN. */ #define HID_EPSIZE 16 - + + /* Enums: */ + /** Enum for the HID report IDs used in the device. */ enum { - HID_REPORTID_MouseReport = 0x01, - HID_REPORTID_KeyboardReport = 0x02, + HID_REPORTID_MouseReport = 0x01, /**< Report ID for the Mouse report within the device. */ + HID_REPORTID_KeyboardReport = 0x02, /**< Report ID for the Keyboard report within the device. */ } HID_Report_IDs; /* Function Prototypes: */ diff --git a/LUFA/ManPages/LibraryApps.txt b/LUFA/ManPages/LibraryApps.txt index fa8256d841..2032edf5d9 100644 --- a/LUFA/ManPages/LibraryApps.txt +++ b/LUFA/ManPages/LibraryApps.txt @@ -105,6 +105,7 @@ * - Benito - Benito Board Arduino Programmer project * - LEDNotifier - USB LED Notification project * - Magstripe - Magnetic Stripe Card Reader project + * - MediaController - Media Playback Controller project * - MIDIToneGenerator - MIDI Note Tone Generator project * - MissileLaucher - Toy Missile Launcher Host project * - RelayBoard - Relay board controller, controllable via the "sismpctl" Linux application diff --git a/Projects/MediaController/Descriptors.c b/Projects/MediaController/Descriptors.c index 8ad3b0a70e..54136ceb3f 100644 --- a/Projects/MediaController/Descriptors.c +++ b/Projects/MediaController/Descriptors.c @@ -48,20 +48,23 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM MediaControlReport[] = HID_RI_USAGE_PAGE(8, 0x0C), /* Consumer Page */ HID_RI_USAGE(8, 0x01), /* Consumer Controls */ HID_RI_COLLECTION(8, 0x01), /* Application */ - HID_RI_USAGE_MINIMUM(8, 0xB0), - HID_RI_USAGE_MAXIMUM(8, 0xB7), + HID_RI_USAGE(8, 0xB0), /* Play */ + HID_RI_USAGE(8, 0xB1), /* Pause */ + HID_RI_USAGE(8, 0xB3), /* Fast Forward */ + HID_RI_USAGE(8, 0xB4), /* Rewind */ + HID_RI_USAGE(8, 0xB5), /* Next Track */ + HID_RI_USAGE(8, 0xB6), /* Previous Track */ + HID_RI_USAGE(8, 0xB7), /* Stop */ + HID_RI_USAGE(8, 0xCD), /* Play/Pause (toggle) */ + HID_RI_USAGE(8, 0xE2), /* Mute */ + HID_RI_USAGE(8, 0xE9), /* Volume Up */ + HID_RI_USAGE(8, 0xEA), /* Volume Down */ + HID_RI_REPORT_SIZE(8, 0x01), + HID_RI_REPORT_COUNT(8, 0x0B), HID_RI_LOGICAL_MINIMUM(8, 0), HID_RI_LOGICAL_MAXIMUM(8, 1), - HID_RI_REPORT_SIZE(8, 0x01), - HID_RI_REPORT_COUNT(8, 0x08), - HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_RELATIVE), - HID_RI_USAGE(8, 0xCD), - HID_RI_USAGE(8, 0xE2), - HID_RI_USAGE(8, 0xE9), - HID_RI_USAGE(8, 0xEA), - HID_RI_REPORT_COUNT(8, 0x04), HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_RELATIVE), - HID_RI_REPORT_COUNT(8, 0x04), + HID_RI_REPORT_COUNT(8, 0x05), HID_RI_INPUT(8, HID_IOF_CONSTANT), HID_RI_END_COLLECTION(0), }; diff --git a/Projects/MediaController/MediaController.h b/Projects/MediaController/MediaController.h index fd4c55761d..71281e905f 100644 --- a/Projects/MediaController/MediaController.h +++ b/Projects/MediaController/MediaController.h @@ -74,7 +74,6 @@ { unsigned Play : 1; unsigned Pause : 1; - unsigned Record : 1; unsigned FForward : 1; unsigned Rewind : 1; unsigned NextTrack : 1; @@ -84,7 +83,7 @@ unsigned Mute : 1; unsigned VolumeUp : 1; unsigned VolumeDown : 1; - unsigned PADDING : 4; + unsigned RESERVED : 5; } ATTR_PACKED USB_MediaReport_Data_t; /* Function Prototypes: */