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
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.
<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.
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright 2011 Brandon Fosdick.
This program is released under the terms of the BSD License.