USB::HID::Descriptor::Interface - USB HID Interface Descriptor
An object representation of a USB HID interface descriptor. Subclass of USB::Descriptor::Interface.
use USB::HID::Descriptor::Interface; my $interface = USB::HID::Descriptor::Interface->new( description => 'My First Interface' ); $interface->protocol(0); $interface->subclass(0); $interface->endpoints( [ USB::Descriptor::Endpoint->new() ] ); ...
USB::HID::Descriptor::Interface represents a USB interface descriptor for a HID class device. When added to the descriptor tree of a USB::Descriptor::Device object it can be used to generate the data structures needed to compile the firmware for a USB device.
Constructs and returns a new USB::HID::Descriptor::Interface object using the passed options. Each option key is the name of an accessor method. The class option is overriden.
class
Converts a USB::Descriptor::Interface object into a USB::HID::Descriptor::Interface object and returns it.
Returns the interface's class (bInterfaceClass). No setting allowed.
Returns the current class descriptor object. No setting allowed.
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.
USB::HID::Descriptor::Report
Get/Set the HID specification release number (bcdHID). Defaults to '1.1.0'.
Get/Set the Usage Page of the interface's report descriptor.
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-interface at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=USB-HID-Descriptor-Interface. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-usb-hid-descriptor-interface at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc USB::HID::Descriptor::Interface
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-Interface
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/USB-HID-Descriptor-Interface
CPAN Ratings
http://cpanratings.perl.org/d/USB-HID-Descriptor-Interface
Search CPAN
http://search.cpan.org/dist/USB-HID-Descriptor-Interface/
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.