table of contents
Device::USB::PCSensor::HidTEMPer::Device(3pm) | User Contributed Perl Documentation | Device::USB::PCSensor::HidTEMPer::Device(3pm) |
NAME¶
Device::USB::PCSensor::HidTEMPer::Device - Generic device class
VERSION¶
Version 0.02
SYNOPSIS¶
None
DESCRIPTION¶
This module contains a generic class that all HidTEMPer devices shouldinherit from, thereby keeping the implemented methods consistent and making itpossible to use the same code to contact every supported device.
CONSTANTS¶
- •
- CONNECTION_TIMEOUT
USB communication timeout, specified in milliseconds.
METHODS¶
- new( $usb_device )
Creates a new generic Device object.
- identifier()
This method is used to acquire the numerical value representing the devicetype identifier.
- internal()
Returns the corresponding Sensor object representing the internal sensorconnected to the device. If the device does not have an internal sensor undefis returned.
- external()
Returns the corresponding Sensor object representing the external sensorconnected to the device. If the device does not have an external sensor undefis returned.
- init()
Empty method that should be implemented in order to be able to initializea object instance.
DEPENDENCIES¶
This module internally includes and takes use of the following packages:
use Carp; use Device::USB; use Device::USB::Device;
This module uses the strict and warning pragmas.
BUGS¶
Please report any bugs or missing features using the CPAN RT tool.
FOR MORE INFORMATION¶
None
AUTHOR¶
Magnus Sulland < msulland@cpan.org >
ACKNOWLEDGEMENTS¶
None
COPYRIGHT & LICENSE¶
Copyright (c) 2010-2011 Magnus Sulland
This program is free software; you can redistribute it and/or modify itunder the same terms as Perl itself.
2022-08-26 | perl v5.34.0 |