5 pstrUsagePageGenericDesktopControls ,
6 pstrUsagePageSimulationControls ,
7 pstrUsagePageVRControls ,
8 pstrUsagePageSportControls ,
9 pstrUsagePageGameControls ,
10 pstrUsagePageGenericDeviceControls ,
11 pstrUsagePageKeyboardKeypad ,
14 pstrUsagePageOrdinal ,
15 pstrUsagePageTelephone ,
16 pstrUsagePageConsumer ,
17 pstrUsagePageDigitizer ,
24 pstrUsagePageBarCodeScanner ,
26 pstrUsagePageMSRDevices ,
27 pstrUsagePagePointOfSale ,
28 pstrUsagePageCameraControl ,
39 pstrUsageMultiAxisController ,
40 pstrUsageTabletPCSystemControls
55 pstrUsageCountedBuffer ,
57 pstrUsageMotionWakeup ,
60 pstrUsagePageReserved ,
68 pstrUsageFeatureNotification ,
69 pstrUsageResolutionMultiplier
73 pstrUsageSystemControl ,
74 pstrUsageSystemPowerDown ,
75 pstrUsageSystemSleep ,
76 pstrUsageSystemWakeup ,
77 pstrUsageSystemContextMenu ,
78 pstrUsageSystemMainMenu ,
79 pstrUsageSystemAppMenu ,
80 pstrUsageSystemMenuHelp ,
81 pstrUsageSystemMenuExit ,
82 pstrUsageSystemMenuSelect ,
83 pstrUsageSystemMenuRight ,
84 pstrUsageSystemMenuLeft ,
85 pstrUsageSystemMenuUp ,
86 pstrUsageSystemMenuDown ,
87 pstrUsageSystemColdRestart ,
88 pstrUsageSystemWarmRestart ,
97 pstrUsageSystemUndock ,
98 pstrUsageSystemSetup ,
99 pstrUsageSystemBreak ,
100 pstrUsageSystemDebuggerBreak ,
101 pstrUsageApplicationBreak ,
102 pstrUsageApplicationDebuggerBreak,
103 pstrUsageSystemSpeakerMute ,
104 pstrUsageSystemHibernate
108 pstrUsageSystemDisplayInvert ,
109 pstrUsageSystemDisplayInternal ,
110 pstrUsageSystemDisplayExternal ,
111 pstrUsageSystemDisplayBoth ,
112 pstrUsageSystemDisplayDual ,
113 pstrUsageSystemDisplayToggleIntExt ,
114 pstrUsageSystemDisplaySwapPriSec ,
115 pstrUsageSystemDisplayLCDAutoscale
119 pstrUsageFlightSimulationDevice ,
120 pstrUsageAutomobileSimulationDevice ,
121 pstrUsageTankSimulationDevice ,
122 pstrUsageSpaceshipSimulationDevice ,
123 pstrUsageSubmarineSimulationDevice ,
124 pstrUsageSailingSimulationDevice ,
125 pstrUsageMotocicleSimulationDevice ,
126 pstrUsageSportsSimulationDevice ,
127 pstrUsageAirplaneSimulationDevice ,
128 pstrUsageHelicopterSimulationDevice ,
129 pstrUsageMagicCarpetSimulationDevice,
130 pstrUsageBicycleSimulationDevice
134 pstrUsageFlightControlStick ,
135 pstrUsageFlightStick ,
136 pstrUsageCyclicControl ,
137 pstrUsageCyclicTrim ,
138 pstrUsageFlightYoke ,
139 pstrUsageTrackControl
144 pstrUsageAileronTrim ,
145 pstrUsageAntiTorqueControl ,
146 pstrUsageAutopilotEnable ,
147 pstrUsageChaffRelease ,
148 pstrUsageCollectiveControl ,
150 pstrUsageElectronicCountermeasures ,
152 pstrUsageElevatorTrim ,
155 pstrUsageFlightCommunications ,
156 pstrUsageFlareRelease ,
157 pstrUsageLandingGear ,
160 pstrUsageWeaponsArm ,
161 pstrUsageWeaponsSelect ,
163 pstrUsageAccelerator ,
168 pstrUsageTurretDirection ,
169 pstrUsageBarrelElevation ,
172 pstrUsageBicycleCrank ,
173 pstrUsageHandleBars ,
174 pstrUsageFrontBrake ,
183 pstrUsageHeadTracker ,
184 pstrUsageHeadMountedDisplay ,
185 pstrUsageHandTracker ,
186 pstrUsageOculometer ,
188 pstrUsageAnimatronicDevice
192 pstrUsageStereoEnable ,
193 pstrUsageDisplayEnable
197 pstrUsageBaseballBat ,
199 pstrUsageRowingMachine ,
207 pstrUsageStickSpeed ,
208 pstrUsageStickFaceAngle ,
209 pstrUsageStickHeelToe ,
210 pstrUsageStickFollowThough ,
211 pstrUsageStickTempo ,
231 pstrUsagePowerWedge ,
240 pstrUsage3DGameController ,
241 pstrUsagePinballDevice ,
246 pstrUsagePointOfView ,
247 pstrUsageTurnRightLeft ,
248 pstrUsagePitchForwardBackward ,
249 pstrUsageRollRightLeft ,
250 pstrUsageMoveRightLeft ,
251 pstrUsageMoveForwardBackward ,
252 pstrUsageMoveUpDown ,
253 pstrUsageLeanRightLeft ,
254 pstrUsageLeanForwardBackward ,
255 pstrUsageHeightOfPOV ,
257 pstrUsageSecondaryFlipper ,
264 pstrUsageGunSelector ,
265 pstrUsageGunSingleShot ,
267 pstrUsageGunAutomatic ,
269 pstrUsageGamepadFireJump ,
270 pstrUsageGamepadTrigger
274 pstrUsageBatteryStrength,
275 pstrUsageWirelessChannel,
277 pstrUsageDiscoverWirelessControl,
278 pstrUsageSecurityCodeCharEntered,
279 pstrUsageSecurityCodeCharErased,
280 pstrUsageSecurityCodeCleared
286 pstrUsageScrollLock ,
291 pstrUsageDoNotDisturb ,
293 pstrUsageToneEnable ,
294 pstrUsageHighCutFilter ,
295 pstrUsageLowCutFilter ,
296 pstrUsageEqualizerEnable ,
297 pstrUsageSoundFieldOn ,
298 pstrUsageSurroundOn ,
301 pstrUsageSamplingRateDetect ,
305 pstrUsageRecordingFormatDetect ,
308 pstrUsageMessageWaiting ,
310 pstrUsageBatteryOperation ,
312 pstrUsageBatteryLow ,
316 pstrUsageMicrophone ,
320 pstrUsageCallPickup ,
321 pstrUsageConference ,
336 pstrUsageFastForward ,
341 pstrUsageSelectedIndicator ,
342 pstrUsageInUseIndicator ,
343 pstrUsageMultiModeIndicator ,
344 pstrUsageIndicatorOn ,
345 pstrUsageIndicatorFlash ,
346 pstrUsageIndicatorSlowBlink ,
347 pstrUsageIndicatorFastBlink ,
348 pstrUsageIndicatorOff ,
349 pstrUsageFlashOnTime ,
350 pstrUsageSlowBlinkOnTime ,
351 pstrUsageSlowBlinkOffTime ,
352 pstrUsageFastBlinkOnTime ,
353 pstrUsageFastBlinkOffTime ,
354 pstrUsageIndicatorColor ,
355 pstrUsageIndicatorRed ,
356 pstrUsageIndicatorGreen ,
357 pstrUsageIndicatorAmber ,
358 pstrUsageGenericIndicator ,
359 pstrUsageSystemSuspend ,
360 pstrUsageExternalPowerConnected
365 pstrUsageAnsweringMachine ,
366 pstrUsageMessageControls ,
369 pstrUsageTelephonyKeyPad ,
370 pstrUsageProgrammableButton
374 pstrUsageHookSwitch ,
382 pstrUsageForwardCalls ,
383 pstrUsageAlternateFunction ,
385 pstrUsageSpeakerPhone ,
386 pstrUsageConference ,
387 pstrUsageRingEnable ,
388 pstrUsageRingSelect ,
396 pstrUsageStoreNumber ,
397 pstrUsageRecallNumber ,
398 pstrUsagePhoneDirectory
403 pstrUsageScreenCalls ,
404 pstrUsageDoNotDisturb ,
410 pstrUsageInsideDialTone ,
411 pstrUsageOutsideDialTone ,
412 pstrUsageInsideRingTone ,
413 pstrUsageOutsideRingTone ,
414 pstrUsagePriorityRingTone ,
415 pstrUsageInsideRingback ,
416 pstrUsagePriorityRingback ,
417 pstrUsageLineBusyTone ,
418 pstrUsageReorderTone ,
419 pstrUsageCallWaitingTone ,
420 pstrUsageConfirmationTone1 ,
421 pstrUsageConfirmationTone2 ,
423 pstrUsageOutsideRingback ,
438 pstrUsagePhoneKeyStar ,
439 pstrUsagePhoneKeyPound ,
447 pstrUsageConsumerControl,
448 pstrUsageNumericKeyPad,
449 pstrUsageProgrammableButton,
452 pstrUsageGraphicEqualizer
465 pstrUsageSleepAfter ,
467 pstrUsageIllumination ,
468 pstrUsageFunctionButtons
479 pstrUsageMenuEscape ,
480 pstrUsageMenuValueIncrease,
481 pstrUsageMenuValueDecrease
485 pstrUsageDataOnScreen ,
486 pstrUsageClosedCaption ,
487 pstrUsageClosedCaptionSelect,
489 pstrUsageBroadcastMode ,
496 pstrUsageAssignSelection ,
498 pstrUsageRecallLast ,
499 pstrUsageEnterChannel ,
500 pstrUsageOrderMovie ,
502 pstrUsageMediaSelection ,
503 pstrUsageMediaSelectComputer ,
504 pstrUsageMediaSelectTV ,
505 pstrUsageMediaSelectWWW ,
506 pstrUsageMediaSelectDVD ,
507 pstrUsageMediaSelectTelephone ,
508 pstrUsageMediaSelectProgramGuide ,
509 pstrUsageMediaSelectVideoPhone ,
510 pstrUsageMediaSelectGames ,
511 pstrUsageMediaSelectMessages ,
512 pstrUsageMediaSelectCD ,
513 pstrUsageMediaSelectVCR ,
514 pstrUsageMediaSelectTuner ,
517 pstrUsageMediaSelectTape ,
518 pstrUsageMediaSelectCable ,
519 pstrUsageMediaSelectSatellite ,
520 pstrUsageMediaSelectSecurity ,
521 pstrUsageMediaSelectHome ,
522 pstrUsageMediaSelectCall ,
523 pstrUsageChannelIncrement ,
524 pstrUsageChannelDecrement ,
525 pstrUsageMediaSelectSAP ,
526 pstrUsagePageReserved ,
538 pstrUsageFastForward ,
540 pstrUsageScanNextTrack ,
541 pstrUsageScanPreviousTrack ,
544 pstrUsageRandomPlay ,
545 pstrUsageSelectDisk ,
549 pstrUsageTrackNormal ,
550 pstrUsageSlowTracking ,
551 pstrUsageFrameForward ,
552 pstrUsageFrameBackwards ,
555 pstrUsageRepeatFromMark ,
556 pstrUsageReturnToMark ,
557 pstrUsageSearchMarkForward ,
558 pstrUsageSearchMarkBackwards ,
559 pstrUsageCounterReset ,
560 pstrUsageShowCounter ,
561 pstrUsageTrackingIncrement ,
562 pstrUsageTrackingDecrement ,
575 pstrUsageSurroundMode ,
578 pstrUsageVolumeIncrement ,
579 pstrUsageVolumeDecrement
583 pstrUsageSpeedSelect ,
584 pstrUsagePlaybackSpeed ,
585 pstrUsageStandardPlay ,
587 pstrUsageExtendedPlay ,
594 pstrUsageLightEnable ,
595 pstrUsageLightIlluminationLevel ,
596 pstrUsageClimateControlEnable ,
597 pstrUsageRoomTemperature ,
598 pstrUsageSecurityEnable ,
600 pstrUsagePoliceAlarm ,
603 pstrUsageDuresAlarm ,
604 pstrUsageHoldupAlarm ,
605 pstrUsageMedicalAlarm
609 pstrUsageBalanceRight ,
610 pstrUsageBalanceLeft ,
611 pstrUsageBassIncrement ,
612 pstrUsageBassDecrement ,
613 pstrUsageTrebleIncrement ,
614 pstrUsageTrebleDecrement
618 pstrUsageSpeakerSystem ,
619 pstrUsageChannelLeft ,
620 pstrUsageChannelRight ,
621 pstrUsageChannelCenter ,
622 pstrUsageChannelFront ,
623 pstrUsageChannelCenterFront ,
624 pstrUsageChannelSide ,
625 pstrUsageChannelSurround ,
626 pstrUsageChannelLowFreqEnhancement ,
627 pstrUsageChannelTop ,
628 pstrUsageChannelUnknown
632 pstrUsageSubChannel ,
633 pstrUsageSubChannelIncrement ,
634 pstrUsageSubChannelDecrement ,
635 pstrUsageAlternateAudioIncrement ,
636 pstrUsageAlternateAudioDecrement
640 pstrUsageApplicationLaunchButtons ,
641 pstrUsageALLaunchButtonConfigTool ,
642 pstrUsageALProgrammableButton ,
643 pstrUsageALConsumerControlConfig ,
644 pstrUsageALWordProcessor ,
645 pstrUsageALTextEditor ,
646 pstrUsageALSpreadsheet ,
647 pstrUsageALGraphicsEditor ,
648 pstrUsageALPresentationApp ,
649 pstrUsageALDatabaseApp ,
650 pstrUsageALEmailReader ,
651 pstrUsageALNewsreader ,
652 pstrUsageALVoicemail ,
653 pstrUsageALContactsAddressBook ,
654 pstrUsageALCalendarSchedule ,
655 pstrUsageALTaskProjectManager ,
656 pstrUsageALLogJournalTimecard ,
657 pstrUsageALCheckbookFinance ,
658 pstrUsageALCalculator ,
659 pstrUsageALAVCapturePlayback ,
660 pstrUsageALLocalMachineBrowser ,
661 pstrUsageALLANWANBrow ,
662 pstrUsageALInternetBrowser ,
663 pstrUsageALRemoteNetISPConnect ,
664 pstrUsageALNetworkConference ,
665 pstrUsageALNetworkChat ,
666 pstrUsageALTelephonyDialer ,
669 pstrUsageALLogonLogoff ,
670 pstrUsageALTermLockScrSav ,
671 pstrUsageALControlPannel ,
672 pstrUsageALCommandLineProcessorRun ,
673 pstrUsageALProcessTaskManager ,
674 pstrUsageALSelectTaskApplication ,
675 pstrUsageALNextTaskApplication ,
676 pstrUsageALPreviousTaskApplication ,
677 pstrUsageALPreemptiveHaltTaskApp ,
678 pstrUsageALIntegratedHelpCenter ,
679 pstrUsageALDocuments ,
680 pstrUsageALThesaurus ,
681 pstrUsageALDictionary ,
683 pstrUsageALSpellCheck ,
684 pstrUsageALGrammarCheck ,
685 pstrUsageALWirelessStatus ,
686 pstrUsageALKeyboardLayout ,
687 pstrUsageALVirusProtection ,
688 pstrUsageALEncryption ,
689 pstrUsageALScreenSaver ,
692 pstrUsageALFileBrowser ,
693 pstrUsageALPowerStatus ,
694 pstrUsageALImageBrowser ,
695 pstrUsageALAudioBrowser ,
696 pstrUsageALMovieBrowser ,
697 pstrUsageALDigitalRightsManager ,
698 pstrUsageALDigitalWallet ,
699 pstrUsagePageReserved ,
700 pstrUsageALInstantMessaging ,
701 pstrUsageALOEMFeaturesBrowser ,
703 pstrUsageALOnlineCommunity ,
704 pstrUsageALEntertainmentContentBrow ,
705 pstrUsageALOnlineShoppingBrowser ,
706 pstrUsageALSmartCardInfoHelp ,
707 pstrUsageALMarketMonitorFinBrowser ,
708 pstrUsageALCustomCorpNewsBrowser ,
709 pstrUsageALOnlineActivityBrowser ,
710 pstrUsageALResearchSearchBrowser ,
711 pstrUsageALAudioPlayer
715 pstrUsageGenericGUIAppControls ,
720 pstrUsageACMaximize ,
721 pstrUsageACMinimize ,
724 pstrUsageACProperties ,
729 pstrUsageACSelectAll ,
731 pstrUsageACFindAndReplace ,
739 pstrUsageACPreviousLink ,
740 pstrUsageACNextLink ,
741 pstrUsageACBookmarks ,
743 pstrUsageACSubscriptions ,
747 pstrUsageACFullScreenView ,
748 pstrUsageACNormalView ,
749 pstrUsageACViewToggle ,
750 pstrUsageACScrollUp ,
751 pstrUsageACScrollDown ,
754 pstrUsageACPanRight ,
756 pstrUsageACNewWindow ,
757 pstrUsageACTileHoriz ,
758 pstrUsageACTileVert ,
763 pstrUsageACUnderline ,
764 pstrUsageACStrikethrough ,
765 pstrUsageACSubscript ,
766 pstrUsageACSuperscript ,
770 pstrUsageACFlipHorizontal ,
771 pstrUsageACFlipVertical ,
772 pstrUsageACMirrorHorizontal ,
773 pstrUsageACMirrorVertical ,
774 pstrUsageACFontSelect ,
775 pstrUsageACFontColor ,
776 pstrUsageACFontSize ,
777 pstrUsageACJustifyLeft ,
778 pstrUsageACJustifyCenterH ,
779 pstrUsageACJustifyRight ,
780 pstrUsageACJustifyBlockH ,
781 pstrUsageACJustifyTop ,
782 pstrUsageACJustifyCenterV ,
783 pstrUsageACJustifyBottom ,
784 pstrUsageACJustifyBlockV ,
785 pstrUsageACIndentDecrease ,
786 pstrUsageACIndentIncrease ,
787 pstrUsageACNumberedList ,
788 pstrUsageACRestartNumbering ,
789 pstrUsageACBulletedList ,
796 pstrUsageACBuyChkout ,
797 pstrUsageACAddToCart ,
799 pstrUsageACExpandAll ,
800 pstrUsageACCollapse ,
801 pstrUsageACCollapseAll ,
802 pstrUsageACPrintPreview ,
803 pstrUsageACPasteSpecial ,
804 pstrUsageACInsertMode ,
809 pstrUsageACUnprotect ,
810 pstrUsageACAttachComment ,
811 pstrUsageACDeleteComment ,
812 pstrUsageACViewComment ,
813 pstrUsageACSelectWord ,
814 pstrUsageACSelectSentence ,
815 pstrUsageACSelectParagraph ,
816 pstrUsageACSelectColumn ,
817 pstrUsageACSelectRow ,
818 pstrUsageACSelectTable ,
819 pstrUsageACSelectObject ,
820 pstrUsageACRedoRepeat ,
822 pstrUsageACSortAscending ,
823 pstrUsageACSortDescending ,
825 pstrUsageACSetClock ,
826 pstrUsageACViewClock ,
827 pstrUsageACSelectTimeZone ,
828 pstrUsageACEditTimeZone ,
829 pstrUsageACSetAlarm ,
830 pstrUsageACClearAlarm ,
831 pstrUsageACSnoozeAlarm ,
832 pstrUsageACResetAlarm ,
833 pstrUsageACSyncronize ,
834 pstrUsageACSendReceive ,
837 pstrUsageACReplyAll ,
838 pstrUsageACForwardMessage ,
840 pstrUsageACAttachFile ,
842 pstrUsageACDownload ,
843 pstrUsageACSetBorders ,
844 pstrUsageACInsertRow ,
845 pstrUsageACInsertColumn ,
846 pstrUsageACInsertFile ,
847 pstrUsageACInsertPicture ,
848 pstrUsageACInsertObject ,
849 pstrUsageACInsertSymbol ,
850 pstrUsageACSaveAndClose ,
854 pstrUsageACDistributeHorizontaly ,
855 pstrUsageACDistributeVerticaly
862 pstrUsageTouchScreen ,
864 pstrUsageWhiteBoard ,
865 pstrUsageCoordinateMeasuringMachine ,
866 pstrUsage3DDigitizer ,
867 pstrUsageStereoPlotter ,
868 pstrUsageArticulatedArm ,
870 pstrUsageMultiplePointDigitizer ,
871 pstrUsageFreeSpaceWand
882 pstrUsageTipPressure ,
883 pstrUsageBarrelPressure ,
890 pstrUsageTransducerIndex ,
891 pstrUsageTabletFunctionKeys ,
892 pstrUsageProgramChangeKeys ,
893 pstrUsageBatteryStrength ,
901 pstrUsageSecondaryTipSwitch ,
902 pstrUsageBarrelSwitch ,
908 pstrUsageAlphanumericDisplay,
909 pstrUsageBitmappedDisplay
913 pstrUsageDisplayAttributesReport ,
914 pstrUsageASCIICharacterSet ,
915 pstrUsageDataReadBack ,
916 pstrUsageFontReadBack ,
917 pstrUsageDisplayControlReport ,
918 pstrUsageClearDisplay ,
919 pstrUsageDisplayEnable ,
920 pstrUsageScreenSaverDelay ,
921 pstrUsageScreenSaverEnable ,
922 pstrUsageVerticalScroll ,
923 pstrUsageHorizontalScroll ,
924 pstrUsageCharacterReport ,
925 pstrUsageDisplayData ,
926 pstrUsageDisplayStatus ,
927 pstrUsageStatusNotReady ,
928 pstrUsageStatusReady ,
929 pstrUsageErrorNotALoadableCharacter ,
930 pstrUsageErrorFotDataCanNotBeRead ,
931 pstrUsageCursorPositionReport ,
936 pstrUsageCursorPixelPosition ,
937 pstrUsageCursorMode ,
938 pstrUsageCursorEnable ,
939 pstrUsageCursorBlink ,
940 pstrUsageFontReport ,
942 pstrUsageCharacterWidth ,
943 pstrUsageCharacterHeight ,
944 pstrUsageCharacterSpacingHorizontal ,
945 pstrUsageCharacterSpacingVertical ,
946 pstrUsageUnicodeCharset ,
947 pstrUsageFont7Segment ,
948 pstrUsage7SegmentDirectMap ,
949 pstrUsageFont14Segment ,
950 pstrUsage14SegmentDirectMap ,
951 pstrUsageDisplayBrightness ,
952 pstrUsageDisplayContrast ,
953 pstrUsageCharacterAttribute ,
954 pstrUsageAttributeReadback ,
955 pstrUsageAttributeData ,
956 pstrUsageCharAttributeEnhance ,
957 pstrUsageCharAttributeUnderline ,
958 pstrUsageCharAttributeBlink
962 pstrUsageBitmapSizeX ,
963 pstrUsageBitmapSizeY ,
964 pstrUsagePageReserved ,
965 pstrUsageBitDepthFormat ,
966 pstrUsageDisplayOrientation ,
967 pstrUsagePaletteReport ,
968 pstrUsagePaletteDataSize ,
969 pstrUsagePaletteDataOffset ,
970 pstrUsagePaletteData ,
971 pstrUsageBlitReport ,
972 pstrUsageBlitRectangleX1 ,
973 pstrUsageBlitRectangleY1 ,
974 pstrUsageBlitRectangleX2 ,
975 pstrUsageBlitRectangleY2 ,
977 pstrUsageSoftButton ,
978 pstrUsageSoftButtonID ,
979 pstrUsageSoftButtonSide ,
980 pstrUsageSoftButtonOffset1 ,
981 pstrUsageSoftButtonOffset2 ,
982 pstrUsageSoftButtonReport
986 pstrUsageVCRAcquisition ,
987 pstrUsageFreezeThaw ,
993 pstrUsageMicrophoneEnable
998 pstrUsageTransmitPower ,
1005 pstrUsageSoftStepPrimary ,
1006 pstrUsageSoftStepSecondary
1010 pstrUsageZoomSelect ,
1011 pstrUsageZoomAdjust ,
1012 pstrUsageSpectralDopplerModeSelect ,
1013 pstrUsageSpectralDopplerModeAdjust ,
1014 pstrUsageColorDopplerModeSelect ,
1015 pstrUsageColorDopplerModeAdjust ,
1016 pstrUsageMotionModeSelect ,
1017 pstrUsageMotionModeAdjust ,
1018 pstrUsage2DModeSelect ,
1019 pstrUsage2DModeAdjust
1023 pstrUsageSoftControlSelect ,
1024 pstrUsageSoftControlAdjust
1029 uint16_t cntdn = (uint16_t)len;
1030 uint8_t *p = (uint8_t*)pbuf;
1052 for (; len; p++, len--)
1053 PrintHex<uint8_t>(*p);
1060 PrintHex<uint8_t>(data);
1069 Notify(PSTR(
"\r\nPush"));
1075 Notify(PSTR(
"\r\nUsage Page"));
1078 Notify(PSTR(
"\r\nLogical Min"));
1081 Notify(PSTR(
"\r\nLogical Max"));
1084 Notify(PSTR(
"\r\nPhysical Min"));
1087 Notify(PSTR(
"\r\nPhysical Max"));
1090 Notify(PSTR(
"\r\nUnit Exp"));
1093 Notify(PSTR(
"\r\nUnit"));
1096 Notify(PSTR(
"\r\nReport Size"));
1099 Notify(PSTR(
"\r\nReport Count"));
1102 Notify(PSTR(
"\r\nReport Id"));
1105 Notify(PSTR(
"\r\nUsage"));
1108 Notify(PSTR(
"\r\nUsage Min"));
1111 Notify(PSTR(
"\r\nUsage Max"));
1114 Notify(PSTR(
"\r\nCollection"));
1117 Notify(PSTR(
"\r\nEnd Collection"));
1120 Notify(PSTR(
"\r\nInput"));
1123 Notify(PSTR(
"\r\nOutput"));
1126 Notify(PSTR(
"\r\nFeature"));
1213 Notify(PSTR(
" Physical"));
1216 Notify(PSTR(
" Application"));
1219 Notify(PSTR(
" Logical"));
1225 Notify(PSTR(
" Named Array"));
1228 Notify(PSTR(
" Usage Switch"));
1231 Notify(PSTR(
" Usage Modifier"));
1234 Notify(PSTR(
" Vendor Defined("));
1235 PrintHex<uint8_t>(data);
1246 PrintBin<uint8_t>(data);
1280 if (page > 0x00 && page < 0x11)
1306 if (page > 0x00 && page < 0x11)
1308 else if (page > 0x7f && page < 0x84)
1309 Notify(pstrUsagePageMonitor);
1310 else if (page > 0x83 && page < 0x8c)
1311 Notify(pstrUsagePagePower);
1312 else if (page > 0x8b && page < 0x92)
1314 else if (page > 0xfeff && page <= 0xffff)
1315 Notify(pstrUsagePageVendorDefined);
1320 Notify(pstrUsagePageAlphaNumericDisplay);
1323 Notify(pstrUsagePageMedicalInstruments);
1326 Notify(pstrUsagePageUndefined);
1334 Serial.print(usage, HEX);
1341 Serial.print(usage, DEC);
1348 if (usage > 0x00 && usage < 0x0a)
1350 else if (usage > 0x2f && usage < 0x49)
1352 else if (usage > 0x7f && usage < 0x94)
1354 else if (usage > 0x9f && usage < 0xa9)
1356 else if (usage > 0xaf && usage < 0xb8)
1359 Notify(pstrUsagePageUndefined);
1366 if (usage > 0x00 && usage < 0x0d)
1368 else if (usage > 0x1f && usage < 0x26)
1370 else if (usage > 0xaf && usage < 0xd1)
1373 Notify(pstrUsagePageUndefined);
1380 if (usage > 0x00 && usage < 0x0b)
1382 else if (usage > 0x1f && usage < 0x22)
1385 Notify(pstrUsagePageUndefined);
1392 if (usage > 0x00 && usage < 0x05)
1394 else if (usage > 0x2f && usage < 0x3a)
1396 else if (usage > 0x4f && usage < 0x64)
1399 Notify(pstrUsagePageUndefined);
1406 if (usage > 0x00 && usage < 0x04)
1408 else if (usage > 0x1f && usage < 0x3a)
1411 Notify(pstrUsagePageUndefined);
1418 if (usage > 0x1f && usage < 0x27)
1421 Notify(pstrUsagePageUndefined);
1428 if (usage > 0x00 && usage < 0x4e)
1431 Notify(pstrUsagePageUndefined);
1438 if (usage > 0x00 && usage < 0x08)
1440 else if (usage > 0x1f && usage < 0x32)
1442 else if (usage > 0x4f && usage < 0x54)
1444 else if (usage > 0x6f && usage < 0x75)
1446 else if (usage > 0x8f && usage < 0x9f)
1448 else if (usage > 0xaf && usage < 0xc0)
1451 Notify(pstrUsagePageUndefined);
1458 if (usage > 0x00 && usage < 0x07)
1460 else if (usage > 0x1f && usage < 0x23)
1462 else if (usage > 0x2f && usage < 0x37)
1464 else if (usage > 0x3f && usage < 0x49)
1466 else if (usage > 0x5f && usage < 0x67)
1468 else if (usage > 0x7f && usage < 0xa5)
1470 else if (usage > 0xaf && usage < 0xcf)
1472 else if (usage > 0xdf && usage < 0xeb)
1474 else if (usage > 0xef && usage < 0xf6)
1476 else if (usage > 0xff && usage < 0x10e)
1478 else if (usage > 0x14f && usage < 0x156)
1480 else if (usage > 0x15f && usage < 0x16b)
1482 else if (usage > 0x16f && usage < 0x175)
1484 else if (usage > 0x17f && usage < 0x1c8)
1486 else if (usage > 0x1ff && usage < 0x29d)
1489 Notify(pstrUsagePageUndefined);
1496 if (usage > 0x00 && usage < 0x0e)
1498 else if (usage > 0x1f && usage < 0x23)
1500 else if (usage > 0x2f && usage < 0x47)
1503 Notify(pstrUsagePageUndefined);
1510 if (usage > 0x00 && usage < 0x03)
1512 else if (usage > 0x1f && usage < 0x4e)
1514 else if (usage > 0x7f && usage < 0x96)
1517 Notify(pstrUsagePageUndefined);
1525 Notify(pstrUsageMedicalUltrasound);
1526 else if (usage > 0x1f && usage < 0x28)
1528 else if (usage > 0x3f && usage < 0x45)
1530 else if (usage > 0x5f && usage < 0x62)
1532 else if (usage == 0x70)
1533 Notify(pstrUsageDepthGainCompensation);
1534 else if (usage > 0x7f && usage < 0x8a)
1536 else if (usage > 0x9f && usage < 0xa2)
1539 Notify(pstrUsagePageUndefined);
1634 void ReportDescParser2::OnInputItem(uint8_t itm)
1637 uint32_t tmp = (byte_offset << 3);
1639 uint8_t *p = pBuf + byte_offset;
1644 uint8_t usage = useMin;
1646 bool print_usemin_usemax = ( (useMin < useMax) && ((itm & 3) == 2) &&
pfUsage) ?
true :
false;
1648 uint8_t bits_of_byte = 8;
1651 for (uint8_t field=0; field<
rptCount; field++, usage++)
1656 uint16_t wResult[2];
1660 result.dwResult = 0;
1663 if (print_usemin_usemax)
1671 for (uint8_t bits_left=
rptSize, bits_to_copy=0; bits_left;
1672 bits_left -= bits_to_copy)
1674 bits_to_copy = (bits_left > bits_of_byte) ? bits_of_byte : bits_left;
1676 result.dwResult <<= bits_to_copy;
1680 val >>= (8 - bits_of_byte);
1684 for (uint8_t j=bits_to_copy; j; j--)
1690 result.bResult[0] = (result.bResult[0] | (val & mask));
1692 bits_of_byte -= bits_to_copy;
1694 if (bits_of_byte < 1)
1712 ErrorMessage<uint8_t>(PSTR(
"GetReportDescr-2"), ret);