USB::HID::Descriptor::Class - USB HID Class Descriptor
An object representation of a USB HID class descriptor.
use USB::HID::Descriptor::Class; my $class = USB::HID::Descriptor::Class->new; $class->country(0); $class->version('1.2.3'); $class->reports( [ USB::HID::Descriptor::Report->new() ] ); ...
USB::HID::Descriptor::Class represents a USB class descriptor for a HID class device. Instances of USB::HID::Descriptor::Class are automatically created by USB::HID::Descriptor::Interface as needed, so there's generally no reason to use this class directly.
Constructs and returns a new USB::HID::Descriptor::Class object using the passed options. Each option key is the name of an accessor method.
Returns an array of bytes containing all of the fields in the class descriptor.
Direct access to the bcdHID value. Don't use this unless you know what you're doing.
Get/Set the country code for localized hardware (bCountryCode). Defaults to 0.
Returns an array of bytes containing the report descriptor.
A convenience method that wraps a single hash reference in an array and passes it to reports().
reports()
Get/Set the array of USB::HID::Descriptor::Report objects.
Get/Set the HID specification release number (bcdHID). Defaults to '1.1.0'.
Get/Set the Usage Page of the interface's report descriptor. Accepts integer values, or any of the Usage Page string constants defined in HID/Descriptor/Report.pm.
Get/Set the Usage of the interface's report descriptor.
Brandon Fosdick, <bfoz at bfoz.net>
<bfoz at bfoz.net>
Please report any bugs or feature requests to bug-usb-hid-descriptor-class at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=USB-HID-Descriptor-Class. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-usb-hid-descriptor-class at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc USB::HID::Descriptor::Class
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-Class
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/USB-HID-Descriptor-Class
CPAN Ratings
http://cpanratings.perl.org/d/USB-HID-Descriptor-Class
Search CPAN
http://search.cpan.org/dist/USB-HID-Descriptor-Class/
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.