Make HIDReportViewer project show the IN, OUT and DATA report sizes as both bits...
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 20 Jun 2011 02:08:52 +0000 (02:08 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 20 Jun 2011 02:08:52 +0000 (02:08 +0000)
Projects/HIDReportViewer/HIDReportViewer.c

index 58f9d5e..1dfbd40 100644 (file)
@@ -133,11 +133,17 @@ int main(void)
                                        uint8_t ReportSizeFeatureBits = CurrReportIDInfo->ReportSizeBits[HID_REPORT_ITEM_Feature];\r
 \r
                                        /* Print out the byte sizes of each report within the device */\r
-                                       printf_P(PSTR("  + Report ID %" PRId8 " - In: %" PRId8 " bytes, Out: %" PRId8 " bytes, Feature: %" PRId8 " bytes\r\n"),\r
+                                       printf_P(PSTR("  + Report ID 0x%02" PRIX8 "\r\n"\r
+                                                     "    - Input Data:   %" PRId8 " bits (%" PRId8 " bytes)\r\n"\r
+                                                     "    - Output Data:  %" PRId8 " bits (%" PRId8 " bytes)\r\n"\r
+                                                     "    - Feature Data: %" PRId8 " bits (%" PRId8 " bytes)\r\n"),\r
                                                 CurrReportIDInfo->ReportID,\r
-                                                        ((ReportSizeInBits      >> 3) + ((ReportSizeInBits      & 0x07) != 0)),\r
-                                                        ((ReportSizeOutBits     >> 3) + ((ReportSizeOutBits     & 0x07) != 0)),\r
-                                                        ((ReportSizeFeatureBits >> 3) + ((ReportSizeFeatureBits & 0x07) != 0)));\r
+                                                ReportSizeInBits,\r
+                                                ((ReportSizeInBits      >> 3) + ((ReportSizeInBits      & 0x07) != 0)),\r
+                                                ReportSizeOutBits,\r
+                                                ((ReportSizeOutBits     >> 3) + ((ReportSizeOutBits     & 0x07) != 0)),\r
+                                                ReportSizeFeatureBits,\r
+                                                ((ReportSizeFeatureBits >> 3) + ((ReportSizeFeatureBits & 0x07) != 0)));\r
                                }\r
                                \r
                                puts_P(PSTR("\r\nReport Items:\r\n"));\r