USB::HID::Descriptor::Report - USB Device Descriptor
Methods for generating USB HID Report Descriptor items
USB::HID::Descriptor::Report provides a number of convenience methods for generating the items that comprise a HID Report Descriptor.
Returns the first byte of an Item corresponding to the tag name $tag and a data size of $size. The data bytes must be appended to the returned byte to create a complete item.
$tag
$size
Determines the size of the data that will be appended to the byte returned by tag. If an array is passed, the data size will be determined by the length of the array. If a single scalar is passed, the scalar's value is used to determine the data size.
tag
Construct a report descriptor item given a tag name and associated data bytes. Returns an array.
Returns the item type of the passed tag name ('main', 'global', 'local').
Wrap calls to item() to make the calling code a bit prettier.
item()
Retuns a Collection item of the specified type ('application', 'logical' or 'physcial'). Returns an End Collection item for 'end'.
Returns a Usage item constructed with the given usage number.
Returns a Usage Page item constructed with the given usage page number.
Brandon Fosdick, <bfoz at bfoz.net>
<bfoz at bfoz.net>
Please report any bugs or feature requests to bug-usb-hid-descriptor-report at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=USB-HID-Descriptor-Report. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-usb-hid-descriptor-report at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc USB::HID::Descriptor::Report
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=USB-HID-Descriptor-Report
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/USB-HID-Descriptor-Report
CPAN Ratings
http://cpanratings.perl.org/d/USB-HID-Descriptor-Report
Search CPAN
http://search.cpan.org/dist/USB-HID-Descriptor-Report/
Copyright 2011 Brandon Fosdick.
This program is released under the terms of the BSD License.
To install USB::Descriptor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm USB::Descriptor
CPAN shell
perl -MCPAN -e shell install USB::Descriptor
For more information on module installation, please visit the detailed CPAN module installation guide.